summaryrefslogtreecommitdiff
path: root/addons/fetchmail/fetchmail.py
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2013-03-22 14:49:58 +0100
committerVo Minh Thu <vmt@openerp.com>2013-03-22 14:49:58 +0100
commit9b0ced610f35adff2db9cc47206b49d14d1f30ac (patch)
treeda13a82d3f565b74d0bf7505ce880836f514dcdc /addons/fetchmail/fetchmail.py
parent64a35f6859aaecf5bb3de623b1fde70277017ae7 (diff)
parent5a3ed6f024cd093bad7f01466af526e4905e58c8 (diff)
[MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130322134958-jhe6m0222jq7wo41
Diffstat (limited to 'addons/fetchmail/fetchmail.py')
-rw-r--r--addons/fetchmail/fetchmail.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py
index 270e50d5655..397ca893bae 100644
--- a/addons/fetchmail/fetchmail.py
+++ b/addons/fetchmail/fetchmail.py
@@ -77,7 +77,7 @@ class fetchmail_server(osv.osv):
'priority': fields.integer('Server Priority', readonly=True, states={'draft':[('readonly', False)]}, help="Defines the order of processing, "
"lower values mean higher priority"),
'message_ids': fields.one2many('mail.mail', 'fetchmail_server_id', 'Messages', readonly=True),
- 'configuration' : fields.text('Configuration'),
+ 'configuration' : fields.text('Configuration', readonly=True),
'script' : fields.char('Script', readonly=True, size=64),
}
_defaults = {
@@ -112,7 +112,16 @@ class fetchmail_server(osv.osv):
conf['model']=r[0]['model']
values['configuration'] = """Use the below script with the following command line options with your Mail Transport Agent (MTA)
-openerp_mailgate.py -u %(uid)d -p PASSWORD -o %(model)s -d %(dbname)s --host=HOSTNAME --port=PORT
+openerp_mailgate.py --host=HOSTNAME --port=PORT -u %(uid)d -p PASSWORD -d %(dbname)s
+
+Example configuration for the postfix mta running locally:
+
+/etc/postfix/virtual_aliases:
+@youdomain openerp_mailgate@localhost
+
+/etc/aliases:
+openerp_mailgate: "|/path/to/openerp-mailgate.py --host=localhost -u %(uid)d -p PASSWORD -d %(dbname)s"
+
""" % conf
return {'value':values}