Jona, The suggested solution is too specific to postfix, in my solution I might use SMTP aware content filter like amavisd-new prior to feeding mail to my own custom content filter, so pipe is not suitable in my case.
I am looking for a SMTP aware content filter api in C/C++ just like 'subethasmtp' (http://code.google.com/p/subethasmtp/) for Java. Thanks Ashish -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of DTNX Postmaster Sent: Wednesday, November 21, 2012 9:50 PM To: Postfix users Subject: Re: C/C++ based Content filter API On Nov 21, 2012, at 15:10, Sharma, Ashish wrote: > Any comments on the following posted queries. I suggest you read the documentation available, such as; http://www.postfix.org/documentation.html http://www.postfix.org/CONTENT_INSPECTION_README.html http://www.postfix.org/FILTER_README.html http://www.postfix.org/pipe.8.html Cya, Jona -- > -----Original Message----- > From: owner-postfix-us...@postfix.org > [mailto:owner-postfix-us...@postfix.org] On Behalf Of Sharma, Ashish > Sent: Monday, November 19, 2012 8:35 PM > To: postfix-users@postfix.org > Subject: C/C++ based Content filter API > > Hi, > > I am implementing a customized enterprise solution where I need to receive an > email , pull out the contents from the email and initiate some enterprise > operations based on the received content of the email. > > I am using Postfix as mail receiving server and, for mail parsing I am > planning to use Gmime (http://spruce.sourceforge.net/gmime/), > > The real problem here I am facing is that I am unable to find a good C/C++ > based Content filter api, as one is provided in java like 'subethasmtp' > (http://code.google.com/p/subethasmtp/). > > Can someone suggest one please? > > Thanks in advance!!! > > Ashish