projects
/
infodrom
/
newmail
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f37393f
)
Convert a header line according to RFC 2047 unless raw output is requested
author
Joey Schulze
<joey@infodrom.org>
Wed, 8 Feb 2006 08:55:46 +0000
(08:55 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 8 Feb 2006 08:55:46 +0000
(08:55 +0000)
output.c
patch
|
blob
|
history
diff --git
a/output.c
b/output.c
index
f9935ae
..
d829a2f
100644
(file)
--- a/
output.c
+++ b/
output.c
@@
-38,6
+38,7
@@
*/
#include <stdio.h>
+#include "rfc2047.h"
#include "optdefs.h"
#define MAIL_FROM "Mail from"
@@
-46,6
+47,11
@@
void emit(char *prefix, char *realname, char *subject, int priority, int opt_flags)
{
+ if (!(opt_flags & OPT_RAW)) {
+ realname = convert_header (realname);
+ subject = convert_header (subject);
+ }
+
if (opt_flags & OPT_WINDOW) {
if (prefix != NULL)
printf ("%s: ", prefix);