giomba / mbox2eml Goto Github PK
View Code? Open in Web Editor NEWExtract emails from mbox-like files to multiple eml files (useful to import in your email client)
License: Other
Extract emails from mbox-like files to multiple eml files (useful to import in your email client)
License: Other
g++ mbox2eml.cpp
or
make
mbox2eml.cpp: In function 'int main(int, char**)':
mbox2eml.cpp:58:82: error: 'to_string' is not a member of 'std'
filename = FILENAME_PREFIX + std::string(4 - (int)log10(index), '0') + std::to_string(index) + '-' + subject + FILENAME_EXTENSION;
^
mbox2eml.cpp: In function 'void save(std::__cxx11::string, const string&)':
mbox2eml.cpp:81:32: error: no matching function for call to 'std::basic_fstream<char>::open(std::__cxx11::string&, const openmode&)'
file.open(name, std::ios::out);
^
In file included from mbox2eml.cpp:17:0:
/usr/include/c++/5/fstream:1001:7: note: candidate: void std::basic_fstream<_CharT, _Traits>::open(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
open(const char* __s,
^
/usr/include/c++/5/fstream:1001:7: note: no known conversion for argument 1 from 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'const char*'
$ g++ --version
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I really hope I can use this program, it's just what I need to relieve my GMail inbox.
I'm on MacOS (13.0), which I believe uses BSD install
, and it doesn't seem to have a -t
option.
I'm not versed in install
else I'd propose a change.
When I run this on a large mbox file, mbox2eml prints the status "read 0K" over and over. There is no other output to STDOUT or files written.
Do you have any plans for a release or at least for creating a tag in Git?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.