sfeed

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

commit 01c7652f6942284d8d9dee61c0168e2cae6cb0ca
parent 7f11ef506465896705f15c39bd0416d96ca651a8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat,  8 Aug 2015 12:53:29 +0200

sfeed_mbox: use feedname in message-id

Diffstat:
Msfeed_mbox.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sfeed_mbox.c b/sfeed_mbox.c @@ -109,7 +109,7 @@ printfeed(FILE *fp, const char *feedname) "From: %s <sfeed@>\n" "To: %s <%s@%s>\n" "Subject: %s\n" - "Message-ID: <%s%s%"PRIu32"@sfeed>\n" + "Message-ID: <%s%s%"PRIu32"@%s>\n" "Content-Type: text/%s; charset=UTF-8\n" "Content-Transfer-Encoding: binary\n" "X-Feedname: %s\n" @@ -120,6 +120,7 @@ printfeed(FILE *fp, const char *feedname) fields[FieldUnixTimestamp], fields[FieldUnixTimestamp][0] ? "." : "", jenkins1(fields[FieldTitle]), + feedname[0] ? feedname : "unnamed", fields[FieldContentType], feedname); if (!strcmp(fields[FieldContentType], "html")) {