Skip to content

Commit b6e75f2

Browse files
committed
Option handling.
1 parent 23a5826 commit b6e75f2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Resources/GPGMailBundle.defaults

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111
SignNewEmailsByDefault = YES;
1212
UseOpenPGPInlineToSend = NO;
1313
DefaultSecurityMethod = 1; /* OpenPGP */
14+
AttachKeyToOutgoingMessages = NO;
15+
AllowSymmetricEncryption = NO;
16+
ShowAccountNameForKeysOfSameAddress = NO;
17+
DoNotEncryptToSelf = NO;
1418

1519
/* Viewing */
1620
DisableOpenPGPForReading = NO;
1721
HideAllSignatureAttachments = NO;
18-
22+
CreatePreviewSnippets = NO;
1923

2024
/* Completely disable generating snippets even if the passphrase
2125
* is cached.

Source/ComposeBackEnd+GPGMail.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ - (id)MA_makeMessageWithContents:(WebComposeMessageContents *)contents isDraft:(
297297

298298

299299

300-
BOOL attachKeys = shouldPGPSign && [[[GPGOptions sharedOptions] valueForKey:@"AttachKeyToOutgoingMessages"] boolValue];
300+
BOOL attachKeys = shouldPGPSign && [[GPGOptions sharedOptions] boolForKey:@"AttachKeyToOutgoingMessages"];
301301
NSData *keysToAttach = nil;
302302

303303
if (!shouldCreatePGPInlineMessage && attachKeys) {

0 commit comments

Comments
 (0)