Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uzulla/convert_mbox_to_eml_files
Split huge mbox file(giga byte) to many .eml(.emlx) file.
https://github.com/uzulla/convert_mbox_to_eml_files
Last synced: about 1 month ago
JSON representation
Split huge mbox file(giga byte) to many .eml(.emlx) file.
- Host: GitHub
- URL: https://github.com/uzulla/convert_mbox_to_eml_files
- Owner: uzulla
- Created: 2014-01-02T18:50:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-09T05:39:00.000Z (almost 11 years ago)
- Last Synced: 2023-03-23T12:14:03.828Z (almost 2 years ago)
- Language: PHP
- Homepage:
- Size: 141 KB
- Stars: 11
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mbox file to eml files converter.
================================Split huge mbox file(giga byte) to many .eml (.emlx) file.
why?
----Google TakeOut is great and great judge. huge thanks to google.
then. I tried export whole mails for OSX Spotlight search.
but Downloaded file is one HUGE mbox file.
so, I made this.
requiment
---------- PHP cli (really, It is not joke)
tested with 5.5.7. over 6 giga byte file. relax.
usage
-----```
mkdir ~/many_eml_file/
php mbox_to_eml.php ~/Downloads/aaaa.mbox ~/many_eml_file/
```and...
for Google TakeOut's output mbox, require option below. (reason will be mentioned later.)
3rd arg is for skip line from head of section.
```
mkdir ~/many_eml_file/
php mbox_to_eml.php ~/Downloads/aaaa.mbox ~/many_eml_file/ 2
```for osx spotlight
-----------------osx spotlight indexing not support .eml, must use .emlx.
if you want .emlx, set 4th arg = 1.
```
mkdir ~/many_eml_file/
php mbox_to_eml.php ~/Downloads/aaaa.mbox ~/many_eml_file/ 2 1
```(added meta data is dummy(blank). but i can search by spotlight with 10.9(mavericks) .)
hey google!
==========wtf?
```
X-GM-THRID: xxxxxxxxxxxxxxxxxxxx
<-- this is blank line.
Delivered-To: xxxxxxxxx@xxxxxxxx
blah:
foo:
subject:hello i am phper!
```I think, DON'T insert blank line before body in mbox/eml...
(I think... but... this is google product... I am wrong? Certainly, I am phper.)
blank line exist in some mail. these don't have `X-Gmail-Labels:`.