This is a discussion on Running TNEF on large store of maildir folders within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Running TNEF on large store of maildir folders I have a large Maildir message store (750MB) of email that was ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Running TNEF on large store of maildir folders
I have a large Maildir message store (750MB) of email that was transfered from an Outlook client to my qmail mail server (configured using qmailrocks configuration). What I need to do is to run TNEF on all the email messages that are currently in the 250+ Maildir folders in the vpopmail users Maildir message store. I would like to create a script that I can run from the console that will progressivly feed each individual email file, check for TNEF encoded attachments, decode the TNEF attachment(s) and then rewrite the message to the Maildir message store in a proper MIME format. I have a few questions: 1) When doing this, will it cause problems if I rewrite the message to the cur directory or should I move the message to ther new directory for each Maildir folder? I am using Thunderbird for all my clients. I am assuming that I will need to click on each message in Thunderbird to re-download the now properly encoded messages, but I rather not have 5000+ "new" messages. 2: What would be the easiest method to write the script? I know that when you pass TNEF a file from the command line, it can spits out the message whichever format(s) the message is in and then it decodes the attachment(s) as individual separate files. How would I reassemble these message into the a Maildir formatted message, properly encoded in RFC compliant MIME format? I would like to also set an order of preference as to the format to write the email message back to the Maildir message (ie. if the original is encoded in HTML, and RTF, use the HTML version and dump the RTF message or convert to plaintext). Please be gentle as I am a newbie when it come to scripting but will gladly read any references as opposed to wanting someone to fix my problems for me... Teach a newbieadmin to fish, don't give me a mcfishsandwich. Thanks much for the help Skydiver |