Hi,
I have observed two strange behaviors regarding the automatic selection of private keys depending on the current mail identity. Both behaviors seem to be related.
Before that I migrated from PMail 4.51 with PMPGP 6.2.7.1 on Windows XP SP3 32bit to
PMail 4.62 with PMPGP 6.2.7.4 on Windows 7 SP1 64bit, both Pegasus and PMPGP were the plain
english versions with no internationalization.
First observation:
In the former versions the selection of the correct private key worked like a charm, but in the
new versions (with same settings) it seems that always the first
available key will be proposed.
Second behavior that is worse, especially in combination to the first one:
When sending an email by one identity with one private key, the
passphrase will be correctly cached like it has been set up in the
options, but when sending an email by another identity with
another private key, the passphrase of the formerly used private key is
used together with the newly proposed private key (see also first
problem above) without any dialog box appearing and even without any
chance to select the key manually.
Since this short description might sound a little bit confusing, here is a step-by-step test case for you to reproduce the scenario:
First the environment:
- There are two Pegasus identies (id1 and id2).
- Each identity has a different email address (user1@domain1.tld and user2@domain2.tld)
- Each email adress has a different private key (key1 and key2) in the PGP keyring, but both with the same passphrase.
-
The first identity (id1) is marked as the main identity inside the PGP
keyring. (I don't know if this detail matters, since "use default key"
is disabled anywhere in PGP and in PMPGP, at all.)
- The default action configured in Pegagus options for any emails is signing only, means signing is enabled and encryption is diabled by default.
-
The PMPGP options "Auto encryption" and "Auto key selection" are
disabled. (Just to be sure, I also tried enabling "Auto key selection" which (expectedly, since Auto encryption is off) had no
effect on our test case here.)
Now the actions:
1. Write a new email using id2 to a completely unrelated receiver
address and press the send button. (Mind that "Signing" is
automatically enabled, "Encrypting" is disabled, see above: default
actions of Pegasus)
2. Dialog of PMPGP appears with a dropdown list containing both
key1 and key2. The key1 is selected. One would have expected to see the
key2 here.
3. Select key2 which matches the sender address, enter
the passphrase and confirm, so that the email is being signed signed by
PMPGP and sent by Pegasus.
4. Write another new email using id2
(same as in first email) to the same (unrelated) receiver address and
press the send button within the timespan of passphrase caching since
sending the previous email.
5. No dialog of PMPGP appears. Instead the email is being signed with
key1 (auto-selected like in 2.?) using the cached passphrase of key2
(which is in this test case identically to the passphrase of key1) and
the mail is being sent without any further user interaction using the
wrong key.
6. Write another new email using id1 to the same (unrelated) receiver address and press the send button, again within the timespan of passphrase caching since sending the previous email.
7.
Like in 5. no dialog of PMPGP appears. Instead the email is being
signed with key1 (auto-selected like in 2.?) using the cached
passphrase of key2 (which is in this test case identically to the
passphrase of key1) and the mail is being sent without any further
user interaction using the correct key, but this might be by chance in this
case.
Thanks in advance for your attention and help :)
Sincerely,
Rainer
(edited: adding the operating systems to the migration detail info and fixed two typos)
<p>Hi,</p><p>I have observed two strange behaviors regarding the automatic selection of private keys depending on the current mail identity. Both behaviors seem to be related.
</p><p>Before that I migrated from PMail 4.51 with PMPGP 6.2.7.1 on Windows XP SP3 32bit to
PMail 4.62 with PMPGP 6.2.7.4 on Windows 7 SP1 64bit, both Pegasus and PMPGP were the plain
english versions with no internationalization.</p><p>&nbsp;</p><p>First observation:
</p><p>In the former versions the selection of the correct private key worked like a charm, but in the
new versions (with same settings) it seems that always the first
available key will be proposed.</p><p>
</p><p>Second behavior that is worse, especially in combination to the first one:
</p><p>When sending an email by one identity with one private key, the
passphrase will be correctly cached like it has been set up in the
options, but when sending an email by another identity with
another private key, the passphrase of the formerly used private key is
used together with the newly proposed private key (see also first
problem above) without any dialog box appearing and even without any
chance to select the key manually.</p><p>Since this short description might sound a little bit confusing, here is a step-by-step test case for you to reproduce the scenario:</p><p>First the environment:</p><p>- There are two Pegasus identies (id1 and id2).</p><p>- Each identity has a different email address (user1@domain1.tld and user2@domain2.tld)</p><p>- Each email adress has a different private key (key1 and key2) in the PGP keyring, but both with the same passphrase.</p><p>-
The first identity (id1) is marked as the main identity inside the PGP
keyring. (I don't know if this detail matters, since "use default key"
is disabled anywhere in PGP and in PMPGP, at all.)</p><p>- The default action configured in Pegagus options for any emails is signing only, means signing is enabled and encryption is diabled by default.</p><p>-
The PMPGP options "Auto encryption" and "Auto key selection" are
disabled. (Just to be sure, I also tried enabling "Auto key selection" which (expectedly, since Auto encryption is off) had no
effect on our test case here.)
</p><p>Now the actions:
</p><p>1. Write a new email using id2 to a completely unrelated receiver
address and press the send button. (Mind that "Signing" is
automatically enabled, "Encrypting" is disabled, see above: default
actions of Pegasus)
</p><p>2. Dialog of PMPGP appears with a dropdown list containing both
key1 and key2. The key1 is selected. One would have expected to see the
key2 here.</p><p>3. Select key2 which matches the sender address, enter
the passphrase and confirm, so that the email is being signed signed by
PMPGP and sent by Pegasus.</p><p>4. Write another new email using id2
(same as in first email) to the same (unrelated) receiver address and
press the send button within the timespan of passphrase caching since
sending the previous email.
</p><p>5. No dialog of PMPGP appears. Instead the email is being signed with
key1 (auto-selected like in 2.?) using the cached passphrase of key2
(which is in this test case identically to the passphrase of key1) and
the mail is being sent without any further user interaction using the
wrong key.
</p><p>6. Write another new email using id1 to the same (unrelated) receiver address and press the send button, again within the timespan of passphrase caching since sending the previous email.</p><p>7.
Like in 5. no dialog of PMPGP appears. Instead the email is being
signed with key1 (auto-selected like in 2.?) using the cached
passphrase of key2 (which is in this test case identically to the
passphrase of key1) and the mail is being sent without any further
user interaction using the correct key, but this might be by chance in this
case.
</p><p>&nbsp;</p><p>Thanks in advance for your attention and help :)</p><p>Sincerely,</p><p>Rainer </p><p>&nbsp;</p><p>(edited: adding the operating systems to the migration detail info and fixed two typos)
</p>