From 2d92be6c592ea65c8e556944d747611bd9f7c2fc Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 27 Apr 2020 12:53:12 +0200 Subject: 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. --- sfeed_mbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \n", fields[FieldAuthor][0] ? fields[FieldAuthor] : "unknown"); + printf("From: %s \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", -- cgit v1.2.3