[Users] [Bug 3088] Decrypting of S/MIME email causes client to lose sender information

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Wed Sep 11 20:34:17 CET 2019


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3088

--- Comment #2 from TigerP <tigerp+clawsmail at tigerp.net> ---
When enabling "Display header pane above message view" this pane will show the
correct from, to and subject information about the message.

It seems that in the function messageview_show (messageview.c) it first parses
the file (in the cache) which contains the normal headers and an attachment
smime.p7m (for a signed, not encrypted, message at least).

After that it sees the smime file and verifies it and stores the result in a
tmpfile in the ~/.claws-mail/tmp/ directory.
Then it parses this file and uses that to display the (multi-part) message.

When I run claws-mail --debug I see the following in the debug log:

imap.c:1589:message 3 has been already fully cached.
procheader.c:174:generic_get_one_field: empty line
    message/rfc822 (offset:0 length:26564 encoding: 6)
        application/pkcs7-mime (offset:2114 length:24450 encoding: 4)
procheader.c:174:generic_get_one_field: empty line
smime.c:223:Checking S/MIME signature
smime.c:239:no boundary
file-utils.c:58:TIMING safe_fclose : 0s010ms
smime.c:290:start scan file: /home/stefan/.claws-mail/tmp/tmpfile.0000000a
procheader.c:174:generic_get_one_field: empty line
procheader.c:174:generic_get_one_field: empty line
procheader.c:174:generic_get_one_field: empty line
procheader.c:174:generic_get_one_field: empty line
procheader.c:174:generic_get_one_field: empty line
    message/rfc822 (offset:0 length:15160 encoding: 6)
        multipart/related (offset:91 length:15069 encoding: 6)
            multipart/alternative (offset:278 length:6983 encoding: 6)
                text/plain (offset:408 length:673 encoding: 0)
                text/html (offset:1221 length:5991 encoding: 3)
            image/png (offset:7438 length:7675 encoding: 4)
file-utils.c:58:TIMING safe_fclose : 0s004ms
mimeview.c:543:signed mail
sgpgme.c:110:err code 0
messageview.c:1291:found part 6/related

The linenumber might be off, because I added some code for testing myself.
But it still shows the mime parts with the 4 spaces indentation. The first is
the message from the cache and the second is the file from the tmp directory.
And the last line references the last file.

I ran this with claws build from git.

Please let me know if you need more information.

TigerP

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Users mailing list