[ale] Extracting dovecot email

Lightner, Jeff jlightner at water.com
Wed Nov 17 08:44:27 EST 2010


Thanks,

 

While what you say is true for the files in "cur", as I noted those
correspond ONLY to the ones in the user's "inbox" folder when viewed on
the web.

 

The other directories I was speaking of correspond to the user's OTHER
folders (e.g. Sent and others like one named GKAdvantage that is unique
to this user).  I can see the full message in the web view of these
folders but the files in these directories are NOT the same as the ones
in "cur" so do need some method of being extracted.   As I noted in my
original post the files in these directories are dovecot cache files.
Simply viewing them as I do the ones in cur only shows me header
information - I can not see the body of the email so my assumption is it
is encoded within the cache file as described.   It is these other
folders I would like to extract.   Is there a way to extract from the
cache to get the individual files like the ones seen in cur?  

 

________________________________

From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
Michael Trausch
Sent: Tuesday, November 16, 2010 4:29 PM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] Extracting dovecot email

 

That is the Maildir format. Cur is the "seen messages" (not seen by the
user, but seen by the user's MUA.  The new directory holds the one the
MUA hasn't seen yet. The messages may have multiple hardlinks for
example if they have been moved or deleted and not yet expunged.

For the most part, you can just treat the directory tree as a message
database. One complete message is stored in one file, and the name of
the file contains the IMAP flags applicable to it.  It should be
possible to read them in one file at a time and write them back out as
an mbox format file. You need to create the mbox "from" line at the
start of each message, and add > characters to the word "from" that
begins the line of a message if one isn't already there... but I do not
believe that they need any additional transformation.

--
Sent from my G2 running CyanogenMod!
That is, a phone. :)

On Nov 16, 2010 4:14 PM, "Lightner, Jeff" <jlightner at water.com> wrote:
 
Proud partner. Susan G. Komen for the Cure.
 
Please consider our environment before printing this e-mail or attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20101117/9862afcf/attachment.html 


More information about the Ale mailing list