diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-04 22:13:40 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-04 22:13:40 +0200 |
commit | b3a5c0729e286ff6e2ee70c2cda431642ee52504 (patch) | |
tree | f1d09b7e88293b87c916ad0f9a00ae18e04046e8 /user-profiles | |
parent | 836f56f0de9615ffd730abba803b95ad900f5b38 (diff) | |
download | nixos-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')
-rw-r--r-- | user-profiles/feeds/imm-notmuch-insert.py | 4 |
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 @@ | |||
3 | import json | 3 | import json |
4 | import sys | 4 | import sys |
5 | import subprocess | 5 | import subprocess |
6 | from io import StringIO | 6 | from io import BytesIO |
7 | from email.message import EmailMessage | 7 | from email.message import EmailMessage |
8 | import configparser | 8 | import configparser |
9 | from os import environ | 9 | from 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 | ||
36 | if __name__ == '__main__': | 36 | if __name__ == '__main__': |