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
7b927240
...
7b927240533efd5b8464aacc3a361e44a9a250da
authored
2007-06-28 08:04:52 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mh_create_message_id): Rewrite using mu_rfc2822_msg_id
1 parent
8959a865
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
21 deletions
mh/mh_init.c
mh/mh_init.c
View file @
7b92724
...
...
@@ -848,28 +848,8 @@ mh_draft_name ()
char
*
mh_create_message_id
(
int
subpart
)
{
char
date
[
4
+
2
+
2
+
2
+
2
+
2
+
1
];
time_t
t
=
time
(
NULL
);
struct
tm
*
tm
=
localtime
(
&
t
);
char
*
host
;
char
*
p
;
mu_strftime
(
date
,
sizeof
date
,
"%Y%m%d%H%M%S"
,
tm
);
mu_get_host_name
(
&
host
);
if
(
subpart
)
{
struct
timeval
tv
;
gettimeofday
(
&
tv
,
NULL
);
asprintf
(
&
p
,
"<%s.%lu.%d@%s>"
,
date
,
(
unsigned
long
)
getpid
(),
subpart
,
host
);
}
else
asprintf
(
&
p
,
"<%s.%lu@%s>"
,
date
,
(
unsigned
long
)
getpid
(),
host
);
free
(
host
);
mu_rfc2822_msg_id
(
subpart
,
&
p
);
return
p
;
}
...
...
Please
register
or
sign in
to post a comment