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
b6bef8d7
...
b6bef8d7420babdc452f6cbd9ce5327640a8981a
authored
2001-07-03 11:47:05 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Handle interrupts when fetching message body.
1 parent
7af90e80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
mail/print.c
mail/print.c
View file @
b6bef8d
...
...
@@ -81,6 +81,11 @@ mail_print (int argc, char **argv)
while
(
stream_read
(
stream
,
buffer
,
sizeof
(
buffer
)
-
1
,
off
,
&
n
)
==
0
&&
n
!=
0
)
{
if
(
ml_got_interrupt
())
{
util_error
(
"
\n
Interrupt"
);
break
;
}
buffer
[
n
]
=
'\0'
;
fprintf
(
out
,
"%s"
,
buffer
);
off
+=
n
;
...
...
@@ -89,7 +94,7 @@ mail_print (int argc, char **argv)
pclose
(
out
);
message_get_attribute
(
mesg
,
&
attr
);
attribute_set_
read
(
attr
);
attribute_set_
seen
(
attr
);
return
0
;
}
...
...
Please
register
or
sign in
to post a comment