original subject in confirmation message (but buggy if too long)

Marc Herbert <[email protected]> Thu, 11 Mar 2004 19:04:47 +0100 (CET)
Newsgroups gmane.mail.spam.active-spam-killer.general
Message-ID <Pine.LNX.4.58.0403111852070.8562@fcat>
This message is basically a sum-up of this feature request:
 <http://sourceforge.net/tracker/index.php?func=detail&aid=588023&group_id=42266&atid=432548>

            --------------

Configurable confirmation Subject line

I'd like to be able to configure the Subject line in my
confirm message. The default message looks too much
like SPAM (before I got ASK, I probably would have
deleted a confirm email message).

I edited my askmessage.py file and changed it to 'Re:
<original email's subject> (conf#), but it'd be nice if
people could do it by hand. You'd need some character
(like %s) to indicate the old subject line.

Andrew

            --------------

I was very interested in this feature, so I also implemented
it. At first I did this:

-   "Please confirm (conf#%s)" % self.ascii_digest,
+   "Re: %s (conf#%s)" % (self.getsubject(), self.ascii_digest),


But I discovered (the hard way) that this code had a severe bug:
when the original subject is quite long, some line wrap happens
somewhere (I don't know where! Please help), and this Subject
line wraps may break the confirmation code in the confirmation
message!

So I modify it like this below, moving the confirmation code
at the front, and it seems to work since the line wrap becomes
harmless (but still happens).

-   "Please confirm (conf#%s)" % self.ascii_digest,
+   "(conf#%s) Re: %s" % (self.ascii_digest, self.get_subject()),


Thanks in advance for any explanation.





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click