Re: [Mailman-Users] Umbrella Lists & Subject Prefixes

2007-09-21 Thread Mike Peachey
Mark Sapiro wrote: > Mike Peachey wrote: >> I'm using this anyway :-) >> >> if msg.has_key('x-no-subject-prefix') and msg.get('x-no-subject-prefix', >> '').lower() == 'yes': > > > You don't need to test separately for the presence of the header. > That's what the second argument to msg.get() is

Re: [Mailman-Users] Umbrella Lists & Subject Prefixes

2007-09-21 Thread Mark Sapiro
Mike Peachey wrote: > >I'm using this anyway :-) > >if msg.has_key('x-no-subject-prefix') and msg.get('x-no-subject-prefix', >'').lower() == 'yes': You don't need to test separately for the presence of the header. That's what the second argument to msg.get() is for. It is returned when the heade

Re: [Mailman-Users] Umbrella Lists & Subject Prefixes

2007-09-21 Thread Mike Peachey
Mark Sapiro wrote: > Mike Peachey wrote: > >> Mark Sapiro wrote: >>> and add two lines after the comment so it becomes >>> >>> def prefix_subject(mlist, msg, msgdata): >>> # Add the subject prefix unless the message is a digest or is being >>> fast >>> # tracked (e.g. internally crafted, d

Re: [Mailman-Users] Umbrella Lists & Subject Prefixes

2007-09-21 Thread Mark Sapiro
Mike Peachey wrote: >Mark Sapiro wrote: >> >> and add two lines after the comment so it becomes >> >> def prefix_subject(mlist, msg, msgdata): >> # Add the subject prefix unless the message is a digest or is being >> fast >> # tracked (e.g. internally crafted, delivered to a single user

Re: [Mailman-Users] Umbrella Lists & Subject Prefixes

2007-09-21 Thread Mike Peachey
Mark Sapiro wrote: > Find the lines (watch for wrapping) > > def prefix_subject(mlist, msg, msgdata): > # Add the subject prefix unless the message is a digest or is being > fast > # tracked (e.g. internally crafted, delivered to a single user such > as the > # list admin). > prefi

Re: [Mailman-Users] Umbrella Lists & Subject Prefixes

2007-09-20 Thread Mark Sapiro
Mike Peachey wrote: > >I have managed to stop all sub-lists from re-archiving mails that have >been through higher lists by adding an X-No-Archive to mails as soon as >they're archived so that they only get archived once. > >However, Subject Prefixes are giving me a little more hassle. > >Current

[Mailman-Users] Umbrella Lists & Subject Prefixes

2007-09-20 Thread Mike Peachey
Mailman Ver: 2.1.5 Our company now exclusively uses Mailman for it's departmental mailing lists and it's done through umbrella lists set up in the same way as the org chart for the company. I have managed to stop all sub-lists from re-archiving mails that have been through higher lists by add