[New-bugs-announce] [issue33225] imaplib module IMAP4.append() unexpected response BAD Command Error

Yang Yu report at bugs.python.org
Wed Apr 4 13:40:42 EDT 2018


New submission from Yang Yu <yangyudev at 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 <report at bugs.python.org>
<https://bugs.python.org/issue33225>
_______________________________________


More information about the New-bugs-announce mailing list