Hello everybody,

I am trying to get the mailgate working with the CRM module.
I have created a new cas section (section1) with an email address 
([email protected])
I am trying to get fetchmail and openerp-mailgate to automatically create a new 
case
here is my fetchmailrc configuration file :
poll mail.mydomain.net proto pop3:
username [email protected] password mypassword mda 
"/usr/lib/python2.5/site-packages/openerp-server/addons/crm/scripts/openerp-mailgate/openerp-mailgate.py
 -u 3 -p mypassword -s 11 -e [email protected] -d mytestdatabase"

here is what i got when launching fetchmail -f .fetchmailrc -v :

fetchmail: 6.3.8 interroge mail.mydomain.net (protocole POP3) à sam 30 mai 
2009 09:18:12 CEST : récupération en cours
Essai de connecter avec *.*.*.*/*...connecté.
fetchmail: POP3<OK> CAPA
fetchmail: POP3< +OK Here's what I can do:
fetchmail: POP3< STLS
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< LOGIN-DELAY 10
fetchmail: POP3< PIPELINING
fetchmail: POP3< UIDL
fetchmail: POP3< IMPLEMENTATION Courier Mail Server
fetchmail: POP3<fetchmail> STLS
fetchmail: POP3<OK> CAPA
fetchmail: POP3< +OK Here's what I can do:
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< LOGIN-DELAY 10
fetchmail: POP3< PIPELINING
fetchmail: POP3< UIDL
fetchmail: POP3< IMPLEMENTATION Courier Mail Server
fetchmail: POP3<fetchmail> USER [email protected]
fetchmail: POP3<OK> PASS *
fetchmail: POP3<OK> STAT
fetchmail: POP3<OK> LAST
fetchmail: POP3<ERR> UIDL
fetchmail: POP3< +OK
fetchmail: POP3< 1 1243592179.H411438P13477.*.*.*,S=717
fetchmail: POP3<1> LIST 1
fetchmail: POP3<OK> TOP 1 99999999
fetchmail: POP3< +OK headers follow.
lecture du message [email protected]@mail.mydomain.net:1 parmi 1 (736 
octets)
#*Traceback (most recent call last):
  File 
"/usr/lib/python2.5/site-packages/openerp-server/addons/crm/scripts/openerp-mailgate/openerp-mailgate.py",
 line 318, in <module>
    parser.parse(msg_txt)
  File 
"/usr/lib/python2.5/site-packages/openerp-server/addons/crm/scripts/openerp-mailgate/openerp-mailgate.py",
 line 269, in parse
    case_id = self.msg_new(msg)
  File 
"/usr/lib/python2.5/site-packages/openerp-server/addons/crm/scripts/openerp-mailgate/openerp-mailgate.py",
 line 113, in msg_new
    import netsvc
ImportError: No module named netsvc
fetchmail: MDA a retourné un état non nul (1)
 non éliminé
fetchmail: POP3> QUIT
fetchmail: POP3< +OK Bye-bye.
fetchmail: 6.3.8 interroge mail.mydomain.net (protocole POP3) à sam 30 mai 
2009 09:18:14 CEST : interrogation finie
fetchmail: terminaison normale, état 0


I don't know anything about python, but I edit the openerp-mailgate.py file and 
can see that it is trying to load an external module : netsvc.
I've got to file in netsvc.py and netsvc.pyc inside the openerp-server folder, 
so if I simply copy paste this 2 files inside the openerp-mailgate folder 
fetchmail will then end with an error concerning another module : tools

It seems to me that I am missing something inside installation or configuration 
of the openerp-mailgate but I am stopped at this point and would definitely 
appreciate some help to sort this out and get the mailgate working.

In advance, thanks for helping

------------------------
make my day !




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=37233#37233

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to