Currently Being ModeratedMay 10, 2011 6:05 PM (in response to Allen Huffman)
I have done more testing, as this problem keeps happening. I have discovered that mail with this invalid header can be moved between mail accounts on the web server I use, or even to GMail, but if I move them to a subfolder on my me.com account, I get this error.
I clearly see that some messages have this "From xxxx" header at the top, and they cause a problem, while others that do not work fine.
But it also seems clear that this issue with the APPEND error is coming from me.com, as my web server accounts and Gmail handle it just fine.
Any ideas? I am tired of the archive/restore dance to fix this.
Currently Being ModeratedMay 11, 2011 7:04 AM (in response to Allen Huffman)
My webhost provider was able to shed more light on the subject, and provide me a link to a description of the cause:
I suppose the issue is with how Mac Mail is storing the mail file, and the me.com server not liking the mbox "From " header getting placed in there.
I wonder if something changed a few weeks ago to cause this issue to pop up for me? Hundreds of e-mails a day, and I have never seen this problem before.
Currently Being ModeratedMar 18, 2012 9:27 AM (in response to Allen Huffman)
My error is different, but I was desperate and tried the export/imprt dance you used for the header problem. I am trying to move the last 350 messages from my MacMail POP3 account to iCloud ...me.com account. The other 8,000+ messages worked fine. The export/import did not correct the error, but wanted to let people know.
The IMAP command “APPEND” (to [mailbox name]) failed with server error: Message contains NUL characters.
I have not yet found a solution, but interested in hearing from anyone with the same problem. Thanks, Mike
Currently Being ModeratedMay 19, 2012 12:36 PM (in response to Allen Huffman)
Update: In Mac OS X 10.7 (Lion), the Mail is updated so the Archive menu option is not there. It is called Export now.
- Select the mailbox under "MAILBOXES".
- Chose the "Mailbox -> Export Mailbox..." menu option. Choose a location for it to write out the file (mine was called INBOX.mbox).
- Choose the "File -> Import Mailboxes..." menu option. Browse to where you saved out the .mbox file, and select it.
- The messages inside the .mbox file will be reimported, and show up as a subfolder under "ON MY MAC" called "Import". Expand "Import" and you should see "INBOX" or whatever mailbox name you exported. You can then drag those messages to where you want them, and their headers will be fixed.
But why does this happen?
Currently Being ModeratedMay 19, 2012 12:41 PM (in response to MikeTdoc)
MikeTDoc, select one of the invalid messages and view the Raw Source (View -> Message -> Raw Source) and tell me what your first line looks like. I wonder if it's a similar problem. There are ways to manually clean up the MBOX file, so I may write a quick script to do this.
Currently Being ModeratedOct 23, 2012 8:30 AM (in response to Allen Huffman)
Did anyone send you the first line? Were you able to write a script to fix this? I am desperate to stop this insanity.
Currently Being ModeratedOct 23, 2012 8:52 AM (in response to ceboyle)
Nope, but I excpet it is the same thing. I only have problems with the dozen or so mail accounts on my webserver. Gmail, Me.com, etc. are all fine, so it does seem like an incompatbilitty. I have not written a script. I am so far behind on mail, I end up just deleting the bad messages. :(
Currently Being ModeratedFeb 19, 2013 3:42 PM (in response to Allen Huffman)
I'm having a little different problem. I tried to 'move' a message from the inbox to a folder, and got the message "mailbox name cntains invalid character". I've moved lots of messages in the past to this and other mailboxes, and now this problem. I recently upgraded to Mountain Lion.
Currently Being ModeratedMar 19, 2013 1:07 PM (in response to Allen Huffman)
I don't know if anyone else is having this problem still but I think that I managed to find a fix:
I went to the Preferences in the mail app and then disable the yahoo account (where i wanted the message stored but not where it came from)
I completely quit the Mail app
after a few seconds, reopened it
renabled the yahoo account
And now it is working!
I hope this helps others, good luck!