On Thu, 2012-05-10 at 11:18 -0400, Adam Tauno Williams wrote:
> On Wed, 2012-05-09 at 10:18 -0700, shawn wrote: 
> > I accidentally deleted alot of email from my IMAP server.
> > I made a copy of the offline copy that evolution makes. 3/4 of my email
> > is only
> > in this backup. How can i convert this backup into Maildir or IMAP
> > format?
> 
> Is this a current [~3.2] version?  If so I'd put together a Python
> script that recursively walks alls all the files in below
> "~/.local/share/evolution/mail/{accountId}/folders/{folderName}/cur/"
> and reads each one to construct an MBOX file of each folder.
> 
> <http://docs.python.org/library/mailbox.html#mailbox.mbox>
> <http://docs.python.org/library/email.parser.html>
> 
> Parser from email.Parser will read a message from a string or a
> file-handle.  The individual files are raw messages. 

That *is* Maildir. So if you want to "convert this backup into Maildir"
then just copy those individual files from each directory in Evolution's
backup, to the appropriate directory in your normal mail store
(~/Maildir/ on the mail server, perhaps).

If you're using an older version of Evolution where the local storage is
mbox, you'll want a script like mb2md to do the conversion to Maildir.
http://batleth.sapienti-sat.org/projects/mb2md/

-- 
dwmw2

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
evolution-list mailing list
[email protected]
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-list

Reply via email to