summaryrefslogtreecommitdiff
path: root/user-profiles/feeds/imm-notmuch-insert.py
diff options
context:
space:
mode:
Diffstat (limited to 'user-profiles/feeds/imm-notmuch-insert.py')
-rw-r--r--user-profiles/feeds/imm-notmuch-insert.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/user-profiles/feeds/imm-notmuch-insert.py b/user-profiles/feeds/imm-notmuch-insert.py
index ba29ce5b..bd22fc85 100644
--- a/user-profiles/feeds/imm-notmuch-insert.py
+++ b/user-profiles/feeds/imm-notmuch-insert.py
@@ -28,7 +28,9 @@ def main():
28 msg['Subject'] = callbackMessage['feed_item']['title'] 28 msg['Subject'] = callbackMessage['feed_item']['title']
29 msg['Item-Identifier'] = f"{callbackMessage['feed_item']['identifier']}" 29 msg['Item-Identifier'] = f"{callbackMessage['feed_item']['identifier']}"
30 for link in callbackMessage['feed_item']['links']: 30 for link in callbackMessage['feed_item']['links']:
31 msg.add_header('Link', link['uri']) 31 linkArgs={**link}
32 del linkArgs['uri']
33 msg.add_header('Link', link['uri'], **linkArgs)
32 date = None 34 date = None
33 if 'date' in callbackMessage['feed_item']: 35 if 'date' in callbackMessage['feed_item']:
34 date = isoparse(callbackMessage['feed_item']['date']) 36 date = isoparse(callbackMessage['feed_item']['date'])