Calling all GSoC applicants -- You have all looked at the current state of MM and made proposals to improve it. Now it is time to discuss what YOU need others to provide so that your contribution fits into the "whole" without your having to implement everything yourself. Let's discuss what you would like from the mentor-developers and, as a "class" how your contributions would complement each other.
You can start up the discussion on IRC #mailman or on this mailing list.
Let's hear from you.
Richard "Wacky" Wackerbarth
On May 02, 2013, at 04:03 PM, Spamm Azz wrote:
>I wrote a function in C language that customizes an email body. My target is
>to integrate this function inside mailman 3 to customize the email for each
>recipient. To manage an input email is possible inserting an handler, but I
>don't know how to do the same for an outgoing message.
You'll first have to expose your C function to Python. You can do this by
writing an extension module or by providing shell access to your function.
That's out of scope for this discussion.
Once you've made your function callable from Python, you'll want to implement
an IMailTransportAgentDelivery class that implements a deliver() method that
calls your C function. Then in your mailman.cfg, set the [mta]output variale
to point to your implementation of that interface.
Take a look at src/mailman/mta/deliver.py for how VERP delivery is done.
There may be opportunities to provide better extensibility of this basic
functionality without having to rewrite it all. Please provide feedback.
Cheers,
-Barry
Spamm Azz writes:
> I wrote a function in C language that customizes an email body.
> My target is to integrate this function inside mailman 3 to customize the
> email for each recipient.
> To manage an input email is possible inserting an handler, but I don't know
> how to do the same for an outgoing message.
Dunno off-hand (and my time has to be focused elsewhere for a couple
weeks) but you can find what you need by looking for code and comments
that mentions "personalization" or variations of that word.
"Personalization" is the term used in Mailman 2 for messages that have
different content for each recipient. I'm quite sure that it's used
in Mailman 3, too. :-)
Steve
I wrote a function in C language that customizes an email body.
My target is to integrate this function inside mailman 3 to customize the
email for each recipient.
To manage an input email is possible inserting an handler, but I don't know
how to do the same for an outgoing message.
Thanks in advance.