New submission from Yang Yu <yangyu...@gmail.com>:

part of bytestring in message in .append() includes 'text-align: 
center;\r\n}</style><!--[if gte mso 9]><xml>'

append always fails on such messages with 
`abort: command: APPEND => unexpected response: b'}</style><!--[if BAD Command 
Error. 10'`

Some spam emails includes this in body. I pipe incoming emails to spamassassin 
and pipe back stdout to be appended to spam mailbox. This type of failures 
always causes IMAPS connection to be closed.

I can reproduce this every time. IMAP server is Microsoft Exchange I believe

----------
components: Extension Modules
messages: 314945
nosy: yuy
priority: normal
severity: normal
status: open
title: imaplib module IMAP4.append() unexpected response BAD Command Error
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33225>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to