What is error code 80070018 and how to resolve it?

The mailbox may have some emails with an excessively long subject line that are not supported by Windows Phone 8. Once you have removed the suspect mail item (i.e. cleaned the mailbox or move the suspect mail to a folder that phone does not sync) the error will cease.