Typo
[squirrelmail.git] / class / mime / Rfc822Header.class.php
index f0bd56d9253794b8050aa64b25edd9c7e2d076ff..eed274fdda4ee98b02243e8c31a03a80ab5e9d28 100644 (file)
@@ -30,7 +30,7 @@ class Rfc822Header {
      */
     var $date = -1;
     /**
-     * Date_original header
+     * Original date header as fallback for unparsable dates
      * @var mixed
      */
     var $date_unparsed = '';
@@ -648,15 +648,16 @@ class Rfc822Header {
      * X-MS-Mail-Priority is not parsed because it always coincides
      * with one of the other headers.
      *
-     * NOTE: this is actually a duplicate from the function in
-     * functions/imap_messages. I'm not sure if it's ok here to call
+     * NOTE: this is actually a duplicate from the code in
+     * functions/imap_messages:parseFetch().
+     * I'm not sure if it's ok here to call
      * that function?
      * @param string $sValue literal priority name
      * @return integer
      */
     function parsePriority($sValue) {
         // don't use function call inside array_shift.
-        $aValue = split('/\w/',trim($sValue));
+        $aValue = preg_split('/\s/',trim($sValue));
         $value = strtolower(array_shift($aValue));
 
         if ( is_numeric($value) ) {