Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-15-2011, 04:36 PM
Starter Member
 
Posts: 2
Default Run external program on new mail

Good afternoon Zimbra Community,

this would be my first post here.

My name is Manuel, I have 12 years of on and off programming experience in various environments. My current job in customer service for a entertainment rental company requires the occasional hack to the software we work on to get the job done better. Keeps me entertained.
On a scale of 1 to 10 for programming skills I would probably give myself a 3.5, maybe a 4 on a good day. Just to give you an idea of who you are dealing with.

Here is my challenge:

Upon arrival of email to a specific mailbox I need to run a program to connect to a database, make some changes, send some confirmation emails, etc.
I can easily accommodate all that in a php script, which would tie in nicely with some other webbased tools we are deploying.
What I thus need is to be able to run a wget and pass the message, subject, sender, etc as parameters to the url.
It has been a long time, but I would swear that I could easily realize that many years ago on a qmail server.
Unfortunately I could not find any evidence of this being possible in zimbra.

Any pointers are much appreciated.

Thanks everybody.
Manuel
Reply With Quote
  #2 (permalink)  
Old 01-17-2011, 10:15 PM
Zimbra Employee
 
Posts: 70
Default

You could implement com.zimbra.cs.lmtpserver.LmtpCallback interface which has a method afterDelivery(), and register the implementation with com.zimbra.cs.lmtpserver.ZimbraLmtpBackend.

See Extending Zimbra with Server Extensions » Zimbra :: Blog for how you can deploy your custom code on a Zimbra server.
Reply With Quote
  #3 (permalink)  
Old 01-19-2011, 09:49 PM
Active Member
 
Posts: 26
Default

Is there a list for Zimbra's available extension points?
__________________
zmchina, aka:

China Zimbra Community
Reply With Quote
  #4 (permalink)  
Old 01-19-2011, 10:24 PM
Zimbra Employee
 
Posts: 70
Default

A few extensions points have been mentioned in the blog post but there isn't a list of all officially supported extension points as of now.
Reply With Quote
  #5 (permalink)  
Old 01-20-2011, 04:29 AM
Active Member
 
Posts: 26
Default

ok. thank you.
__________________
zmchina, aka:

China Zimbra Community
Reply With Quote
  #6 (permalink)  
Old 01-21-2011, 08:20 AM
Starter Member
 
Posts: 2
Default

Quote:
Originally Posted by vmahajan View Post
You could implement com.zimbra.cs.lmtpserver.LmtpCallback interface which has a method afterDelivery(), and register the implementation with com.zimbra.cs.lmtpserver.ZimbraLmtpBackend.

See Extending Zimbra with Server Extensions » Zimbra :: Blog for how you can deploy your custom code on a Zimbra server.
Thank you,

I am looking into this. Will keep you posted.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.