9 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Problem with maildroprc
FromSent OnAttachments
juanmiDec 23, 2005 1:52 pm 
Thorsten HaudeDec 23, 2005 2:02 pm 
Sergiy ZhukDec 23, 2005 2:10 pm 
juanmiDec 23, 2005 2:12 pm 
PollywogDec 23, 2005 2:20 pm 
juanmiDec 23, 2005 2:22 pm 
Thorsten HaudeDec 23, 2005 2:27 pm 
PollywogDec 23, 2005 2:39 pm 
Tony EarnshawDec 23, 2005 5:40 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] Problem with maildroprcActions...
From:Sergiy Zhuk (ser@yahoo-inc.com)
Date:Dec 23, 2005 2:10:40 pm
List:net.sourceforge.lists.courier-maildrop

hi

On Fri, 23 Dec 2005, juanmi wrote:

Hi list, i have a problem with this code, doesn't work. I don't know if it is OK. You can help me?

what are you trying to do ? you don't specify any action after the exception statement, so it's not clear what you wanna to with it. Looks like you're confusing the execution order. "exception" is somewhat similar to "eval" in perl, i.e. it will run whatever is in the {} and if it fails, it will execute commands *after* the closing bracket, e.g.:

# check if included filter is correct # deliver to Inbox if it's not # (syntax errors or delivering to a non-existent folder etc)

exception { include "$HOME/.mailfilter" } if ( $LOGGING eq 'ON' ) { log ".mailfilter delivery failed" log "delivering to inbox" } to $DEFAULT