From 01c7652f6942284d8d9dee61c0168e2cae6cb0ca Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 8 Aug 2015 12:53:29 +0200 Subject: sfeed_mbox: use feedname in message-id --- sfeed_mbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sfeed_mbox.c b/sfeed_mbox.c index 020416c..9c63d32 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -109,7 +109,7 @@ printfeed(FILE *fp, const char *feedname) "From: %s \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")) { -- cgit v1.2.3