[Mimedefang] Content-type charset

Steffen Kaiser skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Tue Apr 3 03:12:34 EDT 2007


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

On Tue, 3 Apr 2007, Ahmad Cheikh Moussa wrote:

> Ahmad Cheikh Moussa wrote:
>> Yes, I can guess, because I know the sender.
>> The problem is not depending on the clients.
>> The problem exist, because I add a signature with 8-bit
>> character set at the end of every e-mail.

I guess you're talking about the 13 useless crap lines at the end of your 
mail you've sent to a mailing list archived all over the world publically, 
but are required by the some change of laws in Germany.

Well, where some posts in this list about how to change / replace a part 
of the mail. MIMEDefang is using MIME::Tools for managing a mail, with in 
turn uses MIME::Head for managing the headers.
- From its man page:

$head = MIME::Head->new;
$head->replace('content-type', 'text/plain; charset=US-ASCII');
$head->replace('content-length', $len);

- From the mimedefang-filter man page:

action_rebuild()
Rebuild the mail body, even if mimedefang thinks no changes were made. 
Normally, mimedefang does not alter a message if no changes were made. 
action_rebuild may be used if you make changes to entities directly (by 
manipulating the MIME::Head, for example.) Unless you call action_rebuild, 
mimedefang will be unaware of the changes. Note that all the built-in 
action... routines which change a message implicitly call action_rebuild.

Note the phrase "(by manipulating the MIME::Head, for example.)" I haven't 
done something like that before, but you might find some examples in the 
archive - well if the "confidential information" signature doesn't prevent 
you from reading it ;-)

Maybe the sample filter 
http://whatever.frukt.org/mimedefangfilter.text.shtml helps you. They call 
lots of MIME-related functions.
I guess you'll get more samples by searching for "mimedefang 
action_rebuild".

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRhH+ZOgJIbZtwg6XAQJiOgf8CI335/yE4RD4ji4DiDdakG/jjUufaYS+
2WIidNsYvsbhAy3qNDzKBt2oMXq3OMrmC6vEmYQoSFCwPyNgjh69R57HFlAgIOrz
1T0kVQQ0/aSLAkieAVseWxj30Me797+W+UgxvhoBdn/RihA4VtW7G4BSFsHJifZo
4/wZwLJq+faPoE3QvhdiWFrZoKL3puAY1GQoQVmY3oE6pdTa8SwhpI9z9fjBWzce
7go+elOk1tEo57nvkeds9T4WqdPaxRtoTay5TYvEWoHb+qLSW28LUU9Q/jm3JsPl
LUoLzZjYAvZSJB+/aCESdgf0JgpBQVVKuAbKZYTBwAKwjmLkkRSnow==
=LOsU
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list