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
f0264023
...
f0264023cebb4196a6df797bdc81eba09e4f9c30
authored
2003-02-21 13:01:55 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mh_stream_to_message): Use MH draft streams.
1 parent
ef038144
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
mh/mh_init.c
mh/mh_init.c
View file @
f026402
...
...
@@ -544,7 +544,7 @@ mh_file_copy (const char *from, const char *to)
return
rc
;
}
static
int
int
_mh_delim
(
char
*
str
)
{
if
(
str
[
0
]
==
'-'
)
...
...
@@ -679,12 +679,30 @@ mh_stream_to_message (stream_t instream)
struct
msg_envelope
*
mp
;
envelope_t
env
;
message_t
msg
;
stream_t
draftstream
;
int
rc
;
if
((
rc
=
mhdraft_stream_create
(
&
draftstream
,
instream
,
0
)))
{
mh_error
(
_
(
"cannot create draft message stream: %s"
),
mu_strerror
(
rc
));
return
NULL
;
}
if
((
rc
=
stream_open
(
draftstream
)))
{
mh_error
(
_
(
"cannot open draft message stream: %s"
),
mu_strerror
(
rc
));
stream_destroy
(
&
draftstream
,
stream_get_owner
(
draftstream
));
return
NULL
;
}
restore_envelope
(
instream
,
&
mp
);
if
(
message_create
(
&
msg
,
mp
))
return
NULL
;
message_set_stream
(
msg
,
in
stream
,
mp
);
message_set_stream
(
msg
,
draft
stream
,
mp
);
if
(
envelope_create
(
&
env
,
msg
))
return
NULL
;
...
...
Please
register
or
sign in
to post a comment