Questions tagged [mbox]

mbox is a generic term for a family of related file formats used for holding collections of electronic mail messages

All messages in an mbox mailbox are concatenated and stored as plain text in a single file. The beginning of each message is indicated by a line whose first five characters consist of "From" followed by a space (the so named "From_ line" or "'From ' line" or simply "From line") and the sender's e-mail address. A blank line is appended to the end of each message. For a while, the mbox format was popular because text processing tools can be readily used on the plain text files used to store the e-mail messages.

(source)

110 questions
0
votes
0 answers

Why am I getting an empty DB from mbox?

So I have this code, that takes mbox files and then convert them into sqlite database. However, I am getting an empty database. No matter which mbox I use, the resulting database is 12kb. When I try to view the database/analyze it, it results with…
0
votes
1 answer

python mbox unlock not working

I am using this script to remove messages from an inbox. if(not debug): logging.debug("removing messages") all_mail.lock() for message in all_mail: all_mail.remove(message) all_mail.flush() all_mail.unlock() all_mail.close() After…
pocketg99
  • 124
  • 1
  • 12
0
votes
1 answer

Python, extract raw contents from mbox file

In an mbox file I stored some e-mails: they can also use MIME. They must be extracted as they are in the mbox file, without modifications, with a Python3 script. I tried the following code: import mailbox for message in mailbox.mbox('mboxfile'): …
BowPark
  • 1,340
  • 2
  • 21
  • 31
0
votes
1 answer

this code works on dummy mbox, but not on gmail takeout mbox

I have this code, that will translate mbox to JSON. The goals is to transfer the produces JSON to Mongodb database. However, the code was tested on a dummy mbox "example.mbox" and it worked fine. Nevertheless, when the time to test it on the actual…
Elena
  • 3
  • 5
0
votes
1 answer

How to load Mbox content based on dropdown selection and not on Page load?

I have several MBoxes on the asp.net page, all other Mboxes are supposed to work on page load as it is, however I want to add one new MBox to page. I want to pass custom parameters to the new Mbox based on the dropdown selected value. Hence I do not…
CHash11
  • 746
  • 4
  • 14
  • 31
0
votes
1 answer

Pentaho DI6.1, Error using mBox in Email Message Input Step

This time I need help with this software. I'm trying to create a transformation that, obtaining a mbox, return certains parts of the emails. But! When I use the step Email Message Input preview function, Pentaho return me this. 2016/09/09 14:52:53…
0
votes
1 answer

python, reducing memory consumption and making this code more efficient?

I have written this code (It works - I tried it on small batch of MBOX file). However, when I try it on an MBOX file that has a size of 2.9 GB of about 50,000 mails, the memory consumption skyrocket, making the computer unusable. what is wrong with…
Elena
  • 3
  • 5
0
votes
0 answers

Bash script too slow as string variable grows

The input file ($1) is a mbox file (which is a text file). The idea is to read it from the beginning, save a message in $message, do something with it, discard it and start all over again. The problem now is that the more the message is large and…
Claudio
  • 249
  • 1
  • 2
  • 4
0
votes
1 answer

use regex for parsing mail in mbox

I want to get the following information based on regex and java technologies, where the start tag is "FROM mail@mail.com Time" and the end tag is "FROM mail@mail.com Time" or end of String. The result shall only contain the start tag and the content…
0
votes
0 answers

conversion to mbox fails

I'm going from a previous version of emacs to 23. The automatic conversion of my Rmail messages to mbox seems to work. But then no headers will display. Instead, there is the error message that 'Search failed ""'. I have searched various sites and…
0
votes
2 answers

load mbox using jquery or native javascript

I have a predefined working website, that would be hard to redefine from top to bottom, but I am trying to implement some Test and Target using mboxes. On research I have found that the best place to implement mbox is using global mbox. As the…
0
votes
1 answer

Zend Framework - POP3 - retrieving message source

Is it possible to retrieve the complete message source (similar tu Unix Mbox format) using Zend_Mail_Storage_Pop3 from the Zend Framework? I'm using the following code to retrieve messages: $mail = new Zend_Mail_Storage_Pop3(array('host' =>…
pako
  • 1,908
  • 4
  • 24
  • 40
0
votes
1 answer

Need help to parse mbox file and store certain attributes into MySQL database?

I have an mbox file containing my gmail messages. I would like to parse the file and import certain attributes and its values into my mysql database. Is there a way to do this? Need some suggestions. Thank you
Krishna
  • 97
  • 9
0
votes
3 answers

shell script to extract mail attachments with specific filename

I'm writing a shell script to extract mail attachments from an mbox file At the moment I use this command: cat mboxfile|formail -des munpack -qf But I'd like to embed the sender email address in the filename, something…
atrent
  • 135
  • 2
  • 9
0
votes
2 answers

How do I load an mbox content without inserting into the dom

I'm trying to interface with Adobe Test & Target because I want to load JSON rather than markup through my mbox. I want to load some mbox content into javascript and manually add it to the DOM. I have searched all over for full documentation of the…
Mims H. Wright
  • 3,049
  • 1
  • 25
  • 30