summaryrefslogtreecommitdiff
path: root/user-profiles/feeds
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-09-05 13:24:03 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-09-05 13:24:03 +0200
commit022194be05655ad3938166f9d8683f6648698daf (patch)
treeac917cb5ab9bf49067c07665e83b7906e9fe12ed /user-profiles/feeds
parent46ae07413e9ba21ebe297db9f6301f9623a8041a (diff)
downloadnixos-022194be05655ad3938166f9d8683f6648698daf.tar
nixos-022194be05655ad3938166f9d8683f6648698daf.tar.gz
nixos-022194be05655ad3938166f9d8683f6648698daf.tar.bz2
nixos-022194be05655ad3938166f9d8683f6648698daf.tar.xz
nixos-022194be05655ad3938166f9d8683f6648698daf.zip
feeds: ...
Diffstat (limited to 'user-profiles/feeds')
-rw-r--r--user-profiles/feeds/imm-notmuch-insert.py9
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'])