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
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Database Workbench Pro 5.6.4
Job Portal Script 1.3.2
The C# PDF Library 5.2
PostgreSQL Data Access Components 6.0
Virtual Data Access Components 11.0
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
Top Code
Azizi search engine script PHP 4.1.10
Hotel Management System Restaurant Version 5.25
Travel Booking script 1.0.4
AJ Matrix v2.6
College Management System Script 1.0.4
Spider(rader) Chart for Multi Data 1.0
Frequent Itemset Searching in Data Mining 1.0
Simple Radar_system_simulation 1.0
The Spherical K-means algorithm 1.0
Discrete Frechet Distance 1.0
Personal Web Portal 5.0
Chessgra 1.1
Keno Game 1.I
VChess 6.x-1.x-dev
Advanced TicTacToe game Script 1.1
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
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
Invoice Manager by PHPJabbers 3.0
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
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