/[mailutils]/mailutils/imap4d/fetch.c
ViewVC logotype

Diff of /mailutils/imap4d/fetch.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37 by gray, Thu Sep 12 11:04:54 2002 UTC revision 1.38 by gray, Sat Nov 30 13:38:59 2002 UTC
# Line 341  fetch_flags (struct fetch_command *comma Line 341  fetch_flags (struct fetch_command *comma
341  static int  static int
342  fetch_internaldate (struct fetch_command *command, char **arg)  fetch_internaldate (struct fetch_command *command, char **arg)
343  {  {
344    char date[128];    char date[128], *p;
345    envelope_t env = NULL;    envelope_t env = NULL;
346    struct tm *tptr;    struct tm tm;
347    time_t env_time;    mu_timezone tz;
348    
349    (void)arg; /* No arguments.  */    (void)arg; /* No arguments.  */
350    message_get_envelope (command->msg, &env);    message_get_envelope (command->msg, &env);
351    date[0] = '\0';    date[0] = '\0';
352    envelope_date (env, date, sizeof (date), NULL);    envelope_date (env, date, sizeof (date), NULL);
353    util_parse_ctime_date (date, &env_time);    p = date;
354    tptr = gmtime(&env_time);    mu_parse_ctime_date_time (&p, &tm, &tz);
355    strftime (date, sizeof (date), "%d-%b-%Y %X", tptr);    strftime (date, sizeof (date), "%d-%b-%Y %X", &tm);
356    util_send ("%s", command->name);    util_send ("%s", command->name);
357    util_send (" \"%s +0000\"", date);    util_send (" \"%s +0000\"", date);
358    return RESP_OK;    return RESP_OK;

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26