Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[arxivce-2619] Use alternate "sendmail" to talk to non-local MTA - mail.arxiv.org #737

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

ntai-arxiv
Copy link
Contributor

https://github.com/arXiv/arxiv-bin/pull/168

This has the "/usr/bin/mail" replacement.

fixed some nits.

Copy link

@dginev dginev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞🏻

mail = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
try:
mail.communicate(mail_body, timeout=60)
mail.communicate(mail_body.encode('utf-8'), timeout=60)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mail_body above is ascii - does the .encode call make any difference? Or is it future-proofing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The body text is no doubt 7-bit ascii. dosen't hurt to use utf-8. So "future proof" if you like.

@ntai-arxiv ntai-arxiv added this pull request to the merge queue Sep 26, 2024
Merged via the queue into develop with commit 2778a68 Sep 26, 2024
4 checks passed
@ntai-arxiv ntai-arxiv deleted the arxivce-2619-use-alternate-email branch September 26, 2024 19:18
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.

2 participants