From bf378f4350b0e92efcefd9c0c34f7b5c57c098f4 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 10 Apr 2023 16:44:13 +0200 Subject: remove sfeed "branding" in outputs Technically for sfeed_atom this violates the RFC standard. There must be an author in the feed or for an item. However sfeed is not the author, it is a generator. All readers will read these feeds anyway. https://www.rfc-editor.org/rfc/rfc4287#section-4.1.1 "atom:feed elements MUST contain one or more atom:author elements, unless all of the atom:feed element's child atom:entry elements contain at least one atom:author element." *shrug* --- sfeed_atom.c | 3 +-- sfeed_mbox.c | 2 +- sfeed_opml_export | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sfeed_atom.c b/sfeed_atom.c index cfaeb5b..aeea2de 100644 --- a/sfeed_atom.c +++ b/sfeed_atom.c @@ -132,8 +132,7 @@ main(int argc, char *argv[]) fputs("\n" "\n" - "\tNewsfeed\n" - "\tsfeed\n", stdout); + "\tNewsfeed\n", stdout); printf("\turn:newsfeed:%lld\n" "\t%04d-%02d-%02dT%02d:%02d:%02dZ\n", (long long)now, diff --git a/sfeed_mbox.c b/sfeed_mbox.c index 0cfd836..b5e7e3d 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -82,7 +82,7 @@ printfeed(FILE *fp, const char *feedname) printf("Date: %s\n", dtimebuf); /* invalid/missing: use current time */ } - printf("From: %s \n", fields[FieldAuthor][0] ? fields[FieldAuthor] : feedname); + 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%llu@%s>\n", diff --git a/sfeed_opml_export b/sfeed_opml_export index 3835934..7c96d5d 100755 --- a/sfeed_opml_export +++ b/sfeed_opml_export @@ -38,7 +38,7 @@ cat < - OPML export from sfeed + OPML export ! -- cgit v1.2.3