Extract common part of _encrypt_all_payloads_inline and _generate_message_from_payloads #117
Labels
No Label
ANSIBLE
BUG
CODE
DEVELOPMENT
DOCUMENTATION
FEEDBACK
FIX
HOWTOs
IDEA
INFRA
ISSUE
MAILSERVER
TESTS
To-Be-Reviewed
WEB
WEBSITE
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Disroot/gpg-lacre#117
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Functions
_encrypt_all_payloads_inline
and_generate_message_from_payloads
inlacre.core
module have very similar flow: they initialise some structure, process messages recursively and return some result.This recursive algorithm could be extracted and re-used.
Making this more generic would make code more complex and probably more error prone - closing.