Disable checkRecipients by default as it contradicts alwaysTrust
@@ -39,6 +39,7 @@ type Store struct {
alias string
autoImport bool
autoSync bool
+ checkRecipients bool
debug bool
fsckFunc store.FsckCallback
importFunc store.ImportCallback
@@ -59,6 +60,7 @@ func New(alias string, cfg *config.Config) (*Store, error) {
alias: alias,
autoImport: cfg.AutoImport,
autoSync: cfg.AutoSync,
+ checkRecipients: false,
debug: cfg.Debug,
fsckFunc: cfg.FsckFunc,
importFunc: cfg.ImportFunc,
@@ -274,6 +276,10 @@ func (s *Store) useableKeys() ([]string, error) {
recipients := make([]string, len(s.recipients))
copy(recipients, s.recipients)
+ if !s.checkRecipients {
+ return recipients, nil
+ }
+
kl, err := s.gpg.FindPublicKeys(recipients...)
if err != nil {
return recipients, err
