summaryrefslogtreecommitdiff
path: root/user-profiles/feeds/imm-notmuch-insert.py
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-09-05 13:12:11 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-09-05 13:12:11 +0200
commitd6ff73a867173b7c4d4f0eeeb0adb3e648a55d5b (patch)
tree09428e7b8dd94bb4cd340b3eaf53a054cdf8d2a4 /user-profiles/feeds/imm-notmuch-insert.py
parent121f0f4ee93b44e6bf94e166c0fbd9448469ba3b (diff)
downloadnixos-d6ff73a867173b7c4d4f0eeeb0adb3e648a55d5b.tar
nixos-d6ff73a867173b7c4d4f0eeeb0adb3e648a55d5b.tar.gz
nixos-d6ff73a867173b7c4d4f0eeeb0adb3e648a55d5b.tar.bz2
nixos-d6ff73a867173b7c4d4f0eeeb0adb3e648a55d5b.tar.xz
nixos-d6ff73a867173b7c4d4f0eeeb0adb3e648a55d5b.zip
feeds: ...
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'])