about summary refs log tree commit diff
path: root/atom.c
diff options
context:
space:
mode:
Diffstat (limited to 'atom.c')
-rw-r--r--atom.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/atom.c b/atom.c
index 1c4d0de..405bf39 100644
--- a/atom.c
+++ b/atom.c
@@ -51,10 +51,11 @@ static int atomAuthor(FILE *file, struct Address addr) {
 
 static char *atomEntryURL(const struct Envelope *envelope) {
 	struct Variable vars[] = {
-		{ "name", pathSafe(envelope->messageID) },
+		{ "messageID", envelope->messageID },
+		{ "type", "mbox" },
 		{0},
 	};
-	return templateURL("/message/[name].mbox", vars);
+	return templateURL("/" PATH_MESSAGE, vars);
 }
 
 int atomEntryOpen(FILE *file, const struct Envelope *envelope) {
@@ -102,11 +103,11 @@ int atomEntryClose(FILE *file) {
 
 static char *atomFeedURL(const struct Envelope *envelope, const char *type) {
 	struct Variable vars[] = {
-		{ "name", pathSafe(envelope->messageID) },
+		{ "messageID", envelope->messageID },
 		{ "type", type },
 		{0},
 	};
-	return templateURL("/thread/[name].[type]", vars);
+	return templateURL("/" PATH_THREAD, vars);
 }
 
 int atomFeedOpen(FILE *file, const struct Envelope *envelope) {