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
0e2610e1
...
0e2610e1c2ede67d99d133e1e1793558478bf691
authored
2002-05-09 02:10:24 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Moved message copy code into message_create_copy().
1 parent
3f41b2c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
14 deletions
mailbox/mbx_imap.c
mailbox/mbx_imap.c
View file @
0e2610e
...
...
@@ -926,23 +926,10 @@ imap_append_message (mailbox_t mailbox, message_t msg)
/* copy the message to local disk by createing a floating message. */
{
stream_t
stream
=
NULL
;
stream_t
tstream
=
NULL
;
message_t
message
=
NULL
;
off_t
off
=
0
;
size_t
n
=
0
;
char
buf
[
128
];
message_create
(
&
message
,
NULL
);
message_get_stream
(
msg
,
&
stream
);
message_get_stream
(
message
,
&
tstream
);
status
=
message_create_copy
(
&
message
,
msg
);
while
((
status
=
stream_readline
(
stream
,
buf
,
sizeof
buf
,
off
,
&
n
))
==
0
&&
n
>
0
)
{
stream_write
(
tstream
,
buf
,
n
,
off
,
NULL
);
off
+=
n
;
}
if
(
status
==
0
)
status
=
imap_append_message0
(
mailbox
,
message
);
message_destroy
(
&
message
,
NULL
);
...
...
Please
register
or
sign in
to post a comment