summaryrefslogtreecommitdiff
path: root/alot/commands/utils.py
Commit message (Collapse)AuthorAge
* settings/manager: Extend the get_account_by_address with return_defaultDylan Baker2017-07-27
| | | | | | This new return_default flag (which is an optional and default to False) will try to return the default account if it cannot find an account matching the address hint.
* Convert gpg uid choices into a listRuben Pollan2017-02-08
| | | | reversed doesn't work with generators
* Use absolute_imports from __future__Lucas Hoffmann2017-01-18
|
* Encrypt for the CC addresses tooRuben Pollan2017-01-01
|
* commands/utils: Refactor exception caseDylan Baker2016-12-27
| | | | | | | | | This removes the use of range (originally I simply replaced it with xrange, but the realized that the use of range was itself strange), and replaces it with generators and iterators to create the dictionary. This has the advantage of only creating one concrete instance (the choices dict), and being slightly easier to read and understand, as well as not needing to call len() repeatedly.
* Clean up importsLucas Hoffmann2016-12-09
| | | | | | - use relative imports if possible - group imports into standard library, third party, and alot modules - sort imports alphabetically
* Fix double space.Lucas Hoffmann2016-03-24
|
* Implement key id validity checks for encrypt_by_default.Lucas Hoffmann2016-03-24
| | | | | If encrypt_by_default is set to 'Valid' only keys whose email is trusted to belong to the key are used.
* Add and update several docstrings.Lucas Hoffmann2016-03-11
|
* Encrypt on reply to encrypted email and add 'encrypt_by_default' configRuben Pollan2015-12-16