On Mon, 15 Jul 2002, an ba wrote:
I'm running maildrop-1.4.0 and I'm using sqwebmail-3.3.6 to generate
filter recipe for maildrop. [...] The filter recipe in my
".maildirfilter" is as below; Can someone tell why it doesn't work?
if ((/^subject:.*testing\-auto/))
{
AUTOREPLYFROM=$FROM
`/usr/local/bin/mailbot -A "X-Sender: $FROM" -A
"From: $AUTOREPLYFROM" -m
"./Maildir/autoresponses/testing" $SENDMAIL -t -f ""`
}
- Line breaking is not correct
- Variable substitution only works with double quotes
- The to statement is missing
Maybe this could work (untested!):
if (/^subject:.*testing\-auto/)
{
to "|/usr/local/bin/mailbot -A \"X-Sender: $FROM\" -A \
\"From: $FROM\" -m \
\"./Maildir/autoresponses/testing\" $SENDMAIL -t -f \"\""
}
Greetings, Mark
The rule will be overrided after you add any new rule in sqwebmail because
it is automatically generated. The change log of sqwebmail-3.3.6 mentioned
that problem is fixed. However, I am not the lucky one even upgrade
sqwebmail from 3.3.4 to 3.3.6 .............