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
1862cbae
...
1862cbae7d64ceae8e28691a5d9faad192a4f566
authored
2003-03-18 23:18:09 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use mh_create_message_id().
1 parent
12754c27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
11 deletions
mh/send.c
mh/send.c
View file @
1862cba
...
...
@@ -317,17 +317,7 @@ open_mailer ()
static
void
create_message_id
(
header_t
hdr
)
{
char
date
[
4
+
2
+
2
+
2
+
2
+
2
+
1
];
time_t
t
=
time
(
NULL
);
struct
tm
*
tm
=
localtime
(
&
t
);
char
*
host
;
char
*
p
;
strftime
(
date
,
sizeof
date
,
"%Y%m%d%H%M%S"
,
tm
);
mu_get_host_name
(
&
host
);
asprintf
(
&
p
,
"<%s.%lu@%s>"
,
date
,
(
unsigned
long
)
getpid
(),
host
);
free
(
host
);
char
*
p
=
mh_create_message_id
(
0
);
header_set_value
(
hdr
,
MU_HEADER_MESSAGE_ID
,
p
,
1
);
free
(
p
);
}
...
...
Please
register
or
sign in
to post a comment