From 022194be05655ad3938166f9d8683f6648698daf Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 5 Sep 2021 13:24:03 +0200 Subject: feeds: ... --- user-profiles/feeds/imm-notmuch-insert.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'user-profiles/feeds') 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(): msg['Subject'] = callbackMessage['feed_item']['title'] msg['Item-Identifier'] = f"{callbackMessage['feed_item']['identifier']}" for link in callbackMessage['feed_item']['links']: - linkArgs={} - if 'relation' in link: - linkArgs['relation'] = link['relation'] - if 'type' in link: - linkArgs['type'] = link['type'] - if 'title' in link and link['title']: - linkArgs['title'] = link['title'] - msg.add_header('Link', link['uri'], **linkArgs) + msg.add_header('Link', link['uri']) date = None if 'date' in callbackMessage['feed_item']: date = isoparse(callbackMessage['feed_item']['date']) -- cgit v1.2.3