From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35076 Path: main.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.gnus.general Subject: MML 'encoding' tag value ignored... Date: 28 Feb 2001 14:31:24 +1100 Organization: Not today, thank you, Mother. Sender: owner-ding@hpc.uh.edu Message-ID: <87d7c3o54j.fsf@inanna.rimspace.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035170877 1058 80.91.224.250 (21 Oct 2002 03:27:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:27:57 +0000 (UTC) Keywords: encoding,win32,tag,pdf,file,base64 Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 547C7D049D for ; Tue, 27 Feb 2001 22:32:54 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id VAB27077; Tue, 27 Feb 2001 21:32:43 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 27 Feb 2001 21:32:03 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id VAA18632 for ; Tue, 27 Feb 2001 21:31:53 -0600 (CST) Original-Received: from melancholia.danann.net (melancholia.danann.net [203.36.211.210]) by mailhost.sclp.com (Postfix) with ESMTP id 8556BD049D for ; Tue, 27 Feb 2001 22:32:20 -0500 (EST) Original-Received: from localhost (melancholia.danann.net [203.36.211.210]) by melancholia.danann.net (Postfix) with ESMTP id 8D9E92A8C9 for ; Wed, 28 Feb 2001 14:32:16 +1100 (EST) Original-Received: by localhost (Postfix, from userid 1000) id B286182167; Wed, 28 Feb 2001 14:31:24 +1100 (EST) Original-To: ding@gnus.org X-Homepage: http://danann.net/ X-spies: domestic disruption Roswell arrangements Noriega JFK COSCO encryption radar Paula Corbin Jones Panama class struggle Kenneth Starr Uzi BATF Clinton User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.2 (Thalia) Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 31 Xref: main.gmane.org gmane.emacs.gnus.general:35076 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35076 In trying to work out why a PDF file was being corrupted when sent from Gnus to several Win32 mailers, I found two things. Firstly, Gnus was selecting quoted-printable encoding for the PDF file. This was then incorrectly decoded by both Outlook and Eudora on the Win32 machine, resulting in a corrupt PDF file. Specifically, LF => CRLF conversion was happening on the Win32 machine. Now, I don't know the QP spec well, so I can't tell if this is correct behaviour for the Win32 machines. If it is, though, I think that 'application/.*' MIME entities should be encoded with base64 exclusively, to avoid this sort of problem. The second, and more serious (IMO) issue is that MML encoding ignores the 'encoding' tag when encoding the buffer and relies exclusively on detecting the encoding type. This is wrong, as far as I can tell, when it comes to the arguments passed to `mm-encode-buffer' from `mml-generate-mime-1'. The `encoding' tag is not passed to `mm-encode-buffer' from the part definition. This means that even if I specified base64 encoding in the MML tag (as: <#part ... encoding=base64>), quoted-printable was chosen. Daniel -- Sadness is but a wall between two gardens. -- Kahlil Gibran