Skip to content

Conversation

owtaylor
Copy link

This PR is a collection of loosely related patches that a) generalize emailmaintainers.py, b) rename it to emailparticipants.py c) add the ability to send the result directly out via SMTP, since not all mail clients have any easy way to send a directory full files as a set of emails. I worked on figuring out what changes where useful for this together with @marinaz.

Instead of type=bool, use action='store_true'. This means you
use --include-coordinator instead of --coordinator=true;
--coordinator is renamed to --include-coordinator and --mentor
is renamed to --include-mentor for clarity.
Example:
 ./emailmentors.py testemail_out testemail_body testemail_contacts
 # check that the mails in testemail_out look OK
 SMTP_USER=<user> SMTP_PASSWORD=<password> ./emailmentors.py testemail_out testemail_body testemail_contacts --smtp-server mail.outreachy.org --smtp-ssl --smtp-login
Specify the organizer on the command line rather than hardcoding
Sage Sharp.
Make it so that you have to specify at least one of
--include-mentor, --include-intern, or --include--coordinator.
…ling

Build the message as a EmailMessage rather than writing out a string
directly. This results in RFC-correct encoding of headers and the body.
We need this when sending the message out over SMTP.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant