From 803ac568b3666b74b3a9cd616b9fea7a94ce719f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 4 Sep 2021 22:10:27 +0200 Subject: feeds: link header --- user-profiles/feeds/imm-notmuch-insert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user-profiles/feeds') diff --git a/user-profiles/feeds/imm-notmuch-insert.py b/user-profiles/feeds/imm-notmuch-insert.py index 855f3a83..80c96746 100644 --- a/user-profiles/feeds/imm-notmuch-insert.py +++ b/user-profiles/feeds/imm-notmuch-insert.py @@ -22,7 +22,7 @@ def main(): msg['Subject'] = callbackMessage['feed_item']['title'] msg['Message-ID'] = f"{callbackMessage['feed_item']['identifier']@imm.invalid}" for link in callbackMessage['feed_item']['links']: - msg.add_header('Link', link) + msg.add_header('Link', link['uri']) if 'date' in callbackMessage['feed_item']: date = isoparse(callbackMessage['feed_item']['date']) msg['Date'] = date.strftime('%a, %e %b %Y %T %z') -- cgit v1.2.3