djh <[EMAIL PROTECTED]> wrote:

> From: "djh" <[EMAIL PROTECTED]>
> Date: Fri, 12 May 2006 14:19:41

The Date value is not RFC-2822 compliant, it is missing time zone field.

djh <[EMAIL PROTECTED]> wrote:

> I tested this with GNU MH's comp program and no +9:00 is added to the
> date, which is what I need in my location.

Comp has nothing to do with that, 'Date' field is added by send.

 
> Do any of you know how to add this timezone information that will work
> globally?

Here is a snippet of code from send.c, which is responsible for
generating the header:

      char date[80];
      time_t t = time (NULL);
      struct tm *tm = localtime (&t);

      mu_strftime (date, sizeof date, "%a, %d %b %Y %H:%M:%S %Z", tm);
      mu_header_set_value (hdr, MU_HEADER_DATE, date, 1);

So, there are three possibilities:

1. Struct tm does not carry any information about time zone. 
 
2. The localtime call malfunctions and does not set time zone
information in struct tm.

3. The strftime call does not support %Z. 

Regards,
Sergey



_______________________________________________
Bug-mailutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Reply via email to