summaryrefslogtreecommitdiff
path: root/sfeed_mbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_mbox.c')
-rw-r--r--sfeed_mbox.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/sfeed_mbox.c b/sfeed_mbox.c
index 4e203ef..880920d 100644
--- a/sfeed_mbox.c
+++ b/sfeed_mbox.c
@@ -60,12 +60,17 @@ printfeed(FILE *fp, const char *feedname)
fields[FieldContentType], feedname);
if (!strcmp(fields[FieldContentType], "html")) {
- printf("<p>Link: <a href=\"%s\">%s</a></p>\n\n",
- fields[FieldLink], fields[FieldLink]);
- printcontent(fields[FieldContent], stdout);
+ fputs("<p>Link: <a href=\"", stdout);
+ decodefield(fields[FieldLink], stdout, fputc);
+ fputs("\">", stdout);
+ decodefield(fields[FieldLink], stdout, fputc);
+ fputs("</a></p>\n\n", stdout);
+ decodefield(fields[FieldContent], stdout, fputc);
} else {
- printf("Link: %s\n\n", fields[FieldLink]);
- printcontent(fields[FieldContent], stdout);
+ fputs("Link: ", stdout);
+ decodefield(fields[FieldLink], stdout, fputc);
+ fputs("\n\n", stdout);
+ decodefield(fields[FieldContent], stdout, fputc);
}
fputs("\n\n", stdout);
}