>>>>> "Jan" == Jan Rychter writes: Jan> The following patch adds another option to posting styles, which Jan> allows one to add custom functions to mesage-setup-hook. The Jan> existing 'eval' functionality was not enough, because some Jan> functions expect the other headers (and mail-header-separator) to Jan> already be there when they get called, Jan> mml-secure-message-sign-pgpmime is an example. Jan> Thanks to this I can now define Jan> (setq gnus-posting-styles '((".*icm\\.misc" (call Jan> mml-secure-message-sign-pgpmime)))) Jan> ... and have all messages in the groups maching the regexp Jan> automatically signed. [time passes] Well, that won't really work. It works for new messages, but doesn't work for replies. The reason is that posting styles get applied very early in the process, so after mml-secure-message-sign-pgpmime inserts <\#secure method=pgpmime mode=sign>, supercite happily inserts the cited text and cites the mml marker as well. What I'm trying to do is somewhat similar to what gnus-summary-handle-replysign does. But I noticed that gnus-summary-reply cheats and runs gnus-summary-handle-replysign at the very end, after everything else is done. There is no way I can do this with posting styles, right? Hmm. Or can we call gnus-configure-posting-styles after the message has been set up? What would be a good solution here? --J.