summaryrefslogtreecommitdiff
path: root/user-profiles/feeds/imm-notmuch-insert.py
diff options
context:
space:
mode:
Diffstat (limited to 'user-profiles/feeds/imm-notmuch-insert.py')
-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__':