Unable to send emails to addresses with delimiter #87

Closed
opened 2022-06-02 23:52:53 +02:00 by muppeth · 1 comment
Owner

When sending to lacre'ed address using delimiter, email gets bounced back to sender with error:

Diagnostic-Code: x-unix; Traceback (most recent call last):   File
    "/opt/gpg-lacre/gpg-mailgate.py", line 434, in <module>
    sort_recipients(raw_message, from_addr, to_addrs)   File
    "/opt/gpg-lacre/gpg-mailgate.py", line 409, in sort_recipients
    recipients_left = smime_encrypt(raw_message, recipients_left)   File
    "/opt/gpg-lacre/gpg-mailgate.py", line 275, in smime_encrypt
    cert_and_email = get_cert_for_email(addr, cert_path)   File
    "/opt/gpg-lacre/gpg-mailgate.py", line 334, in get_cert_for_email
    return get_cert_for_email(fixed_up_email) TypeError: get_cert_for_email()
    missing 1 required positional argument: 'cert_path'
When sending to lacre'ed address using delimiter, email gets bounced back to sender with error: ``` Diagnostic-Code: x-unix; Traceback (most recent call last): File "/opt/gpg-lacre/gpg-mailgate.py", line 434, in <module> sort_recipients(raw_message, from_addr, to_addrs) File "/opt/gpg-lacre/gpg-mailgate.py", line 409, in sort_recipients recipients_left = smime_encrypt(raw_message, recipients_left) File "/opt/gpg-lacre/gpg-mailgate.py", line 275, in smime_encrypt cert_and_email = get_cert_for_email(addr, cert_path) File "/opt/gpg-lacre/gpg-mailgate.py", line 334, in get_cert_for_email return get_cert_for_email(fixed_up_email) TypeError: get_cert_for_email() missing 1 required positional argument: 'cert_path' ```
muppeth added the
BUG
CODE
labels 2022-06-02 23:52:53 +02:00
Collaborator

First findings:

  • Only S/MIME encryption supports delimiters, OpenPGP/GnuPGP doesn't.
  • Function get_cert_for_email is called without second argument, which is mandatory.

Suggestion from @muppeth:

i think we should encrypt delimiter emails. otherwise it creates confusion. so perhaps lacre could by defualt strip down +whatever from email and encrypt using users email

First findings: * Only S/MIME encryption supports delimiters, OpenPGP/GnuPGP doesn't. * Function `get_cert_for_email` is called without second argument, which is mandatory. Suggestion from @muppeth: > i think we should encrypt delimiter emails. otherwise it creates confusion. so perhaps lacre could by defualt strip down +whatever from email and encrypt using users email
pfm closed this issue 2022-06-08 21:32:29 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Disroot/gpg-lacre#87
No description provided.