Re: [Evolution] export collections of mails to txt file

2020-11-02 Thread Zan Lynx

On 11/2/20 1:14 PM, Dan Kortschak via evolution-list wrote:

Depending on what you define as quick and easy, exporting to mbox and
then writing a script to parse the mbox file and export the parts you
want should be straightforward. Most languages have mbox parsing
libraries that will do the majority of the work for you.


You probably do want the libraries.

In the past I have written Perl scripts to rip up mbox files in about 
five minutes.


However, getting the various text encodings decoded correctly and 
wrapping flowed text into 72 columns with correct ">" quote marks is 
much trickier.


--
Knowledge is Power -- Power Corrupts
Study Hard -- Be Evil
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] export collections of mails to txt file

2020-11-02 Thread Dan Kortschak via evolution-list
On Mon, 2020-11-02 at 15:53 +0100, Herr Oswald wrote:
> Hello everybody,
> 
> I need to export the text contents of a number of messages to a text
> file. I tried mbox export, but there I get a lot of unwanted contents
> (headers, attachments etc). Regexing out them is more than my limited
> abilities can do...
> 
> I found this very old thread:
> 
http://gnome-evolution-general.1774414.n4.nabble.com/exporting-mails-to-txt-or-pdf-td4655326.html
> 
> but the attempt to drag messages to a nautilus folder reliable
> crashes
> evo and at least the mouse...
> 
> Does anybody have a good idea for a quick solution?
> 
> Cheers,
> Wolf

Depending on what you define as quick and easy, exporting to mbox and
then writing a script to parse the mbox file and export the parts you
want should be straightforward. Most languages have mbox parsing
libraries that will do the majority of the work for you.

Dan


___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] export collections of mails to txt file

2020-11-02 Thread Max Malycha
Am Montag, den 02.11.2020, 17:22 +0100 schrieb Herr Oswald:
> > A manual way would look like:
> > a) view a message
> > b) select portion of the text you are interested in in the preview
> > panel
> > c) paste it to a text editor
> > d) save the file
> > e) close the editor
> > f) repeat from step a) as long as other messages to save as text
> > exist.
> > 
> > There might be some tools to convert mbox to text, I mean command
> > line
> > tools, but I'm not aware of any (not using it). I'm sorry.
> > Bye,
> > Milan
> 
> Thank you Milan, so I was not completely stupid, good to know.
> As I'm not processing rocket science secrets, hopefully the use of
> that
> online converter won't kill me...


Hi together,

there might be another way to export the complete mail to text (I have
tested the way on Ubuntu 20.04) - but it works only with mails in plain
text format (HTML does not work)!

 * install cups-pdf to get a local pdf-printer on your system (for all
   applications
 * install poppler-utils (there is a script called pdftotext included)
 * print the mail you want to get as a text-file via cups-pdf. On my
   system cups-pdf is configuered to put the pdf-file in
   /var/spool/cups-pdf/$LOGNAME
 * create a temporary directory for working, eg. /tmp/export-pdf
 * select all pdf-files you want as a textfile and copy/move them from
   cups-pdf directory to the temporary folder
 * cd into /tmp/export-pdf
 * run following commands: for i in *.pdf; do pdftotext $i; done
 * you will find a bunch of textfiles, named like your pdf-file, but
   with suffix .txt

That's it. 


Best regards

Max

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] export collections of mails to txt file

2020-11-02 Thread Herr Oswald
> A manual way would look like:
> a) view a message
> b) select portion of the text you are interested in in the preview
> panel
> c) paste it to a text editor
> d) save the file
> e) close the editor
> f) repeat from step a) as long as other messages to save as text
> exist.
>
> There might be some tools to convert mbox to text, I mean command
> line
> tools, but I'm not aware of any (not using it). I'm sorry.
>   Bye,
>   Milan

Thank you Milan, so I was not completely stupid, good to know.
As I'm not processing rocket science secrets, hopefully the use of that
online converter won't kill me...

Cheers,
Wolf



___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] export collections of mails to txt file

2020-11-02 Thread Milan Crha via evolution-list
On Mon, 2020-11-02 at 15:53 +0100, Herr Oswald wrote:
> Does anybody have a good idea for a quick solution?

Hi,
nothing quick and easy from my side.

A manual way would look like:
a) view a message
b) select portion of the text you are interested in in the preview panel
c) paste it to a text editor
d) save the file
e) close the editor
f) repeat from step a) as long as other messages to save as text exist.

There might be some tools to convert mbox to text, I mean command line
tools, but I'm not aware of any (not using it). I'm sorry.
Bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] export collections of mails to txt file

2020-11-02 Thread Patrick O'Callaghan
On Mon, 2020-11-02 at 15:53 +0100, Herr Oswald wrote:
> Hello everybody,
> 
> I need to export the text contents of a number of messages to a text
> file. I tried mbox export, but there I get a lot of unwanted contents
> (headers, attachments etc). Regexing out them is more than my limited
> abilities can do...
> 
> I found this very old thread:
> http://gnome-evolution-general.1774414.n4.nabble.com/exporting-mails-to-txt-or-pdf-td4655326.html
> 
> but the attempt to drag messages to a nautilus folder reliable crashes
> evo and at least the mouse...
> 
> Does anybody have a good idea for a quick solution?

What format are these mails in? HTML? Plaintext? Rich Text? Something
else?

poc

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] export collections of mails to txt file

2020-11-02 Thread Herr Oswald
> Does anybody have a good idea for a quick solution?
>

OK, found a online converter which does the job:
https://www.coolutils.com/de/online/MBOX-to-TXT

Nevertheless, as it's confidential info, I'd rather not do these things
online...

Wolf




___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


[Evolution] export collections of mails to txt file

2020-11-02 Thread Herr Oswald
Hello everybody,

I need to export the text contents of a number of messages to a text
file. I tried mbox export, but there I get a lot of unwanted contents
(headers, attachments etc). Regexing out them is more than my limited
abilities can do...

I found this very old thread:
http://gnome-evolution-general.1774414.n4.nabble.com/exporting-mails-to-txt-or-pdf-td4655326.html

but the attempt to drag messages to a nautilus folder reliable crashes
evo and at least the mouse...

Does anybody have a good idea for a quick solution?

Cheers,
Wolf

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list