diff options
Diffstat (limited to 'user-profiles/feeds')
-rw-r--r-- | user-profiles/feeds/imm-notmuch-insert.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/user-profiles/feeds/imm-notmuch-insert.py b/user-profiles/feeds/imm-notmuch-insert.py index b1965136..ba29ce5b 100644 --- a/user-profiles/feeds/imm-notmuch-insert.py +++ b/user-profiles/feeds/imm-notmuch-insert.py | |||
@@ -28,14 +28,7 @@ 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={} | 31 | msg.add_header('Link', link['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'] | ||
38 | msg.add_header('Link', link['uri'], **linkArgs) | ||
39 | date = None | 32 | date = None |
40 | if 'date' in callbackMessage['feed_item']: | 33 | if 'date' in callbackMessage['feed_item']: |
41 | date = isoparse(callbackMessage['feed_item']['date']) | 34 | date = isoparse(callbackMessage['feed_item']['date']) |