[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: S/MIME with Wanderlust



Huray Kazuhiro! You solved it!

With your defadvice the contents of the preview buffer now reads: 

[1  <text/plain; us-ascii (7bit)>]
kdlsido gggg
[2 smime.p7s <application/pkcs7-signature (base64)>]
Good signature from 4E421B06571CEE71F1AD759931A34D8D3A9600FC /CN=MC/OU=%CE%A0%CF%81%CF%8C%CE%B3%CF%81%CE%B1%CE%BC%CE%BC%CE%B1 %CE%A3%CF%85%CF%83%CF%84%CE%AE%CE%BC%CE%B1%CF%84%CE%BF%CF%82 %CE%A0%CE%B1%CF%81%CE%B1%CF%83%CE%B7%CE%BC%CE%B1%CE%BD%CF%84%CE%B9%CE%BA%CE%AE%CF%82 %CE%A4%CE%AD%CF%87%CE%BD%CE%B7%CF%82 %CE%BA%CE%B1%CE%B9 %CE%A0%CF%81%CE%BF%CE%B5%CE%BA%CF%84%CE%BF%CF%80%CE%B9%CF%83%CF%84%CE%B9%CE%BA%CE%BF%CF%8D %CE%A0%CE%BF%CE%BB%CE%B9%CF%84%CE%B9%CF%83%CE%BC%CE%BF%CF%8D/O=%CE%A0%CE%95%CE%9D%CE%A4%CE%91%CE%A5%CE%9B%CE%9F%CE%99/L=%CE%91%CE%B8%CE%AE%CE%BD%CE%B1/ST=%CE%95%CE%BB%CE%BB%CE%AC%CF%82/C=GR/EMail=mc@aiguphonie.com (trust never)

I guess that’s what we are expecting!

Concerning the specific buffer named " *WL:Message*-nil”, I saw the leading space before but  C-x b SPC TAB didn’t work because I had icy-mode enabled. After switching icicles off, I could see the buffer in completions and access it. 
Thanks for insisting!

Now, maybe you would want to include your defadvice into your semi-epg library?

Again thank you for all that help!
mc

On 04.02.2014, at 15:31, Kazuhiro Ito <kzhr@d1.dion.ne.jp> wrote:

>> mime-view-temp-message-buffer is a variable defined in `mime-play.el'.
>> Its value is #<buffer  *WL:Message*-nil>
> (snip)
>> That means the buffer with the raw decrypted content has the name:
>> *WL:Message*-nil But I do not know how to display this buffer. M-x b
>> does not show this buffer because it is not global, I guess.  How
>> can I display this buffer?
> 
> In this case, buffer name is " *WL:Message*-nil", containing leading
> space.  Type C-x b SPC TAB, and you can see the buffer in completion
> list.
> 
>> I attached you the contents of the buffer *WL:Message*-nil in my
>> last mail to you.
>> 
>> Then I went into hexl-mode as you asked me to do. The result (only
>> the beginning) is visible in screenshot attached below.
> 
> If attached image is the result of hexl-mode in " *WL:Message*-nil"
> buffer, it seems that buffer contains extra CR in each EOL EasyPG does
> not expect.  Please try below advice.
> 
> (defadvice epg-decrypt-string (around remove-gpgsm-cr activate)
>  (if (eq (epg-context-protocol context) 'CMS)
>      (setq ad-return-value
> 	    (replace-regexp-in-string "\r\n" "\n" ad-do-it t t))
>    ad-do-it))
> 
> -- 
> Kazuhiro Ito
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature