On 05/07/2015 01:59 PM, Barry Warsaw wrote: > On May 07, 2015, at 10:51 PM, Juraj Variny wrote: > >> I have tried already to use msgdata parameter or adding headers to message >> itself, but was not successful so far. I was thinking about adding external >> database and putting the data there by message ID, but sure there must be a >> better way? I hope to publish the code some day, too. > > Can you give some details on what didn't work about using the msgdata > parameter? This always flows with the message through the pipeline and is > preserved in the pickle files as the message moves from runner to runner. > It's the way handlers are supposed to record information on the message as its > being processed.
See my reply in this thread. I think I understand. > This is even more important in Mailman 3 where we've split the pipeline into > rules and handlers. Rules are run to determine moderation behavior and rules > are never supposed to modify the message. They communicate state to > (possible) later handlers via the msgdata dictionary. In MM 3 one can have a rule which checks and verifies signatures and stores results in the msgdata. Than a handler can use that data to add a message header both for recipient info and to inform other bits that might run after there's no longer any msgdata dictionary traveling with the message. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan _______________________________________________ Mailman-Developers mailing list Mailman-Developers@python.org https://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9