sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 2d92be6c592ea65c8e556944d747611bd9f7c2fc
parent 660b5829b166af80696ac983fedc3a8257f1c9f8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 27 Apr 2020 12:53:12 +0200

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:
Msfeed_mbox.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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",