Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
a70998f2
...
a70998f29751320aa5509562f83a1c0240b9ecb7
authored
2005-06-06 16:43:21 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(amd_envelope_date): Always convert date to ctime format.
1 parent
8a9e5510
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
mailbox/amd.c
mailbox/amd.c
View file @
a70998f
...
...
@@ -1418,13 +1418,14 @@ amd_envelope_date (envelope_t envelope, char *buf, size_t len,
if
((
status
=
message_get_header
(
msg
,
&
hdr
))
!=
0
)
return
status
;
if
(
header_aget_value
(
hdr
,
MU_HEADER_ENV_DATE
,
&
date
))
if
(
header_aget_value
(
hdr
,
MU_HEADER_ENV_DATE
,
&
date
)
&&
header_aget_value
(
hdr
,
MU_HEADER_DELIVERY_DATE
,
&
date
))
return
MU_ERR_NOENT
;
else
{
time_t
t
;
int
rc
;
if
(
header_aget_value
(
hdr
,
MU_HEADER_DELIVERY_DATE
,
&
date
))
return
MU_ERR_NOENT
;
/* Convert to ctime format */
rc
=
mu_parse_date
(
date
,
&
t
,
NULL
);
/* FIXME: TZ info is lost */
free
(
date
);
...
...
Please
register
or
sign in
to post a comment