diff options
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__': |