summaryrefslogtreecommitdiff
path: root/user-profiles/feeds/imm-notmuch-insert.py
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-09-04 22:10:27 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-09-04 22:10:27 +0200
commit803ac568b3666b74b3a9cd616b9fea7a94ce719f (patch)
treee0d91a9ac0aac2e9ae4725041777b6a80bef794d /user-profiles/feeds/imm-notmuch-insert.py
parent658f015f5d926d968a473090b39dc0ca7b7861f8 (diff)
downloadnixos-803ac568b3666b74b3a9cd616b9fea7a94ce719f.tar
nixos-803ac568b3666b74b3a9cd616b9fea7a94ce719f.tar.gz
nixos-803ac568b3666b74b3a9cd616b9fea7a94ce719f.tar.bz2
nixos-803ac568b3666b74b3a9cd616b9fea7a94ce719f.tar.xz
nixos-803ac568b3666b74b3a9cd616b9fea7a94ce719f.zip
feeds: link header
Diffstat (limited to 'user-profiles/feeds/imm-notmuch-insert.py')
-rw-r--r--user-profiles/feeds/imm-notmuch-insert.py2
1 files changed, 1 insertions, 1 deletions
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():
22 msg['Subject'] = callbackMessage['feed_item']['title'] 22 msg['Subject'] = callbackMessage['feed_item']['title']
23 msg['Message-ID'] = f"{callbackMessage['feed_item']['identifier']@imm.invalid}" 23 msg['Message-ID'] = f"{callbackMessage['feed_item']['identifier']@imm.invalid}"
24 for link in callbackMessage['feed_item']['links']: 24 for link in callbackMessage['feed_item']['links']:
25 msg.add_header('Link', link) 25 msg.add_header('Link', link['uri'])
26 if 'date' in callbackMessage['feed_item']: 26 if 'date' in callbackMessage['feed_item']:
27 date = isoparse(callbackMessage['feed_item']['date']) 27 date = isoparse(callbackMessage['feed_item']['date'])
28 msg['Date'] = date.strftime('%a, %e %b %Y %T %z') 28 msg['Date'] = date.strftime('%a, %e %b %Y %T %z')