[imp] Mail with no subject not accessable

Joakim Backlund jba at du.se
Mon Oct 14 11:55:35 PDT 2002


I've solved it myself.

I just added the following lines to horde/imp/mailbox.php line 462 ($Horde:
imp/mailbox.php,v 2.427) so it would look like this:

    if (isset($h->subject)) {
        $msg['subject'] = MIME::decode($h->subject);
        if (strlen($msg['subject']) < 1) {                      //Added this line
                $msg['subject'] = '[' . _("No Subject") . ']';  //Added this line
        }                                                       //Added this line
    }

Feel free to use it if you want but be warned, I haven't tested it thoroughly.

Regards / Joakim Backlund


More information about the imp mailing list