10 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] "If" statement not wo...
FromSent OnAttachments
Steve QuezadasNov 2, 2004 5:09 pm 
Ron JohnsonNov 2, 2004 9:11 pm 
Matthias AndreeNov 3, 2004 6:15 am 
Ron JohnsonNov 3, 2004 6:21 am 
Devin RubiaNov 3, 2004 8:18 am 
Matthias AndreeNov 3, 2004 9:43 am 
Dmitri OrleanskiNov 3, 2004 11:03 am 
Steve QuezadasNov 3, 2004 12:05 pm 
Matthias AndreeNov 3, 2004 1:51 pm 
Thorsten HaudeNov 3, 2004 3:11 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] "If" statement not workingActions...
From:Devin Rubia (dev@thezone.net)
Date:Nov 3, 2004 8:18:13 am
List:net.sourceforge.lists.courier-maildrop

On Tue, Nov 02, 2004 at 05:03:47PM -0800, Steve Quezadas wrote:

This is weird, my simple recipe is not working because maildrop seems to be choking on the "if" statement. I checked google and newsgroups and I couldn't find much on this.

My simple recipe is as follows:

VERBOSE=9

logfile "/$HOME/maildrop.log"

DEFAULT="$HOME/domains/acme.com/mark/Maildir/"

if (/^Received:.*/)

to "$HOME/domains/acme.com/mark/Maildir/testing"

$ man maildropfilter [SNIP] IF - CONDITIONAL EXECUTION [SNIP] Note: The grammar of this if statement is stricter than usual. If you get baffling syntax errors from mail- drop, make sure that the braces, and the if statement, appear on separate lines. Specifically: the closing parenthesis, the closing braces, and the else state- ment, must be at the end of the line (comments are allowed), and there may not be any blank lines in between (not even ones containing comments only). [SNIP]

Emphasis on "there may not be any blank lines"