Menu

#1099 Encoding issue - filter action: Encrypt to key

fixed
None
3.1.2
Minor
Interlink 52.9.8194
All
3.1.3
nobody
2023-02-06
2023-01-30
Stephane GL
No

This may be related to #1076, but #1076 is fixed. I can only report on Interlink 52.9.8194, Enigmail 3.1.2:

I'm applying the following filter (extract from msgFilterRules.dat):

name="Encrypt"
enabled="yes"
type="16"
action="Custom"
customId="enigmail@enigmail.net#filterActionEncrypt"
actionValue="{\"keyId\": \"XXXXXXXX\", \"folder\": \"mailbox://nobody@Local%20Folders/Encrypted\" }"
condition="OR (enigmail@enigmail.net#filterTermPGPEncrypted,isn't,)"

I'm applying the filter to the following message:

From - Mon Jan 30 08:25:03 2023
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
FCC: [OMITTED]
X-Identity-Key: id1
X-Account-Key: account5
From: [OMITTED]
Subject: test
Message-ID:  [OMITTED]
Date: Mon, 30 Jan 2023 08:24:46 -0800
X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0;
 attachmentreminder=0; deliveryformat=4
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Aura/20220608
 Interlink/52.9.8194
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit

é

The body only has 1 letter, which in utf-8 displays in the Interlink message pane as: é
The result of the filter is the following message:

From - Mon Jan 30 08:26:20 2023
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
X-Mozilla-Status: 0001 
X-Mozilla-Status2: 00000000 
X-Mozilla-Keys:  
Fcc:  [OMITTED]
X-Identity-Key: id1 
X-Account-Key: account5 
From:  [OMITTED]
Subject: test 
Message-Id:  [OMITTED]
X-Enigmail-Draft-Status: N11100 
Date: Mon, 30 Jan 2023 08:24:46 -0800 
X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0;
 attachmentreminder=0; deliveryformat=4 
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Aura/20220608
 Interlink/52.9.8194 
Mime-Version: 1.0 
Content-Language: en-US 
Content-Transfer-Encoding: 7Bit
Content-Type: multipart/encrypted; boundary="U7S55c6fud3cbj8F0E65zH8Ko0cOMCHMr"; protocol="application/pgp-encrypted"

This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156)
--U7S55c6fud3cbj8F0E65zH8Ko0cOMCHMr
Content-Type: application/pgp-encrypted
Content-Disposition: attachment
Content-Transfer-Encoding: 7Bit

Version: 1

--U7S55c6fud3cbj8F0E65zH8Ko0cOMCHMr
Content-Type: application/octet-stream; name="encrypted.asc"
Content-Description: OpenPGP encrypted message
Content-Disposition: inline; filename="encrypted.asc"
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP MESSAGE-----

wcFMA+L231XO/NydAQ//X5RBcap7YikohSZxH13X6GGyHkU/i6Wdr+tUmS5w
VHTP7zICbgODjqXKk47PgW3GyxwbQi+Qy3e9JN7OdEG2GPA030RXi+GWVD5T
S2sK+8RZLxWXs/5s9wNSDLrdCxB1pyWCF4gfewA9GT7t1GRdSfgeGRphlFQ2
r+oK8s08mGqxX66l238iyCNgFTF/l/eWYe3ITEIFk5QkRXr989tk8+c2v5WV
8+Q+J+o9MDW4jv16QIxBhIcNQcs8aarmi30MOQx4NJ6RvY8fl3bScJz/1fwZ
58EFgyO1Fm4TbrjxO9IiLckBBeZi0XNw16dS3ASwv9UYRv3vLsGs9T/lEmm5
P29dC6R06QGySwXnoA1DAbVwNWR1nzSBGu5wuaeCSzRTmw+xhLm8LWgtW66z
ecytgdQuic0fzuqKopVDvUdGxREA3ihHqvnpcH7Fko5vwacrSlumcnAGG9TH
75OOgZzYUnaiplGoPgPfZjFDTHjG7BOeB3uvCrNbX1/sXC0hoXnYjK1nK45t
TNsu4s5rjK+0qDJio253wAGbDqn145ycESAsUHjmpnVXLGfDDk9is4R7cQE4
fuohj2kCpktSBVg0qgPkh2vf2SCFf3uR81IouO3l5K89fFoM2kpWqjxeTcJQ
6h8+sTphyxQlRg6NMLsSq2H5aXUsAsEp2HGoXwIJGM7SgwG2jY3dAM1NIVTa
71MJ9PDaHq6mNv05InHH5MDXDQP68mQI4/jb6pgy/i42XDPR9qmbwgSHY3Zf
/0brYeHI7SnNh+Vc/RVAw4I7g3n0acJCbQGvP7YQWQauNac3vsN9nipSJP8J
Gcv20j0TMye7rRLnp/FXhNgZzbQuLZ+UNDm4vLx+
=GKq9
-----END PGP MESSAGE-----

--U7S55c6fud3cbj8F0E65zH8Ko0cOMCHMr--

Then when I decrypt it (from the contextual menu) I get

From - Mon Jan 30 08:50:14 2023
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
X-Mozilla-Status: 00010001
X-Mozilla-Status2: 0000000000000000
X-Mozilla-Keys: 
Fcc:  [OMITTED]
X-Identity-Key: id1
X-Account-Key: account5
From: [OMITTED]
Subject: test
Message-Id:  [OMITTED]
X-Enigmail-Draft-Status: N11100
Date: Mon, 30 Jan 2023 08:24:46 -0800
X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0;
 attachmentreminder=0; deliveryformat=4
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Aura/20220608
 Interlink/52.9.8194
Mime-Version: 1.0
Content-Language: en-US
Content-Transfer-Encoding: 7Bit
Content-Type: multipart/mixed; boundary="U7S55c6fud3cbj8F0E65zH8Ko0cOMCHMr"

--U7S55c6fud3cbj8F0E65zH8Ko0cOMCHMr
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

é
--U7S55c6fud3cbj8F0E65zH8Ko0cOMCHMr--

Which doesn't display as é in Interlink, but as é.
It looks like the field
Content-Type: text/plain; charset=utf-8
from the original message is forgotten during encryption / decryption.

Discussion

  • Patrick Brunschwig

    • summary: Encoding issue - filter action: Encrypt to key (Interlink case) --> Encoding issue - filter action: Encrypt to key
    • assigned_to: Patrick Brunschwig
     
  • Patrick Brunschwig

    Fixed on master

     
  • Patrick Brunschwig

    • status: open --> fixed
    • Fixed in version: --- --> 3.1.3
     
  • Stephane GL

    Stephane GL - 2023-02-06

    Awesome, thanks!

     

Log in to post a comment.

MongoDB Logo MongoDB