6.0.0-beta1
9/24/25

[#494] Wrong from date format
Summary Wrong from date format
Queue Horde Framework Packages
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester werner (at) thefast (dot) be
Created 08/18/2004 (7707 days ago)
Due
Updated 10/01/2004 (7663 days ago)
Assigned 08/18/2004 (7707 days ago)
Resolved 08/18/2004 (7707 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/01/2004 09:36:27 AM arto (at) bendiken (dot) net Comment #8 Reply to this comment
My guess exactly. However, since the Horde user interface language 
selection directly influences whether this problem occurs or not (for 
the English language, it won't; for other languages, it will) I would 
argue that Horde is guilty by association and should try to provide a 
workaround.



As said, this problem involves a commonly used set of software (Horde 
+ Exim etc) and is probably fairly easy to reproduce. Therefore it's 
likely that it affects a not-insignifant number of Horde users that 
may not even be aware of why their mails are disappearing.



Suggestion: I'm not too familiar with locale-related stuff on Unix 
systems, but perhaps Horde could make sure the sendmail process will 
run under en_US instead of whatever locale the user happened to select?
10/01/2004 03:38:20 AM Chuck Hagenbuch Comment #7 Reply to this comment
Nothing in PHP code, either Horde or PEAR, generates that From line. 
And PHP itself is uninvolved since PEAR's Mail library opens a pipe to 
the sendmail binary. That leaves sendmail/exim/whatever incorrectly 
using locale settings to format a date that it shouldn't make 
locale-specific. Certainly not part of Horde.
09/30/2004 07:56:28 PM arto (at) bendiken (dot) net Comment #6 Reply to this comment
I had this exact same issue on our mail server, and can confirm that 
it's quite real and, potentially, disastrous.



I'm using Horde 2.2.5 and IMP 3.2.2 in conjunction with Exim 4.42 and 
PHP 4.3.8.



Basically the problem is that if a user logs onto IMP choosing a UI 
language other than English, mails he sends to other users on the 
local server will be written to their mbox files using the wrong date 
format in the first "From" line that starts the message, as reported 
by the previous poster.



This means that the message will be silently ignored by mail programs, 
including Horde, that read the mbox file. (Even worse, at least in my 
case there was no actual message content written to the mbox file at 
all, only the first badly-formatted, orphaned "From" line. This is bad!)



I tried to track down the bug but eventually had to give up due to 
time constraints. I've a strong suspicion, though, that it's 
locale-related.



(Note that this bug is not necessarily due to Horde. If it's 
locale-related, there could be other factors involved, such as the 
PEAR libraries, PHP itself and certainly the Exim server.)



I imagine the bug would be easy to reproduce in the right environment, 
i.e. if the mail server uses mboxes instead of maildirs, one would 
just need to login to Horde using say, German, and try to send an 
e-mail to another local user.



WORKAROUND: This issue only happens when the setting 
$conf['mailer']['type'] in config/horde.php is set as 'sendmail'. 
Changing the setting to 'smtp', and adding a parameter specifying 
'localhost' as the server to use, should solve this issue for most 
people. (Just follow the comments in config/horde.php.)
08/18/2004 04:54:02 PM werner (at) thefast (dot) be Comment #5 Reply to this comment
I'm talking about the Horde webmail program, when you send a e-mail 
with the dutch language selected, the from header date is wrong, i 
don't now which part that bug is in, i'm not a developer of Horde or 
related modules.



Kind regards,

Werner.
08/18/2004 02:30:06 PM Jan Schneider Comment #4
State ⇒ Not A Bug
Reply to this comment
Please find out what you are talking about, i.e. the application name 
and version, and try adding a useful bug report.
08/18/2004 02:14:41 PM werner (at) thefast (dot) be Comment #3 Reply to this comment
I mean the From headers, i didn't now where to post it so i choosed 
horde framework.



Kind regards,

Werner.
08/18/2004 01:54:30 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
No idea what you're talking about. Do you mean email Date: or From: 
headers? And how does this ticket belong to the Framework?
08/18/2004 01:37:11 PM werner (at) thefast (dot) be Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Wrong from date format
Queue ⇒ Horde Framework Packages
Reply to this comment
Hi,



When I send a message using dutch (Nederlands) translation, I get a 
wrong from date format :



From test2@testdomein.be vr aug 13 20:00:20 2004



That message doesn't appear in Horde



When I send the message in the default english language there is no 
problem and the header is like this :



From test2@testdomein.be Fri Aug 13 19:58:58 2004



This message does appear.



Is there anything I can do about it.



Kind regards,

Werner.

Saved Queries