Thomas Bruederli
2012-12-10 a8a72e2e7ee89caa04f8f13b6067e1b4ad870612
program/lib/Roundcube/rcube_message_header.php
@@ -235,6 +235,22 @@
            $this->others[$name] = $value;
        }
    }
    /**
     * Factory method to instantiate headers from a data array
     *
     * @param array Hash array with header values
     * @return object rcube_message_header instance filled with headers values
     */
    public static function from_array($arr)
    {
        $obj = new rcube_message_header;
        foreach ($arr as $k => $v)
            $obj->set($k, $v);
        return $obj;
    }
}