Support for PGP Email Support (DeltaChat Compatible) #1205
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Related issue (if applicable): #414 and #514
Emails to enable Pretty Good Privacy (PGP) support if
?pgp=yes
in theemail://
Apprise URL.It's important to note that Apprise ONLY uses the Public (PGP) key which is required for encrypting the messages.
Parameter Breakdown
Utilizes Persistent Storage path associaed with the URL. A PGP Public/Private key is generated automatically if one is not found and the
pgpkey
isn't specified. The files scanned are (in this sequence and scan stops on first match file):/persistent/path/url_id/{to-email}-pub.asc
mailto://
was[email protected]
the file checked is:/persistent/path/url_id/[email protected]
(note it is in lowercase)To
Address will repeat this check for each address specified. This allows you to hold on to more then one Public key belonging to an end point./persistent/path/url_id/'{email-id}-pub.asc
mailto://
was[email protected]
the file checked is:/persistent/path/url_id/bob-pub.asc
(note it is in lowercase)To
Address will repeat this check for each address specified. This allows you to hold on to more then one Public key belonging to an end point./persistent/path/url_id/{from-email}-pub.asc
mailto://
was[email protected]
the file checked is:/persistent/path/url_id/[email protected]
(note it is in lowercase)/persistent/path/url_id/'{email-id}-pub.asc
mailto://
was[email protected]
the file checked is:/persistent/path/url_id/chucknorris-pub.asc
(note it is in lowercase)/persistent/path/url_id/pgp-public.asc
/persistent/path/url_id/pgp-pub.asc
/persistent/path/url_id/public.asc
/persistent/path/url_id/pub.asc
Pretty Good Privacy Key Generation
If the entire list above is scanned and no PGP file was found, a key will be generated as
/persistent/path/url_id/pgp-public.asc
DeltaChat Support
DeltaChat is fully supported now using the new PGP setup. To leverage an encrypted chat:
/persistent/path/url_id/
in one of the expected formats.Checklist
flake8
)Testing
Anyone can help test this source code as follows: