Package: ilohamail
Version: 0.8.14-0rc3sid6
Severity: normal
Tags: patch

1. - If IlohaMail show Inbox with spam email with wrong header item "Date:", then IlohaMail write warning message:

Warning: mktime() expects parameter 6 to be long, string given in /usr/share/IlohaMail/include/pop3.inc on line 400

when I use POP3, or

Warning: mktime() expects parameter 6 to be long, string given in /usr/share/IlohaMail/include/imap.inc on line 425

when I use IMAP.


2. - If I click to email with wrong header item "Date:" and click to "Source", then IlohaMail write warning message:

Warning: mktime() expects parameter 6 to be long, string given in /usr/share/IlohaMail/include/pop3.inc on line 400

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/IlohaMail/include/pop3.inc:400) in /usr/share/IlohaMail/source/view.php on line 88

when I use POP3, or

Warning: mktime() expects parameter 6 to be long, string given in /usr/share/IlohaMail/include/imap.inc on line 425

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/IlohaMail/include/imap.inc:425) in /usr/share/IlohaMail/source/view.php on line 88

when I use IMAP.


3. - If I click to email with wrong header item "Date:" and click to "Show Header", then IlohaMail write warning message:

Warning: mktime() expects parameter 6 to be long, string given in /usr/share/IlohaMail/include/pop3.inc on line 400

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/IlohaMail/include/pop3.inc:400) in /usr/share/IlohaMail/source/view.php on line 92

when I use POP3, or

Warning: mktime() expects parameter 6 to be long, string given in /usr/share/IlohaMail/include/imap.inc on line 425

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/IlohaMail/include/imap.inc:425) in /usr/share/IlohaMail/source/view.php on line 92

when I use IMAP.


Example of wrong header item "Date" (date without Year):
Date: Wed, 30 Jul   Paris, Madrid (heure d'.t.)
This wrong date going with many spam emails.


I write simple patch (at the attachment) to correct all wrong header item "Date:", include these errors. Please use this command:
patch /usr/share/IlohaMail/include/pop3.inc patch_pop3.inc
to patch "pop3.inc" and
patch /usr/share/IlohaMail/include/imap.inc patch_imap.inc
to patch "imap.inc".



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)

Versions of packages ilohamail depends on:
ii  apache2-mpm-prefork [http 2.2.3-4+etch5  Traditional model for
Apache HTTPD
ii  debconf                   1.5.11etch2    Debian configuration
management sy
ii  libapache2-mod-php5       5.2.0-8+etch11 server-side, HTML-embedded
scripti
ii  php5                      5.2.0-8+etch11 server-side, HTML-embedded
scripti
ii  postfix [mail-transport-a 2.3.8-2+b1     A high-performance mail
transport
ii  wwwconfig-common          0.0.48         Debian web auto configuration

Versions of packages ilohamail recommends:
ii  aspell                    0.60.4-4       GNU Aspell spell-checker
ii  gnupg                     1.4.6-2        GNU privacy guard - a free
PGP rep
ii  mysql-client              5.0.32-7etch6  mysql database client (meta
packag
ii  mysql-client-5.0 [mysql-c 5.0.32-7etch6  mysql database client binaries
ii  php5-mysql                5.2.0-8+etch11 MySQL module for php5

-- debconf information:
* ilohamail/webserver_type: Apache2
  ilohamail/weblocation: /IlohaMail


400c400
<       return mktime($hour, $minute, $second, $month, $day, $year);
---
>       return mktime($hour, (int)$minute, (int)$second, $month, (int)$day, 
> (int)$year);
425c425
<       return mktime($hour, $minute, $second, $month, $day, $year);
---
>       return mktime($hour, (int)$minute, (int)$second, $month, (int)$day, 
> (int)$year);

Reply via email to