Does anyone know of a way to automatically remove the quoted message that shows in a users reply at the bottom of the reply?
Any help would be appreciated.
Does anyone know of a way to automatically remove the quoted message that shows in a users reply at the bottom of the reply?
Any help would be appreciated.
Comments
Comment #1
samuelet commentedDo you mean remove itfrom messagges imported in the forum?
To get this goal i use http://drupal.org/project/customfilter.
After installing it, you have to create a custom content filter with a regular expression that matches and delete the mail forward pattern (or any other pattern you want).
Then set that filter as default input format in the mailhandler mailbox setting,
Comment #2
rmyoung commentedI would like to do this also. I have tried using the custom filter but mind is being blown by the regex stuff.
The quoted messages appears in the forum on my site as
Should I be using a regex to identify the
>at the start of the lines or use the starting and ending bits of the quote and delete anything in between.Any chance of sharing your custom filter settings for this with us samuelet or anyone else?
Comment #3
samuelet commentedI don't delete the whole quoting but I prefer to leave the quoting header with this regex
pattern:
/(\>\s{0,3}.*\n\>\s{0,3}.*\n)+/
replace:
> ....
This helps to follow the reply workflow in a flat list forum.
The regex was on-the-fly made and looking at it now it seems not perfect ,but it works.
I also delete mailman signature with a regex like this (not tested for your case):
pattern:
/\_{20,}.*(\n.*\n.*\n.*\/OpenVPMs|(\n|.).*\<(a|A).*\/(a|A)\>)/
replace:
(empty)
This regex should be applied with more weight than previous.
I've others regex but they are modelled after italian language so they could not work correctly for you.
Pay attention that custom filter caches its filter and you could need to reapply it also from "Input format" page.
Hope it could help to create your own.
Comment #4
awry commentedCustomfilter is discontinued and has no d6 port. I'm trying to figure out a way to strip out comments with flexifilter, but am having a hell of a time. If anyone has figured out how to wrangle flexifilter, let me know!
Comment #5
philipnet commented@samuelet:
For each mailbox, you can set the Signature identifier in Mailhandler.
Go to Content management -> Mailhandler -> <Mailbox> -> Signature separator:
Comment #6
cor3huis commentedComment #7
cor3huis commentedComment #8
cor3huis commentedThe task to perform consists of:
Comment #9
cor3huis commentedChanged the priority since it is clear a lot of users actually want such a possibility
Comment #10
cor3huis commentedSince subdian on April 28, 2009 at 12:20pm nicely coded something and added it to the duplicate issue #446328: Strip quoted emails in replies we'll add it here. It may not really the flexible solution we are looking for, however for it may come in handy to determine a solution.