|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Maildrop TO expressionHello,
I'm trying to get a .mailfilter recipe to send mail to a maildir destination with a space in the name. For example: MAILDIR = $HOME/Maildir if (/^From:.someuser@.../) { to $MAILDIR/.Test Folder/ } The above does not seem to work. I have also tried: if (/^From:.someuser@.../) { to $MAILDIR/.Test\ Folder/ } which results in a syntax error. Is there a character that I must use to substitute in place of the space in the destination maildir name? I've checked all the documentation and man pages with no mention of this. I'm running: maildrop-2.0.4 postfix-2.3.13 on FreeBSD 6.2-RELEASE-p11 Any help or suggestions would be greatly appreciated. Jeremiah ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Courier-maildrop mailing list Courier-maildrop@... https://lists.sourceforge.net/lists/listinfo/courier-maildrop |
|
|
Re: Maildrop TO expressionJeremiah Millay wrote:
> Hello, > I'm trying to get a .mailfilter recipe to send mail to a maildir > destination with a space in the name. For example: > Try putting the folder name in double quotes: -- if (/^From:.someuser@.../) { to "$MAILDIR/.Test Folder/" } -- Jay -- Jay Lee Network/Systems Administrator Information Technology Department Philadelphia Biblical University [jlee.vcf] begin:vcard fn:Jay Lee n:Lee;Jay org:Philadelphia Biblical University;Information Technology Department adr;dom:;;;Langhorne, PA email;internet:jlee@... title:Network/Systems Administrator x-mozilla-html:TRUE url:http://www.pbu.edu version:2.1 end:vcard ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Courier-maildrop mailing list Courier-maildrop@... https://lists.sourceforge.net/lists/listinfo/courier-maildrop |
|
|
Re: Maildrop TO expression5 seconds after I sent this I solved it. I just created a variable like so:
SPAMFOLDER = "$HOME/Maildir/.Junk E-mail" # Filter spam into SPAM folder if (/^X-Spam-Flag: YES/) { to $SPAMFOLDER } Thanks for the quick reply! Jeremiah Jay Lee wrote: > Jeremiah Millay wrote: >> Hello, >> I'm trying to get a .mailfilter recipe to send mail to a maildir >> destination with a space in the name. For example: >> > > Try putting the folder name in double quotes: > > -- > if (/^From:.someuser@.../) > { > to "$MAILDIR/.Test Folder/" > } > -- > > Jay > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Courier-maildrop mailing list Courier-maildrop@... https://lists.sourceforge.net/lists/listinfo/courier-maildrop |
| Free Forum Powered by Nabble | Forum Help |