From b960e94dda8ccd730f66a57f2e56890058cd095f Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Wed, 25 Feb 2004 10:59:16 +0000 Subject: [PATCH] comes from ERP5CPS git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@509 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5SyncML/skins/mail_received.py | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 product/ERP5SyncML/skins/mail_received.py diff --git a/product/ERP5SyncML/skins/mail_received.py b/product/ERP5SyncML/skins/mail_received.py new file mode 100755 index 0000000000..22e6a4cb44 --- /dev/null +++ b/product/ERP5SyncML/skins/mail_received.py @@ -0,0 +1,25 @@ +## Script (Python) "mail_received" +##bind container=container +##bind context=context +##bind namespace= +##bind script=script +##bind subpath=traverse_subpath +##parameters=theMail +##title= +## + +id = theMail['headers'].get('subject') +msg = theMail['body'] + +# Master side, uncoment this if you are the master +#context.portal_synchronizations.PubSync(id,msg=msg) + +# Client side, uncoment this if you are the master +#context.portal_synchronizations.SubSync(id,msg=msg) + + + +# the return of None indicates a success +# The return of anything else assumes that you are returning an error message +# and most MTA's will bounce that error message back to the mail sender +return None -- 2.30.9