diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-05 13:24:03 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-05 13:24:03 +0200 |
commit | 022194be05655ad3938166f9d8683f6648698daf (patch) | |
tree | ac917cb5ab9bf49067c07665e83b7906e9fe12ed | |
parent | 46ae07413e9ba21ebe297db9f6301f9623a8041a (diff) | |
download | nixos-022194be05655ad3938166f9d8683f6648698daf.tar nixos-022194be05655ad3938166f9d8683f6648698daf.tar.gz nixos-022194be05655ad3938166f9d8683f6648698daf.tar.bz2 nixos-022194be05655ad3938166f9d8683f6648698daf.tar.xz nixos-022194be05655ad3938166f9d8683f6648698daf.zip |
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']) |