summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/qmauth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/qmauth.py b/script/qmauth.py
index 662b39c..5874fc4 100755
--- a/script/qmauth.py
+++ b/script/qmauth.py
@@ -272,7 +272,7 @@ def read_mail(f, subfolder, mid):
def _descent(xx):
head = _get_mime_head_info(xx)
if (mctype := head['content_maintype']) == 'message':
- body = list(xx.iter_parts())[0]
+ body = xx.get_content()
elif mctype == 'multipart':
body = xx.iter_parts()
else: