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
d618cfc9
...
d618cfc92d0abc1ecb85172419c1360db41597e7
authored
2002-11-30 13:38:59 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(fetch_internaldate): Use mu_parse_ctime_date_time.
1 parent
d97007c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
imap4d/fetch.c
imap4d/fetch.c
View file @
d618cfc
...
...
@@ -341,18 +341,18 @@ fetch_flags (struct fetch_command *command, char **arg)
static
int
fetch_internaldate
(
struct
fetch_command
*
command
,
char
**
arg
)
{
char
date
[
128
];
char
date
[
128
]
,
*
p
;
envelope_t
env
=
NULL
;
struct
tm
*
tptr
;
time_t
env_time
;
struct
tm
tm
;
mu_timezone
tz
;
(
void
)
arg
;
/* No arguments. */
message_get_envelope
(
command
->
msg
,
&
env
);
date
[
0
]
=
'\0'
;
envelope_date
(
env
,
date
,
sizeof
(
date
),
NULL
);
util_parse_ctime_date
(
date
,
&
env_time
)
;
tptr
=
gmtime
(
&
env_time
);
strftime
(
date
,
sizeof
(
date
),
"%d-%b-%Y %X"
,
tptr
);
p
=
date
;
mu_parse_ctime_date_time
(
&
p
,
&
tm
,
&
tz
);
strftime
(
date
,
sizeof
(
date
),
"%d-%b-%Y %X"
,
&
tm
);
util_send
(
"%s"
,
command
->
name
);
util_send
(
"
\"
%s +0000
\"
"
,
date
);
return
RESP_OK
;
...
...
Please
register
or
sign in
to post a comment