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

Home » FUDforum » How To » Subject Mangling Confusion
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Subject Mangling Confusion [message #9066] Tue, 11 March 2003 16:14 Go to next message
jgbutler is currently offline  jgbutler   United States
Messages: 19
Registered: March 2003
Location: Northport, AL
Karma: 0
Junior Member
I'm trying to understand how the "Subject Mangling" works in the mailing list gateway.

What I want to do is, as is suggested in the control panel, remove a repeated element from the subject line. In this case, it's [Test6]. Obviously, I don't know what I'm doing, however, because I tried setting the "Replace mask" to [Test6] and setting nothing as "Replace with", but this had no effect.

Can anyone steer me in the right direction?

Thanks.

Jeremy
Re: Subject Mangling Confusion [message #9122 is a reply to message #9066] Thu, 13 March 2003 15:06 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
Replacment is done using regular expression (PCRE), so things like [] need to be escaped for it to work properly.

FUDforum Core Developer
Re: Subject Mangling Confusion [message #9153 is a reply to message #9122] Thu, 13 March 2003 18:15 Go to previous messageGo to next message
jgbutler is currently offline  jgbutler   United States
Messages: 19
Registered: March 2003
Location: Northport, AL
Karma: 0
Junior Member
So, do I use [ for left bracket and ] for right bracket?

Thanks for the guidance.
Re: Subject Mangling Confusion [message #9154 is a reply to message #9153] Thu, 13 March 2003 18:16 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
No, that's the htmlentity for [ and ] respectively, what you want is \[blah\]

FUDforum Core Developer
Re: Subject Mangling Confusion [message #9158 is a reply to message #9154] Thu, 13 March 2003 18:56 Go to previous messageGo to next message
jgbutler is currently offline  jgbutler   United States
Messages: 19
Registered: March 2003
Location: Northport, AL
Karma: 0
Junior Member
Durn. I'm still doing something wrong.

Here's how I set it up

Replace mask: \[Test6\]

Although I noticed that once I saved it it was converted into /\[Test6\] .

"Replace with:" is blank because I want [Test6] deleted. However, with this set-up, [Test6] is still getting through.

Any suggestions?

Thanks.


Re: Subject Mangling Confusion [message #9344 is a reply to message #9066] Mon, 24 March 2003 18:13 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There was a bug in that code that is now fixed in the CVS.

\[TEST\] regex will result in replacment of [TEST] string.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: vB import script did not work
Next Topic: How do I disable users?
Goto Forum:
  

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

Current Time: Sun Nov 10 10:48:44 GMT 2024

Total time taken to generate the page: 0.01972 seconds