Skip to content

Commit be78edb

Browse files
committed
Simpler option names.
1 parent b6e75f2 commit be78edb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Diff for: Docs/ADVANCED PREFERENCES

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
defaults write org.gpgtools.common DebugLog -bool YES|NO
2828

2929

30-
* Disable OpenPGP for reading messages. *
31-
defaults write org.gpgtools.gpgmail DisableOpenPGPForReading -bool YES|NO
30+
* Disable or enable OpenPGP for reading messages. *
31+
defaults write org.gpgtools.gpgmail UseOpenPGPForReading -bool YES|NO
3232

3333

3434
* FOR DEBUGGING ONLY: Hides all signature attachments, even if they fail to verify. *

Diff for: Resources/GPGMailBundle.defaults

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
AttachKeyToOutgoingMessages = NO;
1515
AllowSymmetricEncryption = NO;
1616
ShowAccountNameForKeysOfSameAddress = NO;
17-
DoNotEncryptToSelf = NO;
17+
EncryptToSelf = YES;
1818

1919
/* Viewing */
20-
DisableOpenPGPForReading = NO;
20+
UseOpenPGPForReading = YES;
2121
HideAllSignatureAttachments = NO;
2222
CreatePreviewSnippets = NO;
2323

Diff for: Source/Message+GPGMail.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ - (BOOL)shouldBePGPProcessed {
438438
// return NO;
439439

440440
// OpenPGP is disabled for reading? Return false.
441-
if([[GPGOptions sharedOptions] boolForKey:@"DisableOpenPGPForReading"])
441+
if(![[GPGOptions sharedOptions] boolForKey:@"UseOpenPGPForReading"])
442442
return NO;
443443

444444
// Message was actively selected by the user? PGP process message.

Diff for: Source/MimePart+GPGMail.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ - (id)MANewEncryptedPartWithData:(NSData *)data recipients:(id)recipients encryp
19511951
GPGKey *senderPublicKey = nil;
19521952

19531953
// Split the recipients in normal and bcc recipients.
1954-
BOOL doNotEncryptToSelf = [[GPGOptions sharedOptions] boolForKey:@"DoNotEncryptToSelf"];
1954+
BOOL encryptToSelf = [[GPGOptions sharedOptions] boolForKey:@"EncryptToSelf"];
19551955
NSMutableArray *normalRecipients = [NSMutableArray arrayWithCapacity:1];
19561956
NSMutableArray *bccRecipients = [NSMutableArray arrayWithCapacity:1];
19571957

@@ -1960,7 +1960,7 @@ - (id)MANewEncryptedPartWithData:(NSData *)data recipients:(id)recipients encryp
19601960
if ([recipientType isEqualTo:@"bcc"]) {
19611961
[bccRecipients addObject:recipient];
19621962
} else {
1963-
// If DoNotEncryptToSelf is enabled, don't add the sender to the recipients.
1963+
// If encryptToSelf is disabled, don't add the sender to the recipients.
19641964
// Of course this has the effect that the sent mails can't be read by the sender,
19651965
// but that's exactly what this option is for.
19661966
if ([recipientType isEqualToString:@"from"]) {
@@ -1975,7 +1975,7 @@ - (id)MANewEncryptedPartWithData:(NSData *)data recipients:(id)recipients encryp
19751975
}
19761976
}
19771977

1978-
if (doNotEncryptToSelf)
1978+
if (!encryptToSelf)
19791979
continue;
19801980

19811981
// In order to fix a problem where a random key matching an address

0 commit comments

Comments
 (0)