Re: RFC3156 (MIME Security with OpenPGP)

Daiki Ueno <[email protected]> Tue, 07 Feb 2006 09:49:37 +0900
Newsgroups gmane.mail.emacs.mime.japanese
Message-ID <[email protected]>



>>>>> In [emacs-mime-ja : No.02008] 
>>>>>	TAKAHASHI Kaoru <[email protected]> wrote:
> RFC3156 

> 3.  Content-Transfer-Encoding restrictions
> [snip]
>    Additionally, implementations MUST make sure that no trailing
>    whitespace is present after the MIME encoding has been applied.

>  mime-edit.el 
> 

> delete-trailing-whitespace()  portable 
> 
> 

> mime-edit  pgg 
> mime-edit 

mime-edit 

portable  commit 

> Index: mime-edit.el
> ===================================================================
> --- mime-edit.el	28 Oct 2004 07:25:04 -0000	1.8
> +++ mime-edit.el	13 Nov 2005 03:45:16 -0000
> @@ -1801,6 +1801,7 @@
>  	     (encoding (nth 1 ret))
>  	     (pgp-boundary (concat "pgp-sign-" boundary))
>  	     micalg)
> +	(delete-trailing-whitespace)	; RFC3156
>  	(goto-char beg)
>  	(insert (format "Content-Type: %s\n" ctype))
>  	(if encoding


-- 
Daiki Ueno