Results 1 to 2 of 2

Thread: Resolve Zarafa type sender and recipients before calling Python plugins

  1. #1
    Junior Member
    Join Date
    May 2014

    Resolve Zarafa type sender and recipients before calling Python plugins

    I was trying to use the Python disclaimer plugin provided by Zarafa (to attach a disclaimer on outgoing mail) and change it to attach a different disclaimer, based on the sender's e-mail domain. However the address of the sender (and recipients) is prodvided as a Zarafa number (PR_ADDRTYPE=ZARAFA).

    This would mean I will have to look up the corresponding e-mail address from the Zarafa addressbook in the Python plugin, get the domain and attach the correct disclaimer.

    After running the Python plugins, the Spooler will also look up each e-mail address in the addressbook, to be able to send it to the MTA.

    It would be a lot easier (and efficient) to have the Spooler convert all ZARAFA type sender and recipient e-mail addresses before calling the Python plugin(s).

    Please contact me if you need more information.

    Kind regards,
    Ivo van Geel.

  2. #2
    Zarafa Development

    Join Date
    May 2010
    hello ivo,

    yeah, it's a bit painful to have to use MAPI, but perhaps the following would allow you to proceed?

    service_admin = store.QueryInterface(IID_IECServiceAdmin)
    ecuser = service_admin.GetUser(props[0].Value, 0)
    domain = ecuser.Email.split('@')[1]

    we are working on a higher-level python interface above MAPI atm, which will hopefully make these kinds of things trivial, but it may be some time before this is stable, let alone accessible from a plugin.

Similar Threads

  1. zarafa-search; Inconsistent calling of attachment_parser TIFF files
    By deisenlord in forum Installation, Configuration and Maintenance
    Replies: 3
    Last Post: 10-03-2014, 02:21 PM
  2. How can i sent new mail via python mapi, using zarafa
    By DGruenten in forum Python Development
    Replies: 0
    Last Post: 10-12-2013, 06:59 PM
  3. zarafa-gateway, problems attachments/undisclosed-recipients
    By taugwalder in forum Other mail/calendar clients Archives
    Replies: 2
    Last Post: 13-08-2010, 05:03 PM
  4. Outlook 2000 view on sender. Sender not bold on new mail
    By gbuwalda in forum Outlook usage Archives
    Replies: 2
    Last Post: 22-04-2010, 03:13 PM
  5. Zarafa 6.30.4 Plugins
    By bartdaniels in forum WebAccess usage Archives
    Replies: 1
    Last Post: 01-11-2009, 12:57 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts