Von Wallace zei:

> Hello,
>
> I am new to the PHP scene and have played with squirrelmail in the past a
> time or two, recently I got it up and running on IIS 5.0 / PHP 4.2.3 /
> Windows 2000, I noticed a small 1.3.2 version issue:
>
> When the header had a unsubscribed line of
> List-Unsubscribed:
> <http://www.mailermailer.com/x?u=9696847,$1$zW98r$bfRyJLbmCvvpffffVfPwwyevr0c%2e>,
>      <mailto:[EMAIL PROTECTED]>
>
> The comma inbetween the < > brackets throws off the mlist Parsing
> function, so with a small modification I got it working.
>
>
Good catch, thnx,

I will apply the fix to CVS.

Regards,

Marc Groot Koerkamp


> function mlist($field, $value) {
>         $res_a = array();
>
>         if (strpos($value, '>,')>0) {
>
>         $value_a = explode('>,', $value);
>         foreach ($value_a as $val) {
>             $val = trim($val);
>             if ($val{0} == '<') {
>
>             $val = substr($val, 1, strlen($val));
>
>             }
>
>
>             if (substr($val, 0, 7) == 'mailto:') {
>                 $res_a['mailto'] = substr($val, 7);
>             } else {
>                 $res_a['href'] = $val;
>             }
>             }
>         }else{
>
>         $value_a = explode(',', $value);
>         foreach ($value_a as $val) {
>             $val = trim($val);
>             if ($val{0} == '<') {
>
>             $val = substr($val, 1, -1);
>
>             }
>
>
>             if (substr($val, 0, 7) == 'mailto:') {
>                 $res_a['mailto'] = substr($val, 7);
>             } else {
>                 $res_a['href'] = $val;
>             }
>         }
>         }
>
>
>         $this->mlist[$field] = $res_a;
>     }
>
> Later,
>
> Von Wallace
> http://www.vonskie.net
>
>
>
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to