4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Escape function not w...
FromSent OnAttachments
cour...@arantius.comFeb 24, 2005 6:18 pm 
Doc WalkerFeb 24, 2005 8:56 pm 
Doc WalkerFeb 25, 2005 6:48 pm 
cour...@arantius.comFeb 27, 2005 3:51 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] Escape function not working?Actions...
From:cour...@arantius.com (cour@arantius.com)
Date:Feb 27, 2005 3:51:30 pm
List:net.sourceforge.lists.courier-maildrop

Doc Walker wrote:

cour@arantius.com wrote:

The following in my filter: /Subject: *!.*/ s=escape($MATCH2) log "Escaped (?) subject: " $s Logs, i.e.: Escaped (?) subject: Comment Added: On-board Sound doesn't work

log $MATCH

I was able to log subject lines containing unbalanced quotes just fine with the above statement in my .mailfilter.

The thing is, I'm not looking to just log that variable. Like I said in my original post, I'm looking to pass it to a shell script. Since escape is not actually escaping quotes, I'm getting errors like:

deferral: bash:_-c:_line_1:_unexpected_EOF_while_looking_for_matching_`''/bash:_-c:_line_2:_syntax_error:_unexpected_end_of_file/maildrop:_error_writing_to_mailbox.//usr/bin/maildrop:_Unable_to_deliver_to_mailbox./

In my MTA log, and my queue filling up. The log was just an example to check what the contents of the variable was,a nd to see that it in fact was not escaping the quotes like I expected.