Hello Sam, and all.
I'm running the latest, and am having a bit of trouble escaping in maildroprc -
or rather my escape is working but it's not quite working the way expected.
In my maildroprc, I have
UI_Maildir is the users default delivery location.
MAILBOT="/usr/local/courier/bin/mailbot"
/^Subject: *(.*)/
SUBJECT=escape($MATCH1)
And lower down to do an autoresponse I have:
cc "| $MAILBOT -N -D 1 -d $UI_Maildir/BB-autoreply -t
$UI_Maildir/BB-autoreply.txt -T reply -A\"From: $UI_Name <$UI_Email>\"
-s\"Subject: AUTO-REPLY: ($SUBJECT)\" -A\"Errors-To: nobody@nowhere\"
-A\"Precedence: junk\" -A\"X-Loop: $BADLOOP\" /usr/local/bin/sendmail -f ''"
This works largely as expected, EXCEPT a message with
Subject: Hello world?!
Gets responded to as:
Subject: AUTO-REPLY: (Hello world\?\!)
Whereas I think I should see:
Subject: AUTO-REPLY: (Hello world?!)
I'm sure I'm just missing something here, but I'd expect that as I'm calling
mailbot using double quotes, that my internal quotes require escaping (which I
do) - but my escaped subject is not unescaped on execution - it's like it's
double escaped or somehow not being parsed as an escaped string.
Should the "shell" under mailbot be converting? Or should mailbot be
recognizing the escaped string and converting?
I am upgrading this from an older version where I had different problems with
escaping and eventually skipped echoing certain values as the occasional
unescaped control character crashed things.
Now escaping seems to work great but the results to not seem to be unescaped
when expected.
If I'm expecting the wrong thing, can someone please point me in the right
direction?
Thanks very much!
Mitch.
------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users