summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-08-08 12:53:29 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-08-08 12:53:29 +0200
commit01c7652f6942284d8d9dee61c0168e2cae6cb0ca (patch)
tree8d4a0794e19c5e7354f77a63f42b499b965b9c0b
parent7f11ef506465896705f15c39bd0416d96ca651a8 (diff)
sfeed_mbox: use feedname in message-id
-rw-r--r--sfeed_mbox.c3
1 files changed, 2 insertions, 1 deletions
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 <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")) {