Dump an IMAP Mailbox to a local folder - email

I need to dump IMAP mailboxes from an IMAP server.
I would like to replicate IMAP folders structure on a specific path.
I would like to dump all emails and sub-folders (and then "sub-emails"), but in a filesystem.
Emails in EML format and, foreach one, a file (MAIL1.EML, MAIL2.EML, etc)
IMAP folder as... folders!
I tried getmail but it does not work as expected (i don't want the qmail-style Maildir...)
Any solution?

The solution i found myself is to use the amazing google library imaputils
https://code.google.com/p/imaputils/
This library have the "iu-dump" utility that make exactly what i am searching about

Related

import of mail folders by Thunderbird

My company is no longer supporting our Linux mail server (all will be handled by gmail).
Over the years I've run many mail clients on the Linux server: elm, alpine, squirrelMail, roundCube. My most recent client has been RoundCube.
Ideally I'd like Thunderbird to import the most current folders from RoundCube; these appear to me to be inside Maildir/ (with deeper directories like .saved-mailed, etc). But I also have Mail/ (which alpine appears to reference).
But upon adding this account to Thunderbird, some mix of folders is presented to me: not all from Maildir/ and not all from Mail/...in fact no 'new' Roundcube folders are presented.
Where does Thunderbird search on a linux mail server to 'subscribe' folders? And how can I access this location to force the subscription of the folders I actually want?
I gave up trying to determine where Thunderbird (Tb) searches for mail.
Instead I copied all Roundcube email in Maildir/ to my local machine and then used the code here
https://gist.github.com/lftbrts/249f034a439d3eb2e008f73506cacc2d
to convert that email to mbox format.
Then I copied all that converted email to Tb's 'Local Folders' directory; Tb was able to load all the converted folders and then I 'dragged' them (using Tb) to the synced Gmail account.
So the above named coded saved the day!

mutt + offlineimap and only few folder offline

I have been trying to understand offlineimap with mutt configuration but I probably do not. In the end, I realised that what i need is to have offline only e.b. Inbox and Sent. That configuration one can find on internet but I also need to be able to access the other folders in mutt but without having to download them offline.
E.g.
I want all mails in Inbox to be downloaded offline to the computer and mutt accessing them from the local repository. But I also need to access folder Inbox/SomeMore but without having to reconfigure mutt and offlineimap and most importantly without donwloading the whole content of that folder to the computer.
Is this doable? And exactly how?
offlineimap's job is to download mails and make them available in offline situations. There is no way to temporary download the content of some mail folders. It might be possible to go for a hacky solution. Specify the folders you don't want to sync with the folderfilter option and additionally set up mutt to access the other IMAP folders.
You can specify a folder filter that excludes specific folders. Instead of adding the subfolder's name to the list it might be even possible to exclude it like this INBOX/foo (in case of having multiple folders with the same name):
folderfilter = lambda folder: folder in ['INBOX', 'Sent', 'Drafts', 'Junk', 'foo', ...]
PS: If folderfilter is not specified at all, ALL remote folders will be synchronized.

Mail client that can handle large mailboxes (thunderbird)

So i got thunderbird handeling all my mail. Have some extensions for copying and removing duplicated mails.
But now i got even larger mailboxes. They have about 100K mails with or without attachments.
And if i copy the mail from the server to the local folders i get the following message:
"The xxxx folder is full and can not contain any incoming messages. Delete old or unwanted mail and compact the folder to make room for more messages."
I thought this was an old message or a message if youre disk is formatted in fat32 (Can't handle files over 4gb)
So what limit am i reaching or what can i do to copy these folders from the server to the local folders.
I googled it but i keep going in cycles and can't find a solution.

How can I create a backup of my Exchange emails?

I have a Microsoft Exchange account through my college, and my mailbox is very close to full. I'd like to download the messages to my local machine and archive them so that I can access them later if needed.
It seems to me that I should do something using POP3, but I have no idea where to start.
Note: I am currently using Ubuntu 11.04, but I can boot into Win7 if necessary.
Use Outlook to connect to the mailbox and either expliiclty copy messages to a PST file or use AutoArchive feature to move the old message to an archive PST file.
There is a free product called MailStore that should do the trick. Find it at http://www.mailstore.com

What is the best way to transfer files between servers constantly?

I need to transfer files between servers ... no specific move, but continuos moves. What is the best way ?
scp, ftp, rsync ... other ?
Of course if it's a "common" method (like ftp) I would block just to works between the IP's of the servers.
Also I need a SECURED form to transfer files ... I mean, to be totally sure that the files have moved successfully .
Has rsync a way to know the files were moved successfully ? maybe an option to check size or checksum or whatever.
Note: The servers are in different location
try rsync, utility that keeps copies of a file on two computer systems