[Evolution] Saving Email Messages to Disk Automatically

2015-05-21 Thread Patrick Huguelet
Hey,

So I'm having some trouble saving email message to disk. If I move them to
the On this Computer folder they appear in the .local folder as text
documents but otherwise I cannot access them on disk as far as I can find.
I'm trying to construct a process that saves the emails to disk
automatically so I can run a program on them at intervals and save the data
into a PostgreSQL database. Is there anyway to automatically move the
emails from my email address to the computer or a simpler avenue to do what
I want?

My version is 3.12.11 running on Fedora.


Thanks!
Pat

-- 
Patrick Huguelet
University of Michigan '16
College of Literature, Science, and the Arts
Concentration in Neuroscience and Computer Science
(248) 534-3948
___
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] Saving Email Messages to Disk Automatically

2015-05-21 Thread Pete Biggs

 
 
 So I'm having some trouble saving email message to disk. If I move
 them to the On this Computer folder they appear in the .local folder
 as text documents but otherwise I cannot access them on disk as far as
 I can find.

It is unwise to play around with things in Evolution's private data
store - you can cause confusion and data corruption for the program.
And they aren't text documents, it's a Maildir formatted mail store.

  I'm trying to construct a process that saves the emails to disk
 automatically so I can run a program on them at intervals and save the
 data into a PostgreSQL database. Is there anyway to automatically move
 the emails from my email address to the computer or a simpler avenue
 to do what I want?

Couple of possibilities - really depends on what format you want the
mail in:

1. Use a filter to pipe the mail to a program as it's received.

2. Create a mail store on disk somewhere (either mbox or Maildir
depending on how you want to process it), create a new mail account in
Evo pointing to that mail store and then copy incoming mail into that
mail store using a filter.

A word of warning with filters and programs - the filter will wait until
the external program terminates before continuing, so if the program
takes a long time to do any processing, then Evo will also take a long
time to process any incoming mail.

P.

-- 
Pete Biggs  pete.biggs @ chem.ox.ac.uk

 Chemistry IT Support queries to h...@itsupport.chem.ox.ac.uk


___
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] Saving Email Messages to Disk Automatically

2015-05-21 Thread Ángel González
Patrick Huguelet wrote:
 Hey,
 
 So I'm having some trouble saving email message to disk. If I move 
 them to the On this Computer folder they appear in the .local 
 folder as text documents but otherwise I cannot access them on disk 
 as far as I can find. I'm trying to construct a process that saves 
 the emails to disk automatically so I can run a program on them at 
 intervals and save the data into a PostgreSQL database. Is there 
 anyway to automatically move the emails from my email address to the 
 computer or a simpler avenue to do what I want?

evolution isn't the best suited tool for that.
If you want to automatically download the contents of a mailbox for
automatically processing them, I would use a program like fetchmail or
mpop (you should configure them to pipe into the script, instead of
using a pre-existing mailbox format like Maildir or mbox).
___
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] Saving Email Messages to Disk Automatically

2015-05-21 Thread Adam Tauno Williams
On Fri, 2015-05-22 at 02:45 +0200, Ángel González wrote:
  So I'm having some trouble saving email message to disk. If I move
  them to the On this Computer folder they appear in the .local 
  folder as text documents but otherwise I cannot access them on di
  as far as I can find. I'm trying to construct a process that saves 
  the emails to disk automatically so I can run a program on them at 
  intervals and save the data into a PostgreSQL database. Is there 
  anyway to automatically move the emails from my email address to 
  the 
  computer or a simpler avenue to do what I want?
 evolution isn't the best suited tool for that.
 If you want to automatically download the contents of a mailbox for
 automatically processing them, I would use a program like fetchmail 
 or
 mpop (you should configure them to pipe into the script, instead of
 using a pre-existing mailbox format like Maildir or mbox).

I think fetchmail is also the wrong tool for this job.  I would
recommend using the imaplib Python module to connect to the mail server
and retrieve the message and process them into your database.   This
make synchronization straight forward and efficient - you can use the mailboxes 
UID as an anchor and easily process new messages, and just 
get the
parts of the message from the server that you want.

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