[Mailman-Developers] Inserting users names as signature of message
Mark Sapiro
mark at msapiro.net
Mon Apr 13 21:42:02 CEST 2009
Capt Bruce Gregory wrote:
>
>I need a way to append the full name box string of each user to the end of
>each message they post.
You could modify the process() function Mailman/Handlers/Decorate.py to
add the poster's name to the replacements. For example, near the
beginning of this function we have
d = {}
if msgdata.get('personalize'):
You could make that
d = {}
for sender in msg.get_senders():
if mlist.isMember(sender):
d['poster_name'] = mlist.getMemberName(sender)
break
if msgdata.get('personalize'):
Then you could use %(poster_name)s as a replacement in msg_footer.
This will work for messages, but the individual messages in digests
will still be "unsigned".
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Developers
mailing list