summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-09-05 13:19:03 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-09-05 13:19:03 +0200
commit46ae07413e9ba21ebe297db9f6301f9623a8041a (patch)
tree617104b61feed06451664bcb8239c1b17957f972 /user-profiles
parentd6ff73a867173b7c4d4f0eeeb0adb3e648a55d5b (diff)
downloadnixos-46ae07413e9ba21ebe297db9f6301f9623a8041a.tar
nixos-46ae07413e9ba21ebe297db9f6301f9623a8041a.tar.gz
nixos-46ae07413e9ba21ebe297db9f6301f9623a8041a.tar.bz2
nixos-46ae07413e9ba21ebe297db9f6301f9623a8041a.tar.xz
nixos-46ae07413e9ba21ebe297db9f6301f9623a8041a.zip
feeds: ...
Diffstat (limited to 'user-profiles')
-rw-r--r--user-profiles/feeds/imm-notmuch-insert.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/user-profiles/feeds/imm-notmuch-insert.py b/user-profiles/feeds/imm-notmuch-insert.py
index bd22fc85..b1965136 100644
--- a/user-profiles/feeds/imm-notmuch-insert.py
+++ b/user-profiles/feeds/imm-notmuch-insert.py
@@ -28,8 +28,13 @@ 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 linkArgs={**link} 31 linkArgs={}
32 del linkArgs['uri'] 32 if 'relation' in link:
33 linkArgs['relation'] = link['relation']
34 if 'type' in link:
35 linkArgs['type'] = link['type']
36 if 'title' in link and link['title']:
37 linkArgs['title'] = link['title']
33 msg.add_header('Link', link['uri'], **linkArgs) 38 msg.add_header('Link', link['uri'], **linkArgs)
34 date = None 39 date = None
35 if 'date' in callbackMessage['feed_item']: 40 if 'date' in callbackMessage['feed_item']: