From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: org-mime - issues and remarks Date: Fri, 23 Apr 2010 18:12:11 +0200 Message-ID: <877hny4084.wl%dmaus@ictsoc.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1340472877==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5LUT-0002Dy-5E for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 12:12:29 -0400 Received: from [140.186.70.92] (port=55605 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5LUQ-0002Dj-BD for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 12:12:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5LUP-0003uo-2F for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 12:12:26 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:59739) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5LUO-0003uO-TF for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 12:12:25 -0400 Received: from localhost (localhost [127.0.0.1]) by mysql1.xlhost.de (Postfix) with ESMTP id 3CB8F1D496 for ; Fri, 23 Apr 2010 18:12:22 +0200 (CEST) Received: from mysql1.xlhost.de ([127.0.0.1]) by localhost (mysql1.xlhost.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gCRJrhnpY1QW for ; Fri, 23 Apr 2010 18:12:22 +0200 (CEST) Received: from t41.ictsoc.de (unknown [89.246.200.160]) by mysql1.xlhost.de (Postfix) with ESMTPSA id C69A81D48D for ; Fri, 23 Apr 2010 18:12:21 +0200 (CEST) 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: org-mode --===============1340472877== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Fri_Apr_23_18:12:10_2010-1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Fri_Apr_23_18:12:10_2010-1 Content-Type: text/plain; charset=US-ASCII 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. - 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. 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]] - 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. - org-mime /should/ add information to the user-agent mail header field indicating that the message was created with the help of org-mime. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Fri_Apr_23_18:12:10_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkvRxtoACgkQma24O1pEeOY6EQD/V0h5dDqvx4F90+CT3Xup3y5G lJlYd84KnaP8pEs8UoIBAKDGmSjXfxsz9soGFs0TmbejfwY9ge51HNqNtHXmn0vX =IWnD -----END PGP SIGNATURE----- --pgp-sign-Multipart_Fri_Apr_23_18:12:10_2010-1-- --===============1340472877== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1340472877==--