Home
Name Modified Size InfoDownloads / Week
readme.txt 2010-01-18 1.4 kB
addAttachFilter.pl 2010-01-18 5.6 kB
Totals: 2 Items   7.0 kB 0
HOW DO I TEST IF THIS WORKS ?

You can save one email with thunderbid as, for instance, sampleMail.eml.
Then execute: 

$ cat sampleMail.eml | ./addAttachFilter.pl > sampleMailWithAttach.eml

Finally open sampleMailWithAttach.eml and you will see you original email, 
but now having extra attachment file/s.

HOW DO I CHANGE THE FILE/S ATTACHED WITH THIS SCRIPT ?

The easyest way of doing this is sending yourselft a mail with the 
attachments you want to add. Then save de mail as a file and open it with a
text editor. Finally copy de code for de attachment and replace it in the 
addAtachFilter script. You can attach more than one file simply by repiting 
the instrucctions indicated in the comment of the the script.

HOW DO I ADD A DISCLAIMER OR SIGNATURE WITH A LOGO ?

With altermime you can append html at the end of the mail, 
With addAttachFilter you can attach files to mails,
Then you can add a disclaimer or signaure with a LOGO by attaching 
some image, and appending html to the e-mail with an IMG tag like this:

<img src="cid:image001.jpg@05C39850.E4534190" />

HOW DO I HOOK IT INTO ALTERMIME ?

One way to do this is simply by changing the line:

cat > in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }

with the line:

cat | /path/to/addAttachFilter.pl > in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }

In the script that calls altermime.
Source: readme.txt, updated 2010-01-18