[imp] Solution - Compose Window does not close and Wrong dates in mailbox-sentmail view

Parag Godkar paragg@konark.ncst.ernet.in
Tue, 30 Jul 2002 14:09:49 +0530


This is a multi-part message in MIME format.

---------------------- multipart/alternative attachment
I am sending this to the IMP mailing list=20
so that someone might find it useful.

Initially I tested IMP3.1 on RHLinux 7.2 with the
following config -

Horde: 2.1
IMP: 3.1
Turba: 1.1
Apache-1.3.23-11
php-4.1.2-0horde1
Red Hat Linux 7.2

Then I tested it on RHLinux 7.3 -

Horde: 2.1
IMP: 3.1
Turba: 1.1
Apache-1.3.23-14
php-4.1.2-7
Red Hat Linux 7.3

In either case I had two problems -

1) Compose window would not close and
    showed a DNS error page although the
    message got sent.

Following were the log entries on my server -

1. Log entry in /tmp/horde.log -

Jul 24 19:18:30 HORDE [info] [imp] 202.141.151.173=20
Message sent to "Parag Godkar" <paragg@konark.ncst.ernet.in>
from paragg [on line 856 of "/var/www/html/horde/imp/compose.php"]

2. Log entry in /etc/httpd/logs/error.log

[Wed Jul 24 19:18:31 2002] [notice] child pid 10505=20
exit signal Segmentation fault (11)


2) The date of messages in mailbox folder
   and sentmail folder sometimes showed wrong
   dates.

SOLUTION -=20
----------------
Then Mr. Maiko suggested the following link as a=20
possible solution to verify a bug in php ... date('r') -

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=3D67385.

Accordingly I replaced every occurance of "date('r')" with
"strftime('%a, %e %b %Y %T %z')" in ..../horde/imp/compose.php.
This solves both my problems.

Hope many people would find this useful
as there were quite a few questions on these=20
problems in the mailing list archives but no proper solution.

Regards,
Parag Godkar.




---------------------- multipart/alternative attachment
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>I am sending this to the IMP mailing list </DIV>
<DIV>so that someone might find it useful.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>Initially I tested IMP3.1 on RHLinux 7.2 with the</DIV>
<DIV>following config -</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>Horde: 2.1<BR>IMP: 3.1<BR>Turba: 1.1<BR>Apache-1.3.23-11</DIV>
<DIV>php-4.1.2-0horde1<BR>Red Hat Linux 7.2<BR></DIV>
<DIV>Then I tested it on RHLinux 7.3 -</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>Horde: 2.1<BR>IMP: 3.1<BR>Turba: 1.1<BR>Apache-1.3.23-14</DIV>
<DIV>php-4.1.2-7<BR>Red Hat Linux 7.3</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>In either case I had two problems -</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>1) Compose window would not close and</DIV>
<DIV>&nbsp;&nbsp;&nbsp; showed a DNS error page although the</DIV>
<DIV>&nbsp;&nbsp;&nbsp; message got sent.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>Following were the log entries on my server -</DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><FONT=20
face=3DArial size=3D2></FONT><FONT face=3DArial size=3D2></FONT><FONT =
face=3DArial=20
size=3D2></FONT><FONT face=3DArial size=3D2></FONT><FONT face=3DArial=20
size=3D2></FONT><BR>1. Log entry in /tmp/horde.log -</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>Jul 24 19:18:30 HORDE [info] [imp] 202.141.151.173 </DIV>
<DIV>Message sent to "Parag Godkar" &lt;<A=20
href=3D"mailto:paragg@konark.ncst.ernet.in">paragg@konark.ncst.ernet.in</=
A>&gt;</DIV>
<DIV>from paragg [on line 856 of =
"/var/www/html/horde/imp/compose.php"]</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>
<DIV>2. Log entry in /etc/httpd/logs/error.log</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>[Wed Jul 24 19:18:31 2002] [notice] child pid 10505 </DIV>
<DIV>exit signal Segmentation fault (11)<BR></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>2) The date of messages in mailbox folder</DIV></DIV></DIV>
<DIV>&nbsp;&nbsp; and sentmail folder sometimes showed wrong</DIV>
<DIV>&nbsp;&nbsp; dates.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>SOLUTION - </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>----------------</FONT></DIV>
<DIV>Then Mr. Maiko suggested the following link as a </DIV>
<DIV>possible solution to verify a bug in php ... date('r') -</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><BR><A=20
href=3D"https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=3D67385">htt=
ps://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=3D67385</A>.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>Accordingly I replaced every occurance of "date('r')" with</DIV>
<DIV>"strftime('%a, %e %b %Y %T %z')" in =
..../horde/imp/compose.php.</DIV>
<DIV><FONT face=3DArial size=3D2>This solves both my =
problems.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hope many people would find this=20
useful</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>as there were quite a few questions on =
these=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>problems in the mailing list archives =
but no proper=20
solution.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Parag Godkar.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><FONT=20
face=3DArial size=3D2></FONT><BR><BR></DIV></BODY></HTML>

---------------------- multipart/alternative attachment--