Running TNEF on large store of maildir folders

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-28-2005
skydiver_morgan@yahoo.com
 
Posts: n/a
Default Running TNEF on large store of maildir folders

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0