jdd wrote:
>
>If somebody try to answer _from the list_, the "to" field of the 
>answer have _two_ values, one for the mailing list, the other for the 
>newsgroup. This second one is unusefull and thunderbird do not like it 
>and one have to remoive it by hand to send the answer.
>
>below the headers of a mail read on the mailing list and send from the 
>newsgroup.
>
>is there something I can do to remove the "Newsgroups: linux-31" in 
>excess?


You can do this a couple of ways in Mailman. The recommended way is a
custom handler (because it survives Mailman upgrades). See the FAQ at
<http://wiki.list.org/x/l4A9>.

The handler itself would be extremely simple, e.g. just the following
two lines.


def process(mlist, msg, msgdata):
    del msg['newsgroups']


This removes the header in the pipeline before the message is delivered
to the list.

Another possibility is to delete the header in Mailman's cron/gate_news
before the message is queued in Mailman. This would require adding the
line

                del msg['newsgroups']

just before the lines

                # Post the message to the locked list
                inq = get_switchboard(mm_cfg.INQUEUE_DIR)

in cron/gate_news. This change is simpler than implementing the custom
handler, but it requires re-applying the change following any Mailman
update.

-- 
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list [email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to