Re: Adding Resent-To:
Marco Paganini <[email protected]> Tue, 30 Mar 2004 16:16:10 -0500
| Newsgroups | gmane.mail.spam.active-spam-killer.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Gilles,
If you want to do it, just edit askmessage.py. Locate the "get_recipients"
method using the search function in your editor. It looks something
like this:
(...)
to_list = self.msg.getaddrlist("To") ## To:
cc_list = self.msg.getaddrlist("Cc") ## Cc:
bcc_list = self.msg.getaddrlist("Bcc") ## Bcc:
recipients = []
## Master list of recipients
recipients.extend(to_list)
recipients.extend(cc_list)
recipients.extend(bcc_list)
(...)
Add the lines as specified below:
to_list = self.msg.getaddrlist("To") ## To:
cc_list = self.msg.getaddrlist("Cc") ## Cc:
bcc_list = self.msg.getaddrlist("Bcc") ## Bcc:
rto_list = self.msg.getaddrlist("Resent-To")
recipients = []
## Master list of recipients
recipients.extend(to_list)
recipients.extend(cc_list)
recipients.extend(bcc_list)
recipients.extend(rto_list)
Make sure you use "TABS" to align (tab size = 4) or else Python will
croak and die! :)
Regards,
Paga
On Mon, Mar 15, 2004 at 03:10:29PM +0100, Gilles LAMIRAL wrote:
> Hello,
>
> How to add the "Resent-To:" in the list of headers
> to be checked, like "To:" or "From:".
>
> --
> Au revoir, 33 (0) 2 99 78 62 49
> Gilles Lamiral. France, L'Hermitage (35590) 33 (0) 6 20 79 76 06
> http://www.sri.ucl.ac.be/SRI/frfc/rfc1855.fr.html
>
>
> -------------------------------------------------------
> 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
> _______________________________________________
> A-S-K-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/a-s-k-users
>
--
Marco Paganini | UNIX / Linux / Networking
[email protected] | PGP: http://www.paganini.net/pgp/
http://www.paganini.net | Magnus Frater te spectat...
-------------------------------------------------------
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