Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
.Net VCL for Delphi 1.0.0.0
ASP. NET C# PDF Software 4.5
LinqConnect Professional 4.8
CAD VCL: 2D/3D CAD in Delphi/C++Builder 14
wolfSSL 3.15.7
CAD DLL 14
AnyStock Stock and Financial JS Charts 8.4.2
ODBC Driver for SQLite 2.4
dotConnect for SugarCRM 1.7
dbForge SQL Complete 5.9
dbForge Studio for MySQL 8.0
.Net Runtime Library for Delphi 6.0.4.0
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
Top Code
Zip Zag 1.4
Helpdeskphp - PHP Help Desk Software 1.0
Help Desk Reloaded Free MySql PHP help desk software II.80
Hungarian Algorithm for Linear Assignment Problems (V2.2) 1.0
Learning the Unscented Kalman Filter 1.0
Stepping stone algorithum for solving the transhipment problem
Top Rated
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
Fix mbox files after importing EML into TB using ImportExportTools 
File ID: 64144






Fix mbox files after importing EML into TB using ImportExportTools 
Download Fix mbox files after importing EML into TB using ImportExportTools http://code.activestate.com/recipes/577214-fix-mbox-files-after-importing-eml-into-tb-using-i/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 17
Submit Rating:
Fix mbox files after importing EML into TB using ImportExportTools  Description
Description: I've found a bug in import EML file into Thunderbird using ImportExportTools addon:
when I import eml file into TB there are a 'From' line added to mbox followed with EML file contents.
TB maintains right 'From' line for messages fetched from mailservers:

From - Tue Apr 27 19:42:22 2010

ImportExportTools formats this line wrong I suppose that used some system function with default specifier so I saw in mbox file:

From - Sat May 01 2010 15:07:31 GMT+0400 (Russian Daylight Time)

So there are two errors:
1) sequence 'time year' broken into 'year time'
2) extra trash with GMT info along with time zone name

This prevents the mbox file parsing using Python standard library (for sample) because there are a hardcoded regexp for matching From line (file lib/mailbox.py, class UnixMailbox):

_fromlinepattern = r"From s*[^s]+s+wwws+wwws+d?ds+"
r"d?d:dd(:dd)?(s+[^s]+)?s+dddds*$"

Attached script fixes incorrect From lines so parsing those mboxes using Python standard library will become ok.

License: Freeware

Related: Eml, from, Import, importexporttools, mbox, tb, thunderbird

O/S:Windows

Downloads: 17



More Similar Code

Generates ics files for importing events into iCalender compatible programs.



This application reads the output of Web forms posted on your website (usually via email) and converts them to csv files for importing into a database, or managing in Excel



Generates vcf files for importing personal data into vCard compatible programs.



Packs all python source files from current directory into a single recipe file that can be later run to recreate packed files. Skips files whose names begin with underscore or contain "recipe".



The ASPNetVideo Component Suite allows you to add video files and streaming media into your ASP.Net web forms. ASPNetVideo is unique in that:
- The first commercial-grade ASP.NET component to embed Windows Media Player, QuickTime and...



Drag-and-drop files/directories/HTML-URLs into a Java GUI. Perform text operations on the files into output files. Operations include concatention, text and regex editing, and other file/string/row/column/script operations.



This script copies files in unattended mode over SSH using a glob pattern. It uses the paramiko module behind the scenes. It operates as an actual SSH client, and does not rely on any command line utilities, such as scp.

It first tries...



Read video frames into matlab using avisynth, or retrieve an info struct with information about the video. Input can be a video, an avisynth file or a cell-array of avisynth commands. Not as fast as the videoIO toolbox (about 2 times as slow), but...



Navboard is a php based web forum using text files to store data instead of using a database, compatible with any server running php 4.0 or higher.

It provides you all the features of most major forum software and no installation needed.



Edit theme or plugin files directly from the admin interface using Mozilla's Bespin editor.

User Review for Fix mbox files after importing EML into TB using ImportExportTools
- required fields
     

Please enter text on the image