This is the kind of stuff that is not explained in clear language in
SMTP reference documents, which is why this particular little piece of
arcana cost me 6 hours that I'll never get back.

Again, I'm trying to help. :)

When I'm confronted with things like this (documentation these days tends to be too much noise, not enough signal), I craft a Google query such as for this case:

"mime boundary" format

I then look for the StackExchange article within the first few results and read the highest-rated answer, which in this case is:

http://stackoverflow.com/questions/4656287/what-rules-apply-to-mime-boundary

The answer is clear, concise, and 22 people upvoted it as being a helpful answer.

Right. I found that one, though not until I had spent a lot of time trying to get information from the actual MIME specs document, and from Wikipedia, and from experimenting with my code to try to figure out what, specifically, the problem was, because the precise meaning of "MIME error: error: unexpected end of preamble" doesn't seem to be explained clearly anywhere. So it took quite a while to learn that this was related to the boundary string. Once I got to that point, it was considerably less time to narrow it down to the actual issue.

The problem occurred because I was trying to follow "Do It Once and Only Once". The Fox Wiki SMTP code restates the MIME boundary string over and over and over. I set it up as an object property and included the prepended "--", because I saw that everywhere and didn't notice it wasn't in the "Content-Type" specification.

Just a nitpick, really, but the relevant portion of the answer you cited is incorrect in a different respect: You have to surround the string with quotation marks in the boundary= specification; the quotation marks do not appear on the StackOverflow page.

Thanks for helping. Everything everybody says helps me think. :)

Ken Dibble
www.stic-cil.org

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to