Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

Conversation

@shukebeta
Copy link

No description provided.


self.create_config()
config = configparser.SafeConfigParser()
config = configparser.ConfigParser()
Copy link
Owner

Choose a reason for hiding this comment

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

Why?

Copy link
Author

Choose a reason for hiding this comment

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

I got a warning of "figParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead."

Copy link
Owner

Choose a reason for hiding this comment

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

OK, you should add this information to the commit message next time, and it's going to be clear.

mail_server.starttls()
else:
mail_server = smtplib.SMTP_SSL(host=self.smtp_server, port=self.smtp_port)
mail_server = smtplib.SMTP(host=self.smtp_server, port=self.smtp_port)
Copy link
Owner

Choose a reason for hiding this comment

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

No. Instead of disabling SSL for everyone, add a new command line option --no-ssl that will populate self.ssl value accordingly. This will allow users to disable SSL if they wish. Use it in the if clause above. Instead of if self.smtp_port == 587: use something like if not self.ssl:.

Copy link
Author

Choose a reason for hiding this comment

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

You are right. I may add a --no-ssl option later and create another pull request.
Thank you @kparal :-)

Copy link
Owner

Choose a reason for hiding this comment

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

It's much better to update this pull request instead of creating a new one. Simply adjust the code in your branch and this PR will get automatically updated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants