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
2dc35270
...
2dc352702abbdf688c5bfaae8ac7f4c2155d2140
authored
2003-09-21 15:37:25 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use util_rfc2047_decode for printing headers.
1 parent
19d085a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
mail/print.c
mail/print.c
View file @
2dc3527
...
...
@@ -62,7 +62,8 @@ mail_print_msg (msgset_t *mspec, message_t mesg, void *data)
{
size_t
i
,
num
=
0
;
char
buf
[
512
];
char
*
tmp
;
message_get_header
(
mesg
,
&
hdr
);
header_get_field_count
(
hdr
,
&
num
);
...
...
@@ -72,8 +73,10 @@ mail_print_msg (msgset_t *mspec, message_t mesg, void *data)
if
(
mail_header_is_visible
(
buf
))
{
fprintf
(
out
,
"%s: "
,
buf
);
header_get_field_value
(
hdr
,
i
,
buf
,
sizeof
buf
,
NULL
);
fprintf
(
out
,
"%s
\n
"
,
buf
);
header_aget_field_value
(
hdr
,
i
,
&
tmp
);
util_rfc2047_decode
(
&
tmp
);
fprintf
(
out
,
"%s
\n
"
,
tmp
);
free
(
tmp
);
}
}
fprintf
(
out
,
"
\n
"
);
...
...
Please
register
or
sign in
to post a comment