5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Inconsistent behaviour
FromSent OnAttachments
Roger ThomasJan 7, 2007 5:41 am 
Tony EarnshawJan 7, 2007 8:27 am 
Thorsten HaudeJan 7, 2007 8:34 am 
Roger ThomasJan 7, 2007 5:58 pm 
Sam VarshavchikJan 7, 2007 6:38 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Inconsistent behaviourActions...
From:Tony Earnshaw (ton@hetnet.nl)
Date:Jan 7, 2007 8:27:15 am
List:net.sourceforge.lists.courier-maildrop

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" }

You don't have to import HOME, it's default.

Best,

--Tonni