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
1
vote
1 answer

How can I get the date of an email using Perl's Mail::MboxParser::Mail?

This is a simple question. I have a little program here that reads a list of emails in a specific inbox of a user account specified by the program. I can access an account using its username, password and host. The only problem is I don't know how…
Suezy
  • 1,071
  • 4
  • 13
  • 19
0
votes
1 answer

PEAR2 - Mbox not installing correctly

Im attempting to install the Mail_Mbox-0.6.3 package as i need to use the classes for accessing email attachments from php. However when i try to install using the newpackage manager it keeps giving me errors. php pyrus.phar install…
cosmicsafari
  • 3,949
  • 11
  • 37
  • 56
0
votes
0 answers

Trouble converting .mbox to .pst using the libratom library

Trying to use the libratom library to convert a gmail extract (saved as .mbox) to a .pst to be able to open it in MS Outlook. Not able to use already created software due to security reasons. Need to The code I'm using is below: import…
K_P
  • 1
  • 2
0
votes
2 answers

How to set url to read inbox in mstor on windows machine

I am using mstor to read mbox email messages on windows machine, I am able to connect to the store, but when trying to read the inbox i'm getting error saying 'Unrecognized meta data strategy: null'. I placed the MBOX file in the…
user972590
  • 251
  • 1
  • 5
  • 13
0
votes
0 answers

Create a Dataframe from the Mbox Data with Email Contents

I use mbox library to read mbox data (email data I downloaded with google takeout) with Python but I can not find how I can read the body of the email. Below are the headers, I couldn't find anything related to text written in the…
Burak
  • 35
  • 6
0
votes
1 answer

Choose encoding when converting to Sqlite database

I am converting Mbox files to Sqlite db. I do not arrive to encode the db file into utf-8. The Python console displays the following message when converting to db: Error binding parameter 1 - probably unsupported type. When I visualize my data on DB…
0
votes
1 answer

Using Python mailbox to delete old msgs, lock doesn't work

I have a very busy server with plenty of processes scheduled with cron and each sends an email so the mailbox gets a lot of messages. I want to delete old messages from previous months and of course, I could use mutt and do it by hand, but it is…
0
votes
0 answers

Malformed eMail Date Header Field with Address Specification

When parsing a collection of MBox files, I came across a surprising number of Date header fields of the form: "Date:" date-time "<" addr-spec ">" Reading the available RFCs I find no matching syntax. The valid form appears to be: "Date:" date-time…
Ben Crowhurst
  • 8,204
  • 6
  • 48
  • 78
0
votes
0 answers

How to parse .mbox format with delphi to delete mail attachments?

I would like to keep an archive of my e-mail conversations from the mailbox, but remove unnecessary attachments (which are usually graphics and text files), to make archive smaller. I wrote a simple parser that does for all downloaded mailboxes in a…
kwadratens
  • 187
  • 15
0
votes
2 answers

Mbox isn't refreshing the object

I'm making a screen using Mbox, however it aren't refresh my object. I wanna just show a List of string for after create a table with this information. My Mbox code is it: abstract class ControllerResearchBase with Store { Pesquisa _finalResearch =…
0
votes
0 answers

Is it possible to read an "mbox" file passing the mbox data not a path?

All the mbox examples I've seen have code like this: final Store store = session .getStore(new URLName("mstor:" + ); Since I want to run the mbox code in a REST service, I need to be able to pass the mbox data itself…
Morkus
  • 517
  • 7
  • 21
0
votes
2 answers

Open local mbox mail archive with imap_open() in PHP

I'm attempting to read an mbox email archive exported from another server locally, via file access, but for whatever reason everything I've tried fails. Is there some magical trick to parse a local file and access it with PHP's built-in IMAP…
Will Ashworth
  • 1,058
  • 3
  • 13
  • 28
0
votes
1 answer

Write html file from mbox

Before Yahoo groups was closed, you could download the content of a group to an mbox file. I am trying to convert the mbox file to a series of html files - one for each message. My problem is dealing with the encoding and special characters in the…
Dkellygb
  • 866
  • 2
  • 8
  • 24
0
votes
0 answers

How to convert mbox into csv format using python?

I am writing to convert email Mbox format into CSV using Python 3 import mailbox import csv writer = csv.writer(open(r"...\clean_mail.csv", "w")) for message in mailbox.mbox(r'...\Inbox-001.mbox'): if message.is_multipart(): content =…
user5570383
0
votes
2 answers

Fixing corrupt mbox files with sed/awk

I got a bunch of old, inherited mbox files which I want to convert to maildir. Problem: The mboxes are not totally RFC compliant. There are several mailboxes missing the empty line before the "^From " line in some (but not all) mails which causes…
Frank
  • 1