From: SourceForge.net <no...@so...> - 2003-09-10 22:30:05
|
Patches item #792796, was opened at 2003-08-22 00:22 Message generated for change (Settings changed) made by ingemarh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312883&aid=792796&group_id=12883 >Category: mime Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ingemar Hansson (ingemarh) Assigned to: Nobody/Anonymous (nobody) Summary: Let ::mime::parsepart accept a header only with multipart Initial Comment: When calling ::mime::initialize with a header only and the header includes a multipart description, ::mime::parsepart will return an end-of-file error. This patch fixes that by counting the lines after the header. If no lines are found, no error is thrown. This is useful when you want to parse a mail header only with help of the mime package. Something to think of: This only works if the last newline character returned from ::pop3::top is removed prior to calling ::mime:: initialize. I thought of patching pop3 too, but thought that it's correct that the last line returned also contains a newline character. To help the user so he not needs to think of removing the last newline character, maybe ::mime::parsepart should count non-blank lines after the header, instead of just counting lines. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312883&aid=792796&group_id=12883 |