From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.devel Subject: Re: Sending attachments Date: Sun, 05 Jul 2009 11:40:10 +1000 Organization: I know I put it down here, somewhere. Message-ID: <87my7joqkl.fsf@rimspace.net> References: <87k52rzyn1.fsf@benthic.rattlesnake.com> <873a9fw6dt.fsf@catnip.gol.com> <87y6r7yp1y.fsf@stupidchicken.com> <0922916E-B9DD-41C4-8A3D-8550CDD56B62@mit.edu> <83r5ww1m3k.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246758746 2469 80.91.229.12 (5 Jul 2009 01:52:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jul 2009 01:52:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 05 03:52:19 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MNGtv-0003nk-03 for ged-emacs-devel@m.gmane.org; Sun, 05 Jul 2009 03:52:19 +0200 Original-Received: from localhost ([127.0.0.1]:43418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNGtu-0004Dm-An for ged-emacs-devel@m.gmane.org; Sat, 04 Jul 2009 21:52:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNGto-0004DV-5j for emacs-devel@gnu.org; Sat, 04 Jul 2009 21:52:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNGtj-0004D0-OS for emacs-devel@gnu.org; Sat, 04 Jul 2009 21:52:11 -0400 Original-Received: from [199.232.76.173] (port=52641 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNGtj-0004Cx-Gu for emacs-devel@gnu.org; Sat, 04 Jul 2009 21:52:07 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:38324 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MNGti-000817-Rv for emacs-devel@gnu.org; Sat, 04 Jul 2009 21:52:07 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MNGtf-0004BW-9p for emacs-devel@gnu.org; Sun, 05 Jul 2009 01:52:03 +0000 Original-Received: from ppp59-167-189-244.static.internode.on.net ([59.167.189.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Jul 2009 01:52:03 +0000 Original-Received: from daniel by ppp59-167-189-244.static.internode.on.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Jul 2009 01:52:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp59-167-189-244.static.internode.on.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (gnu/linux) Cancel-Lock: sha1:XgocIHh6l4QhqZv2bJyyR4+/ZBU= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:112027 Archived-At: Eli Zaretskii writes: >> From: Chad Brown >> Date: Sat, 4 Jul 2009 08:33:56 -0700 >> >> I doubt that you can make mail-mode usable for the mime- handling >> features that multiple packages want from message-mode without >> significant (mostly duplicated) effort. > > Could you please post a list of the features you had in mind, so that > the effort could be estimated? > > Just looking at email messages with MIME attachments, it looks like > each attachment is just a fancy header line and a body encoded by > either base64 or quoted-printable. Implementing a simple command that > asks for a file name and then encodes it and puts the result in the > *mail* buffer sounds easy enough, so I'm sure I'm missing something. If you do decide to go the simple path, don't encode anything but text/* MIME content as Q-P. Various mailers, especially on Windows, take Q-P as an instruction to un-Q-P the text, then convert line endings to the platform format. This violates the spec, but causes corruption of attachments. Gnus, for a while, selected the optimum of Q-P and base64 for size, and I found the above issue when PDF files selected Q-P and ended up corrupted on Windows. Regards, Daniel