Ignore list post if NO is given (RFC 2369 [3.4])
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 20 Feb 2009 18:31:06 +0000 (11:31 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 20 Feb 2009 18:31:25 +0000 (11:31 -0700)
imp/lib/UI/Message.php

index e0a1bb6..a8f8fca 100644 (file)
@@ -257,7 +257,8 @@ class IMP_UI_Message
 
             /* See if the List-Post header provides an e-mail address for the
              * list. */
-            if (($val = $headers->getValue('list-post'))) {
+            if (($val = $headers->getValue('list-post')) &&
+                ($val != 'NO')) {
                 $ret['reply_list'] = $this->parseListHeaders($val, true);
             }
         }