export collections of mails to txt file

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

export collections of mails to txt file

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&easy solution?

Cheers,
Wolf

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: export collections of mails to txt file

Herr Oswald
> Does anybody have a good idea for a quick&easy 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
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: export collections of mails to txt file

Patrick O'Callaghan
In reply to this post by Herr Oswald
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&easy solution?

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

poc

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: export collections of mails to txt file

Gnome Evolution - General mailing list
In reply to this post by Herr Oswald
On Mon, 2020-11-02 at 15:53 +0100, Herr Oswald wrote:
> Does anybody have a good idea for a quick&easy 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
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Drag-n-Drop Wierdness [Was: export collections of mails to txt file]

Adam Tauno Williams
In reply to this post by Herr Oswald
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...

I've experienced this as well (3.34.4).  This feature has been broken
in this strange way for awhile.

--
Adam Tauno Williams, [hidden email]
Multi-Modal Activists Against Auto Dependent Development
resisting the unAmerican socialists of the Motorist hegemony
http://www.mmaaadd.org 

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: export collections of mails to txt file

Herr Oswald
In reply to this post by Gnome Evolution - General mailing list
> 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
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Drag-n-Drop Wierdness [Was: export collections of mails to txt file]

Gnome Evolution - General mailing list
In reply to this post by Adam Tauno Williams
On Mon, 2020-11-02 at 11:20 -0500, Adam Tauno Williams wrote:
> I've experienced this as well (3.34.4).  This feature has been broken
> in this strange way for awhile.

        Hi,
three related opened bugs:
https://gitlab.gnome.org/GNOME/evolution/-/issues/440
https://gitlab.gnome.org/GNOME/evolution/-/issues/618
https://gitlab.gnome.org/GNOME/evolution/-/issues/974

Eventually this one might be related as well:
https://gitlab.gnome.org/GNOME/evolution/-/issues/969

        Bye,
        Milan

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: export collections of mails to txt file

Max Malycha
In reply to this post by Herr Oswald
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
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Drag-n-Drop Wierdness [Was: export collections of mails to txt file]

Gnome Evolution - General mailing list
In reply to this post by Gnome Evolution - General mailing list
FWIW moving an email from one to another folder for Evolution 3.38.1 on
Arch Linux doesn't work using the mouse, at least on my install. No
crash, no freeze, it just doesn't move the message. Right click > Move
to Folder... works. I did neither check the Arch, nor the Evolution bug
tracker, due to a lack of time. For the same reason I didn't report this
IMO minor issue. I don't think it's GTK3 related, since moving an email
from one to another folder by mouse works for the GTK3 branch of Claws,
build against the same GTK3 infrastructure.

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: export collections of mails to txt file

Gnome Evolution - General mailing list
In reply to this post by Herr Oswald
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&easy 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
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: export collections of mails to txt file

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
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Drag-n-Drop Wierdness [Was: export collections of mails to txt file]

Gnome Evolution - General mailing list
In reply to this post by Gnome Evolution - General mailing list
On Mon, 2020-11-02 at 18:26 +0100, Ralf Mardorf via evolution-list
wrote:
> FWIW moving an email from one to another folder for Evolution 3.38.1 on Arch Linux doesn't work using the mouse, at least on my install.
>

        Hi,
depending on your WebKitGTK version it can be:
https://bugs.webkit.org/show_bug.cgi?id=218462

        Bye,
        Milan

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list