summaryrefslogtreecommitdiff
path: root/sfeed_mbox.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-04-27 12:53:12 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-04-27 12:58:47 +0200
commit2d92be6c592ea65c8e556944d747611bd9f7c2fc (patch)
tree710723cbb1cae47fa20a879932a91890113fdcfa /sfeed_mbox.c
parent660b5829b166af80696ac983fedc3a8257f1c9f8 (diff)
sfeed_mbox: fallback author to feedname, not "unknown"
For the author "unknown" is not a good indicator. Just fallback to the feedname if the exact author of the feed item is not known/set by the feed.
Diffstat (limited to 'sfeed_mbox.c')
-rw-r--r--sfeed_mbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_mbox.c b/sfeed_mbox.c
index b1224c6..e3a5a6f 100644
--- a/sfeed_mbox.c
+++ b/sfeed_mbox.c
@@ -47,7 +47,7 @@ printfeed(FILE *fp, const char *feedname)
/* mbox + mail header */
printf("From MAILER-DAEMON %s\n", mtimebuf);
printf("Date: %s\n", timebuf);
- printf("From: %s <sfeed@>\n", fields[FieldAuthor][0] ? fields[FieldAuthor] : "unknown");
+ printf("From: %s <sfeed@>\n", fields[FieldAuthor][0] ? fields[FieldAuthor] : feedname);
printf("To: %s <%s@%s>\n", user, user, host);
printf("Subject: %s\n", fields[FieldTitle]);
printf("Message-ID: <%s%s%lu@%s>\n",