It is currently Sat Feb 11, 2012 11:58 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Fetchmail and Mailgate.py
PostPosted: Sat Feb 20, 2010 8:28 am 
Offline

Joined: Fri Mar 13, 2009 5:16 pm
Posts: 28
Location: United kingdom
I almost have it working.

I am trying to fetch email from a email imap folder and drag them into
openerp. The script is reading the emails fine but they are not
getting imported into the db. I am starting to think it is something
to do with the permissions on the db but I may be wrong !!:-)

the script runs with
fetchmail -v -k -f fetchmailrc

The script is as follows
#fetchmail
#set daemon 300

poll imap.googlemail.com service 993 proto imap:

username support@domain.co.uk password support mda
"/path/to/openerp-server-5.0.6/bin/addons/crm/scripts/openerp-mailgate/openerp-mailgate.py
-u 1 -p service123! -e support@domain.co.uk -s 1 -m
support@domain.co.uk -d service"
ssl

The script reads the emails bu they are not imported into the db /case section?

Can you assist

Thanks Stephen :?:


Top
 Profile  
 
 Post subject: Re: Fetchmail and Mailgate.py
PostPosted: Mon Feb 22, 2010 7:28 pm 
Offline

Joined: Fri Apr 21, 2006 7:28 pm
Posts: 1332
Location: Cambridge, UK
bigfishinnet wrote:
Code:
... -u 1 -p service123! -e support@domain.co.uk -s 1 -m support@domain.co.uk -d service" ....

Are you sure that those spaces are Ok between the switch and the parameter there?

_________________
Regards, Geoff

Seath Solutions Ltd, Cambridge, UK


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 22, 2010 10:08 pm 
Offline

Joined: Fri Mar 13, 2009 5:16 pm
Posts: 28
Location: United kingdom
Hi, I did try that but I got an error?? No errors with u 1 I have seen a couple of posts in the forum that indicate u 1 but quite a few others u1, etc, etc. I don't know which it is meant to be bu u 1 and spaces after the other switches worked for me.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 22, 2010 10:29 pm 
Offline

Joined: Fri Mar 13, 2009 5:16 pm
Posts: 28
Location: United kingdom
That said I have just tested it with u1 and no spaces for the remaning switches and it works!! Don't understand!!!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 22, 2010 10:52 pm 
Offline

Joined: Fri Apr 21, 2006 7:28 pm
Posts: 1332
Location: Cambridge, UK
bigfishinnet wrote:
That said I have just tested it ... and it works!!...

Good to hear that.

_________________
Regards, Geoff

Seath Solutions Ltd, Cambridge, UK


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP