summaryrefslogtreecommitdiff
path: root/user-profiles/feeds
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-09-04 22:13:40 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-09-04 22:13:40 +0200
commitb3a5c0729e286ff6e2ee70c2cda431642ee52504 (patch)
treef1d09b7e88293b87c916ad0f9a00ae18e04046e8 /user-profiles/feeds
parent836f56f0de9615ffd730abba803b95ad900f5b38 (diff)
downloadnixos-b3a5c0729e286ff6e2ee70c2cda431642ee52504.tar
nixos-b3a5c0729e286ff6e2ee70c2cda431642ee52504.tar.gz
nixos-b3a5c0729e286ff6e2ee70c2cda431642ee52504.tar.bz2
nixos-b3a5c0729e286ff6e2ee70c2cda431642ee52504.tar.xz
nixos-b3a5c0729e286ff6e2ee70c2cda431642ee52504.zip
feeds: bytes /= string
Diffstat (limited to 'user-profiles/feeds')
-rw-r--r--user-profiles/feeds/imm-notmuch-insert.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/user-profiles/feeds/imm-notmuch-insert.py b/user-profiles/feeds/imm-notmuch-insert.py
index 73342c90..98a05c7e 100644
--- a/user-profiles/feeds/imm-notmuch-insert.py
+++ b/user-profiles/feeds/imm-notmuch-insert.py
@@ -3,7 +3,7 @@
3import json 3import json
4import sys 4import sys
5import subprocess 5import subprocess
6from io import StringIO 6from io import BytesIO
7from email.message import EmailMessage 7from email.message import EmailMessage
8import configparser 8import configparser
9from os import environ 9from os import environ
@@ -30,7 +30,7 @@ def main():
30 subprocess.run( 30 subprocess.run(
31 args=['notmuch', 'insert'], 31 args=['notmuch', 'insert'],
32 check=True, 32 check=True,
33 stdin=StringIO(bytes(msg)) 33 stdin=BytesIO(bytes(msg))
34 ) 34 )
35 35
36if __name__ == '__main__': 36if __name__ == '__main__':