summaryrefslogtreecommitdiff
path: root/user-profiles/feeds
diff options
context:
space:
mode:
Diffstat (limited to 'user-profiles/feeds')
-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']: