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

Allow default priority to be customized #35

Closed
SeiryuZ opened this issue Oct 22, 2013 · 1 comment
Closed

Allow default priority to be customized #35

SeiryuZ opened this issue Oct 22, 2013 · 1 comment

Comments

@SeiryuZ
Copy link
Contributor

SeiryuZ commented Oct 22, 2013

Currently, all mail sending will have default priority of PRIORITY.medium,

Would it be acceptable if we introduce new setting, like POST_OFFICE_DEFAULT_PRIORITY?

In some use case(my small project for example), we need to send email mostly with PRIORITY.now, only in some cases that we use PRIORITY.medium. Calling mail.send has become cumbersome due to writing PRIORITY.now everywhere.

@selwin
Copy link
Collaborator

selwin commented Oct 23, 2013

Sorry no, I'm not in favor of adding another setting just to reduce a little bit of typing. Since #25 , you can already do:

mail.send(foo, bar, priority='now')
mail.send(foo, bar, priority='medium')

It's more explicit too.

@selwin selwin closed this as completed Oct 23, 2013
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

No branches or pull requests

2 participants