Hello Thomas, On Wednesday, August 16, 2006 at 23:00:30 +0200, Thomas Bleher wrote:
>>| application/x-tar-gz tgz tar.gz > I think that this line should be added to the mime.types file. Upstream Mutt mime.types has it. To add it to Debian or Ubuntu, please see the package owning mime.types. > I'd still like to keep this bug open, though, because mutt's > heuristics could be improved It could surely be improved, but it's a quite delicate mechanism, a carefully equilibrated compromise. Past experiences changing the text/binary balance always ended fixing one case while breaking others. Look at sendlib.c functions update_content_info() and mutt_make_file_attach(), or grep for "(hi|lo)bin". Very roughly, when control chars are below 10%, it's considered text. If you have an improvement idea with only positive effects, please speak. > in doubt it should send data as application/octet-stream to avoid > mangling them. When "in doubt" is the whole point; When doubtless, there is no problem. This would lead to send some texts as octet-stream, which is neither good. > In this case, looking for embedded NULLs would have been enough (4th > byte of the file in question). This would disallow NULs in text. Bye! Alain. -- « if you believe the Content-Type header, I've got a bridge to sell you. » -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]