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

Re: S/MIME with Wanderlust



Ok, great, we are getting synced!

For this reason, here is what I use:  

Wanderlust/2.15.9 (Almost Unreal)
==> all components are from GitHub:
1. master from [[https://github.com/wanderlust/wanderlust][wanderlust/wanderlust]]
2. apel-wl from [[https://github.com/wanderlust/apel][wanderlust/apel]]
3. flim-1_14-wl from  [[https://github.com/wanderlust/flim][wanderlust/flim]]
4. semi-1_14-wl from [[https://github.com/ikazuhiro/semi-epg][ikazuhiro/semi-epg]] (in place of the standard one from [[https://github.com/wanderlust/semi][wanderlust/semi]])

Below you find the results when following your procedure. 

Additionally I attached you the fully decrypted smime.p7s attachment as it become available to me using your overwriting of function "mime-view-application/pkcs7-mime” after “done” message in new *ML:Message*-nil  buffer.

Results:

1. Ok, again, display shows only second part (signature) of the decrypted smime.p7s attachment.

2. output of M-x describe char  — on top of *Preview- *ML:Messages** buffer
===========================================================

             position: 1 of 3831 (0%), column: 0
            character: C (displayed as C) (codepoint 67, #o103, #x43)
    preferred charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x43
               script: latin
               syntax: w 	which means: word
             category: .:Base, L:Left-to-right (strong), a:ASCII, l:Latin, r:Roman
             to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
          buffer code: #x43
            file code: #x43 (encoded by coding system utf-8-unix)
              display: by this font (glyph code)
    mac-ct:-*-ProFontX-normal-normal-normal-*-9-*-*-*-p-0-iso10646-1 (#x26)

Character code properties: customize what to show
  name: LATIN CAPITAL LETTER C
  general-category: Lu (Letter, Uppercase)
  decomposition: (67) ('C')

There is an overlay here:
 From 1 to 33
  face                 hl-line
  priority             -50
  window               nil


There are text properties here:
  mime-view-entity     [Show]
  mime-view-entity-header [Show]
  mime-view-situation  [Show]

[back]


3. showing "mime-view-entity"
   or
showing "mime-view-entity-header”
   in new buffer
==========================

[mime-buffer-entity
 [0 0 0 0 0 0 0]
 #<buffer  *WL:Message*-nil>
 ((type . message)
  (subtype . x-broken))
 nil nil nil
 ((type . attachment))
 "7bit"
 ((Content-Transfer-Encoding . "7bit
")
  (Content-Disposition . "attachment;
\n	filename=smime.p7s
"))
 nil #<buffer  *WL:Message*-nil> 1 4215 4215 4215]


showing "mime-view-situation” in new buffer
==================================

((body-presentation-method . mime-display-multipart/mixed)
 (body . visible)
 (encoding . "7bit")
 (disposition-type . attachment)
 (subtype . signed)
 (type . multipart)
 (entity-button . invisible)
 (header . visible)
 (major-mode . mime-show-message-mode))

Content-Type: multipart/signed;
	boundary="Apple-Mail=_51A03F47-92BB-4FDC-BA9B-FFE147223058";
	protocol="application/pkcs7-signature";
	micalg=sha1


--Apple-Mail=_51A03F47-92BB-4FDC-BA9B-FFE147223058
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

kdlsido gggg
--Apple-Mail=_51A03F47-92BB-4FDC-BA9B-FFE147223058
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFBzCCBQMw
ggProAMCAQICAQcwCwYJKoZIhvcNAQELMIIBHTELMAkGA1UEAwwCTUMxGzAZBgNVBAoMEs6gzpXO
nc6kzpHOpc6bzp/OmTGBlzCBlAYDVQQLDIGMzqDPgc+MzrPPgc6xzrzOvM6xIM6jz4XPg8+Ezq7O
vM6xz4TOv8+CIM6gzrHPgc6xz4POt868zrHOvc+EzrnOus6uz4IgzqTOrc+Hzr3Ot8+CIM66zrHO
uSDOoM+Bzr/Otc66z4TOv8+AzrnPg8+EzrnOus6/z40gzqDOv867zrnPhM65z4POvM6/z40xEzAR
BgNVBAgMCs6VzrvOu86sz4IxCzAJBgNVBAYTAkdSMRMwEQYDVQQHDArOkc64zq7Ovc6xMSAwHgYJ
KoZIhvcNAQkBFhFtY0BhaWd1cGhvbmllLmNvbTAeFw0xN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have misunderstood your report in [wl-en: 05588].  I have
> thought decrypted raw content also have been corrupted.  But actually
> the problem would occurs after decryption according to your report.
> 
>> So, here we are again, the preview buffer selects the wrong part of
>> the raw content.
> 
> If the displayed content is like you described in [wl-en: 05586],
> i.e. as below, the problem is failure of MIME structure parsing.  As I
> wrote past, headers are consist of first and second child part.
> 
>> Content-Transfer-Encoding: 7bit
>> 
>> Content-Disposition: attachment;
>> filename=smime.p7s
>> 
>> Content-Transfer-Encoding: base64
>> 
>> MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFBzCCBQMw
>> ...
> 
> I tested with decrypted content you presented in [wl-en: 05590].  Of
> course, previewing of signature part is failed because of invalid
> data, but MIME parsing has no problem and text/plain part is correctly
> displayed.  Which APEL and FLIM you installed from?
> 
> 
> Please show how the content is parsed by below procedure.
> 
> 1. Decrypt your application/pkcs7-mime part by
> mime-view-application/pkcs7-mime function.
> 
> 2. At the beginning of preview buffer, run describe-char command.
> 
> 3. Confirm mime-view-entity property's value and tell me.
> 
> -- 
> Kazuhiro Ito
> 

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