10 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Wierd Error Message
FromSent OnAttachments
Jim GiffordJul 26, 2004 6:33 pm 
Anand BuddhdevJul 26, 2004 6:55 pm 
Jim GiffordJul 26, 2004 8:31 pm 
Anand BuddhdevJul 27, 2004 2:48 am 
Jim GiffordJul 27, 2004 8:03 am 
Anand BuddhdevJul 27, 2004 8:48 am 
Gordon MessmerJul 27, 2004 10:46 am 
dgom...@eyecarenow.comJul 27, 2004 1:12 pm 
Arturo "Buanzo" BusleimanJul 28, 2004 5:34 pm 
Julian MehnleJul 28, 2004 6:06 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: [courier-users] Wierd Error MessageActions...
From:Jim Gifford (mail@jg555.com)
Date:Jul 27, 2004 8:03:44 am
List:net.sourceforge.lists.courier-users

Anand Buddhdev wrote:

Classic mistake. You're running a shell script from your dot-courier file, and you're using the SENDER environment variable without quoting it. When you get a rogue email message with a quote in the sender address, the shell sees the lone quote in the sender address, and gets confused because there's no matching end quote. Make sure you sorround the SENDER variable with quotes, for example:

"$SENDER" instead of just $SENDER

No .courier in use, only .mailfilter for moving messages into the proper folders.

But the error message is clearly from a shell. Does your .mailfilter contain any instructions which call an external program? It would help if you can post your .mailfilter too.

The only thing I have in my shell that uses variables is amavis. Here is the amavis section

# Virus Scan # import SENDER import RECIPIENT

if ($SENDER ne "") { FROM=escape($SENDER) } else { FROM="unkn@jg555.com" }

if ($RECIPIENT ne "") { TO=escape($RECIPIENT) } else { TO="unkn@jg555.com" }

xfilter "/usr/sbin/amavis debug $SENDER $RECIPIENT"