PHP Classes

headerchange setting

Recommend this page to a friend!

      pop3ml  >  All threads  >  headerchange setting  >  (Un) Subscribe thread alerts  
Subject:headerchange setting
Summary:Subject header regexp not working
Messages:2
Author:Pablo Vera
Date:2013-05-26 16:14:05
Update:2013-05-26 23:06:40
 

 


  1. headerchange setting   Reply   Report abuse  
Picture of Pablo Vera Pablo Vera - 2013-05-26 16:14:05
Nice script, it works great, thanks.

I added to my headerchange setting the following:

Subject [__LISTNAME__] \1 {/(.*)/}

as per the example in INSTALL, but when a message sent to the list is distributed, the Subject is replaced by [listname] and the previous subject is discarded. The regexp substitution is not working.

Am I doing something wrong ?

Thanks.

  2. Re: headerchange setting   Reply   Report abuse  
Picture of Pablo Vera Pablo Vera - 2013-05-26 23:06:40 - In reply to message 1 from Pablo Vera
OK, after digging a little, I found a bug in file:

includes/class.pop3ml.php

line # 2035 said:

$header = & $decodedhaders["$hkey:"];
--------------------^^

but it should be:

$header = & $decodedheaders["$hkey:"];
--------------------^^^

there was an "e" missing in the variable: $decodedheaders


With this fix, the Subject header regexp works fine.