diff options
author | June McEnroe <june@causal.agency> | 2020-05-01 13:09:15 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-05-01 13:09:15 -0400 |
commit | 2496f0aefe4fec0169c74f27b9748f9c5e6eac86 (patch) | |
tree | 5c651dbc6287d872432ee4400f01edf5d1645e02 /atom.c | |
parent | Fix UIDNEXT removal documentation (diff) | |
download | bubger-2496f0aefe4fec0169c74f27b9748f9c5e6eac86.tar.gz bubger-2496f0aefe4fec0169c74f27b9748f9c5e6eac86.zip |
Add generator links
Diffstat (limited to '')
-rw-r--r-- | atom.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/atom.c b/atom.c index 5b34867..7bc4fe9 100644 --- a/atom.c +++ b/atom.c @@ -119,6 +119,7 @@ int atomThreadOpen(FILE *file, const struct Envelope *envelope) { const char *template = TEMPLATE( <[q]xml version="1.0" encoding="utf-8"[q]> <feed xmlns="http://www.w3.org/2005/Atom"> + <generator uri="[generator]">bubger</generator> <id>[id]</id> <title>[title]</title> <updated>[updated]</updated> @@ -132,6 +133,7 @@ int atomThreadOpen(FILE *file, const struct Envelope *envelope) { char *mbox = atomThreadURL(envelope, "mbox"); struct Variable vars[] = { { "q", "?" }, + { "generator", GENERATOR_URL }, { "id", id }, { "title", envelope->subject }, { "updated", atomUpdated(time(NULL)) }, @@ -159,6 +161,7 @@ int atomIndexOpen(FILE *file) { const char *template = TEMPLATE( <[q]xml version="1.0" encoding="utf-8"[q]> <feed xmlns="http://www.w3.org/2005/Atom"> + <generator uri="[generator]">bubger</generator> <id>mailto:[mailto]</id> <title>[title]</title> <updated>[updated]</updated> @@ -167,6 +170,7 @@ int atomIndexOpen(FILE *file) { ); struct Variable vars[] = { { "q", "?" }, + { "generator", GENERATOR_URL }, { "mailto", baseMailto }, { "title", baseTitle }, { "updated", atomUpdated(time(NULL)) }, |