From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-mime - issues and remarks Date: Mon, 26 Apr 2010 10:04:12 -0600 Message-ID: <874oiy6w03.fsf@gmail.com> References: <877hny4084.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6QnL-0005UD-Cd for emacs-orgmode@gnu.org; Mon, 26 Apr 2010 12:04:27 -0400 Received: from [140.186.70.92] (port=35786 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6QnG-0005SS-Oh for emacs-orgmode@gnu.org; Mon, 26 Apr 2010 12:04:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6QnE-0001VA-B5 for emacs-orgmode@gnu.org; Mon, 26 Apr 2010 12:04:22 -0400 Received: from mail-pz0-f198.google.com ([209.85.222.198]:59014) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6QnE-0001V1-4s for emacs-orgmode@gnu.org; Mon, 26 Apr 2010 12:04:20 -0400 Received: by pzk36 with SMTP id 36so4680852pzk.24 for ; Mon, 26 Apr 2010 09:04:19 -0700 (PDT) In-Reply-To: <877hny4084.wl%dmaus@ictsoc.de> (David Maus's message of "Fri, 23 Apr 2010 18:12:11 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: org-mode Hi David, If I find some time, I'll certainly take a look at these. More comments below. David Maus writes: > While skimming the source code of org-mime I noticed two severe issues > with regards to the MIME specifications: > > - when creating an attachment for a image org-mime (still) uses the > file extension as MIME media subtype for Gnus messages. This not > in compliance with RFC 2046. As mentioned before org-mime > should/could use the function to determine MIME media type of > message-mode and mime-edit-mode respectively. > > For SEMI the function is `mime-find-file-type', called with the > file name as argument and returns a list whose first element is a > string with MIME media type and second element is MIME media > subtype. > Alright, once I find the appropriate similar function in mml/gnus I will make this change. > > - when creating an attachment for a image org-mime uses the path to > the image for the value of the content-id header. This violates > RFC2045, section 7. > > The value of the content-iD header field is syntactically > identical to the message-id header. > > addr-spec = local-part "@" domain > > For SEMI the function for creating a message-id string is > `wl-draft-make-message-id-string' that is called without any > argument and returns a shiny new message-id header field value > /with/ the angle brackets. > I agree it would be good to use existing and spec conforming functions for the id construction. Again I will need to find the analogous mml/gnus function to the function you mention above. One issue here is the need to ensure that the first three letters of the ID are CID to resolve HTML links from within the article. > > Furthermore there are some minor glitches: > > - the "filename" parameter is only defined for the > content-disposition header field; because images are attachments > they can/should be easily send with > > content-disposition: attachment; filename="" > > For SEMI (replace _ by -): > > __[[type/subtype > content-disposition: attachment; filename=""][base64]] > could you expand upon this point, what's the problem? > > - org-mime uses `reporter-compose-outgoing' to open a new message > draft. This is not a could solution because (a) org-mine does not > want to send a bug report and (b) would depend on reporter.el > without necessity. > I don't think this is a problem, I think reporter.el is the best approach here. > > - org-mime /should/ add information to the user-agent mail header > field indicating that the message was created with the help of > org-mime. > Agreed, this would be a good thing to add. Patches welcome :) Thanks for the thoughts -- Eric > > HTH > -- David > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... dmaus@ictsoc.de > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode