FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Maillist, strip > and quote
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Maillist, strip > and quote [message #29542] Fri, 30 December 2005 13:00 Go to next message
rush2112 is currently offline  rush2112   United States
Messages: 15
Registered: April 2005
Karma: 0
Junior Member
Something is just escaping me here. I'm importing a mailing list and wanted to place every line following '>' in a FUD quote.

The subject mangling works fine, but I can't seem to get the body mangling to do this. Each post that comes in show 'No Message Body'. I'm strongly suspect this is a problem with my syntax.

I've read every post (I think) on body mangling and quoting but just can't seem to get it to work and was hoping someone can help me with the proper syntax.

To help clarify, an example of what I'm trying to do is this:

ORIGINAL

I posted reply

Message posted by guy:
> someone please reply to this
> message

CHANGE TO

I posted reply

Message posted by guy:
Quote:

someone please reply to this
message


Currently using v2.7.3

Thanks,

Rush
http://www.bythedrop.com
Re: Maillist, strip > and quote [message #29548 is a reply to message #29542] Fri, 30 December 2005 15:26 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
What type of body mangling regex are you using?

FUDforum Core Developer
Re: Maillist, strip > and quote [message #29559 is a reply to message #29548] Fri, 30 December 2005 19:40 Go to previous messageGo to next message
rush2112 is currently offline  rush2112   United States
Messages: 15
Registered: April 2005
Karma: 0
Junior Member
I tried a couple examples in the forum because I'm regex ignorant. Confused I was trying 'does this do?' trial and error. Not the best way to go about things, but it works sometimes.

One of those was this:
"^(>\s*)+.*"
"s"
""

Though I did just see your post on prce @ php.net so, I'm going to head over there and try to get a little smarter about it.

Rush
http://www.bythedrop.com
Re: Maillist, strip > and quote [message #29568 is a reply to message #29559] Sat, 31 December 2005 04:39 Go to previous message
rush2112 is currently offline  rush2112   United States
Messages: 15
Registered: April 2005
Karma: 0
Junior Member
Did some reading and had some progress...This quotes text with '>' but doesn't remove the '>'

/(>\s*)+.* /s

[quote]$0[/quote]


I suppose the scary thing is I dont know exactly why it works Shocked
But pcre is interesting, on to more tinkering...

Rush
http://www.bythedrop.com

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PM emoticons
Next Topic: Forum Inside Table
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 15:53:36 GMT 2024

Total time taken to generate the page: 0.02425 seconds