Using the latest version of amavisd-new ([login to view URL]), I need a simple custom hook created that allows me to add a signature to every email, and to add a bit of custom html and/or plain text to every email that passes through the system.
Amavisd-new custom hooks are implemented in perl, and it appears a "before_send" hook is the appropriate place to implement this code. The "[login to view URL]" example in the amavisd-new code demonstrates how these custom hooks work.
This hook needs to:
1. Prepend some content to the beginning of every email.
2. Add a signature to the end of every email.
This must work with both the plain text and HTML portions of an email and support both single and multipart MIME encoded emails.
When modifying the plain text portion of the email, the content added would simply be offset by a string delimiter like "\n---------------\n". When modifying the HTML portion of an email, the new content would be included in a separate div, basically styled to set it apart from the rest of the message.
It must also support scenarios where the body content has been base64 encoded. I've seen this with certain paypal emails, for example, that contain a base64-encoded bit of HTML.
I will provide approximately 10 sample emails that should be tested for compatibility.
The code will need to properly parse out the various MIME boundaries and modify any plain text portions, and parse out any HTML code to properly add the prepended content after any "<body>" tag, and the signature before the closing "</body>" tag, so some basic HTML parsing may be required. You may want to use a cpan module like MIME::Signature or the like to assist.
5 freelance font une offre moyenne de $162 pour ce travail
I mainly work with API Integration project.I have passion about API. I have been in this field for more than 7 years. i have experience in C#,php,Perl,wordpress,Html,postgress ,Ubuntu,Crontab,Web Services, Rest Api, Plus
Hello. How are you? Thanks for your posting. I read your detail description and I understood what you need. As an web expert. i have strong skills and experiences in web development for 7 years. I am a expert web Plus
Hi, Good Day, I am experienced developer. I have expertise in C, C++, Perl, CGI, bash script and JAVA. I have written many Perl scripts including API integration (XML). I am a LAMP developer (Linux,Apache,MySQL,Perl Plus
Need Web Development or Business Growing? My experiences range from building responsive software design that work well cross-browser to Business Goal. I am glad to provide full solution to you. We Are in House of Web Plus
Dear hiring manager, I will be glad to do this task for you. 1. Do you have amavisd installed already? 2. Do you have a place where I can try to add this hook and send some test letters? 3. What program do you Plus