7 Jan 2007 17:27
Re: Inconsistent behaviour
Tony Earnshaw <tonni <at> hetnet.nl>
2007-01-07 16:27:38 GMT
2007-01-07 16:27:38 GMT
Roger Thomas skrev:
> I want Maildrop to create a folder named Spam if no such folder exists (upon receiving a mail that is tagged
as Spam). So I created a maildroprc file like the following:
[...]
> `test -d $HOME/Maildir/.Spam`
> if( $RETURNCODE != 0 )
> {
> `/usr/local/bin/maildirmake -f Spam $HOME/Maildir`
> `echo INBOX.Spam >> $DEFAULT/courierimapsubscribed`
> }
>
> to "$HOME/Maildir/.Spam"
> }
[...]
> Problem is, upon receiving a spam mail, maildrop created a file, NOT A FOLDER.
Try something like (works for us):
`test -d $HOME/Maildir/.Spam/`
if( $RETURNCODE == 1 )
{
`/usr/bin/maildirmake $HOME/Maildir/.Spam/`
#"whatever else"
}
(Continue reading)
No really that's not a pointer at the postfix list,
temporarily change the command postfix uses to call maildrop to be:
set > set.txt
Postfix should then dump out all the variables that are made available
to the child program (which is normally maildrop)
Jay
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
RSS Feed