-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charles Mount wrote:
> I have two similar needs for sending mail to an additional
> recipient. 
...
> Has anyone used MimeDefang to do something like this?

I use this technique for Bayes training. We randomly sample messages
for hand-sorting and then feed them back into the Bayes database.
It's all done automatically (except for the sorting, obviously): The
messages appear in an IMAP folder ready for sorting. They are sorted
into two IMAP folders and then our MXes train off the sorted mail and
then delete the messages.

Anyway, there are two ways:

1. Call add_recipient('[EMAIL PROTECTED]'); with the recipient to add.
If you modify the message, this is obviously going to deliver a
modified copy. Also, if you bounce or discard the message, this won't
work.

2. Call resend_message('[EMAIL PROTECTED]'); This will resend the
original message to the recipient you specify. You may need to
re-work your filter logic and/or add an exception for the address
used because the resent message is going to be processed by
MIMEDefang.

Obviously, if you only want to add the additional recipient in some
cases, you'll need to write the appropriate if statement yourself.

In either case, you'll want to add this code to either filter_begin
or filter_end. (Probably in filter_end, but it depends on your
needs.)

Richard Laager


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2
Comment: If you don't know what this is, you can safely ignore it.

iQA/AwUBQFaWo231OrleHxvOEQKqMQCaA/evxRYctdmyv79AKwvTjmIOgf4An0j6
h8eYqoA38QE0eR1G39tZmjC0
=zWQT
-----END PGP SIGNATURE-----

_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to