Thread: Mail Filter
View Single Post
Old 9th July 2009, 05:38
Rescue9 Rescue9 is offline
Join Date: Jun 2007
Posts: 52
Thanks: 5
Thanked 3 Times in 2 Posts

Ok... here's a dirty little fix for the folder name problem.
                if($this->dataRecord["action"] == 'move') {
                        $content .= 'EndFolder = "$DEFAULT/.' . $this->dataRecord['target'] . '/"' . "\n";
                        $content .= "to " . '$EndFolder' . "\n";
                } else {
                        $content .= "to /dev/null\n";
I've tested it various times, and it seems to work properly if the folder is already created. I'm pretty sure it's not going to work if the folder doesn't exist as creating a folder with spaces in the name seems like it could be a problem in itself.

I'm whipped... mind is frazzled. I'll post to bugtracker also. I know it's going to take a bit more work to make it stable. Still hoping someone else will take my ideas and run with them.
Reply With Quote