On Nov 23, 2012, at 08:58, Sharma, Ashish wrote:
> 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.
I think you either did not read/understand the documentation, are
asking on the wrong list, or both. Postfix supports several ways to
chain together components, and build custom mail workflows. Passing
mail to amavisd-new before redirecting it to a pipe is not a problem,
for example, and that's just one of the options available.
If your Google search for C/C++ libraries did not yield any usable
results, and the use of Python, Perl, Java or what have you is not an
option, then you'll either have to write something from scratch, or
redefine your problem.
> -----Original Message-----
> From: owner-postfix-users@... [mailto:owner-postfix-users@...] 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;
>> -----Original Message-----
>> From: owner-postfix-users@... [mailto:owner-postfix-users@...] On Behalf Of Sharma, Ashish
>> Sent: Monday, November 19, 2012 8:35 PM
>> To: postfix-users@...
>> Subject: C/C++ based Content filter API
>> 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!!!