summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user-profiles/feeds/imm-notmuch-insert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/user-profiles/feeds/imm-notmuch-insert.py b/user-profiles/feeds/imm-notmuch-insert.py
index 855f3a83..80c96746 100644
--- a/user-profiles/feeds/imm-notmuch-insert.py
+++ b/user-profiles/feeds/imm-notmuch-insert.py
@@ -22,7 +22,7 @@ def main():
22 msg['Subject'] = callbackMessage['feed_item']['title'] 22 msg['Subject'] = callbackMessage['feed_item']['title']
23 msg['Message-ID'] = f"{callbackMessage['feed_item']['identifier']@imm.invalid}" 23 msg['Message-ID'] = f"{callbackMessage['feed_item']['identifier']@imm.invalid}"
24 for link in callbackMessage['feed_item']['links']: 24 for link in callbackMessage['feed_item']['links']:
25 msg.add_header('Link', link) 25 msg.add_header('Link', link['uri'])
26 if 'date' in callbackMessage['feed_item']: 26 if 'date' in callbackMessage['feed_item']:
27 date = isoparse(callbackMessage['feed_item']['date']) 27 date = isoparse(callbackMessage['feed_item']['date'])
28 msg['Date'] = date.strftime('%a, %e %b %Y %T %z') 28 msg['Date'] = date.strftime('%a, %e %b %Y %T %z')