Describe the bug
In sender/sender.go:1075, fmt.Errorf("missing PGP key for %s (tried .asc and .gpg): %w", email, err) uses %w for err but %s for email which is correct, but there are instances of %s missing wrapping in sender/sender.go:561 for S/MIME certs.
To reproduce
Attempt to send an encrypted email without certificates.
Expected behavior
Ensure all certificate and PGP errors are cleanly wrapped.
Describe the bug
In
sender/sender.go:1075,fmt.Errorf("missing PGP key for %s (tried .asc and .gpg): %w", email, err)uses%wforerrbut%sfor email which is correct, but there are instances of%smissing wrapping insender/sender.go:561for S/MIME certs.To reproduce
Attempt to send an encrypted email without certificates.
Expected behavior
Ensure all certificate and PGP errors are cleanly wrapped.