Re: [Mailman-Users] Removing disclaimers/specific text in body

2013-09-03 Thread Adam McGreggor
On Mon, Sep 02, 2013 at 04:42:21PM +0100, Tim Walter wrote:
 Recently the NHS email service has in its wisdom decided to add a couple of 
 disclaimers to every message that passess through its service and I can't 
 seem to get a way of removing them and was hoping for some advice.  I'd 
 rather not use third party add-ons if possible.  I have no control over the 
 addition of the disclaimers.  I have little control over the behaviour of my 
 members re tendency to top post, not snip irrelevant posts etc.  I merge the 
 posts into a fudforum forum to act as a public archive, and sometime posting 
 source.

postmas...@nhs.uk may be willing to whitelist your (lists) domain, to exclude 
them
from the disclaimers c.

Have you asked, at all?

-- 
Well, you didn't design your beard too well, did you? You really
 must try better with your beard. 
-- DoE to a fashion designer
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Removing disclaimers/specific text in body

2013-09-03 Thread Tim Walter

On 3 Sep 2013, at 15:32, Stephen J. Turnbull step...@xemacs.org wrote:

 Tim Walter writes:
 
 I am using v2.1.9 (via webmin)
 
 Does that mean you have no access to add code to Mailman?
 
 It's not possible to configure this kind of thing via web interfaces,
 but if you can add fairly simple python script (which we can help you
 write) to the Mailman installation, it should be possible to strip
 these out.  You also have to change either the global configuration or
 individual list configurations in a way that requires shell access.
 

It is a dedicated server so I can theoretically get full access (though I do 
get rather nervous of destabilising things (I'm a doctor with an interest in IT 
rather than vice versa ?!?!?) )

I have managed to strip the disclaimers out from fudforum forum software which 
I use to archive and interface with the mailing list (it uses perl script to 
replace stuff) (You might argue with the sense of doing this with fudforum but 
it is what it is, and what users have requested!!!)

So the rough and ready perl I have found works there is

/\.*\n/s

/\*\*\*(.*)\*\*\*/s

/\-\-\-(.*)\-\-\-/s

/\-\-\ .*532/s

(these remove the un-necessary (for the forum) quoted email content, the two 
disclaimers, and the terminal mailing list sigblock respectively if it helps at 
all)

Many thanks for any help
Tim


--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Removing disclaimers/specific text in body

2013-09-03 Thread Mark Sapiro
On 09/03/2013 02:15 PM, Tim Walter wrote:
 
 It is a dedicated server so I can theoretically get full access (though I do 
 get rather nervous of destabilising things (I'm a doctor with an interest in 
 IT rather than vice versa ?!?!?) )


A Mailman custom handler, which I'm sure is the kind of thing Stephen
has in mind, can be implemented and then enabled for only a single test
list and only enabled globally or for some production lists after you
are confident that it works, so it shouldn't be destabilizing.

See the FAQ at http://wiki.list.org/x/l4A9.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org