2

I have just found some tens of thousands of old emails in a Linux subdirectory which I would like to upload to GMail. GMail has an IMAP interface, so if your answer is IMAP-specific, that's perfectly fine.

The emails are stored in nnml format which is sequentially numbered files, one per message. They are not mbox files (that is, there is no "^From " line at the top of the file and therefore no need to escape that in the body). I think these emails were originally written there by either Mutt or Gnus (very likely both, at various times).

What programs (or libraries) exist that do this?

closed as too broad by slm Jun 12 '18 at 1:13

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Interesting. Mind showing us the code you've written so far? – Emmanuel Rosa Jun 11 '18 at 1:06
  • None, so far, for this problem. – James Youngman Jun 11 '18 at 10:35
  • It seems there are several utilities to upload mail to gmail from files in mbox format, such as the mail client thunderbird, and others mentioned at the end of this. I don't know the nnml format, but if it is plain text with no binary and starts with headers, it may be as simple as concatenating the files, adding a dummy From ... line between them, and a blank line at the end of each, and replace From at the start of any line with >From . – meuh Jun 11 '18 at 18:03
  • Some Stack Exchange sites consider software recommendations to be off-topic but this site has a specific tag for it, software-rec. I voted to re-open this question but I'd recommend re-tagging the question. If no such software exists, it would be an interesting programming project. – Anthony Geoghegan Jun 22 '18 at 9:27

Browse other questions tagged or ask your own question.