summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-07-09 17:41:02 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-07-09 17:41:02 +0000
commitc8bb4b9413f72f2e9c5f81b5f1674c9341ed369f (patch)
tree74770120ab2da93e9432f04d90eab006c8bd534d /mail
parent00668ac3d890df067217835b0ebb127b60902099 (diff)
downloadmailutils-c8bb4b9413f72f2e9c5f81b5f1674c9341ed369f.tar.gz
mailutils-c8bb4b9413f72f2e9c5f81b5f1674c9341ed369f.tar.bz2
Rewrite using new envelope accessors
Diffstat (limited to 'mail')
-rw-r--r--mail/from.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mail/from.c b/mail/from.c
index 9133845ce..de3928cf8 100644
--- a/mail/from.c
+++ b/mail/from.c
@@ -121,9 +121,8 @@ mail_from0 (msgset_t *mspec, mu_message_t msg, void *data)
mu_timezone tz;
mu_message_get_envelope (msg, &env);
- mu_envelope_date (env, date, sizeof (date), NULL);
- p = date;
- if (mu_parse_ctime_date_time (&p, &tm, &tz) == 0)
+ if (mu_envelope_sget_date (env, &p) == 0
+ && mu_parse_ctime_date_time (&p, &tm, &tz) == 0)
strftime (date, sizeof(date), "%a %b %e %H:%M", &tm);
}

Return to:

Send suggestions and report system problems to the System administrator.