summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* __main__: split parser into a helper functionDylan Baker2017-01-25
| | | | | This simplifies the main function by pulling out the argument parsing and validating into a separate function.
* move alot/settings/checks to alot/utils/configobjDylan Baker2017-01-25
| | | | This is just more reorganization.
* Move utils/booleanaction.py to utils/argparse.pyDylan Baker2017-01-25
| | | | | This module is going to be enhanced with additional components in later patches in this series, so it needs a more generic name.
* Merge pull request #999 from dcbaker/pr/travis-workaroundDylan Baker2017-01-24
|\ | | | | travis: work around sphinx-1.5.2 problem
| * travis: work around sphinx-1.5.2 problemDylan Baker2017-01-24
| | | | | | | | | | | | | | This forces travis to install sphinx 1.5.1 which doesn't display the warnings 1.5.2 does. This is not a proper solution, but a work around so that the docs test works and remains useful. We still need to implement a proper fix.
* | Merge pull request #998 from lucc/zsh-completionPatrick Totzke2017-01-24
|\ \ | | | | | | Update zsh completion after #944
| * | Update zsh completion after #944Lucas Hoffmann2017-01-24
|/ /
* | Merge pull request #947 from pazz/group-replies-818Patrick Totzke2017-01-23
|\ \ | |/ |/| Make addresses in To header unique when group replying
| * make addresses unique in To headersPatrick Totzke2017-01-22
| |
| * clean up my address from Cc'sPatrick Totzke2017-01-22
|/
* Merge pull request #984 from lucc/future/absolute-importsLucas Hoffmann2017-01-21
|\ | | | | Use absolute_imports from __future__
| * Use absolute_imports from __future__Lucas Hoffmann2017-01-18
| |
* | Merge pull request #992 from dcbaker/pr/fix-attributerrorLucas Hoffmann2017-01-21
|\ \ | | | | | | widgets/globals: Fix typo which would lead to AttributeError
| * | widgets/globals: Fix typo which would lead to AttributeErrorDylan Baker2017-01-20
| | |
* | | Merge pull request #966 from dcbaker/pr/fix-965Dylan Baker2017-01-20
|\ \ \ | | | | | | | | alot/ui: Handle Exceptions in UI.apply_command callbacks
| * | | alot/ui: Handle Exceptions in UI.apply_command callbacksDylan Baker2017-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ports the same handling used in UI.apply_commandline to UI.apply_command. This is necessary since though the first implies the other, they are actually separate Deferred instances, and don't share a callback/errback chain; but they can both receive a CommandCanceled exception. Fixes #965
* | | | Merge pull request #991 from lucc/docs/notmuch-addressPatrick Totzke2017-01-20
|\ \ \ \ | | | | | | | | | | Suggest `notmuch address --format=json` in the docs
| * | | | Suggest `notmuch address --format=json` in the docsLucas Hoffmann2017-01-20
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | The old regex that was suggested to capture addresses for completion from the command `notmuch address` was bogus. The json output format is much more predictable. Reported in #990.
* | | | Merge pull request #989 from lucc/docstringsPatrick Totzke2017-01-20
|\ \ \ \ | |/ / / |/| | | Add docstrings to some methods and functions.
| * | | Add docstrings to some methods and functions.Lucas Hoffmann2017-01-20
|/ / /
* | | Merge pull request #983 from lucc/cleanupLucas Hoffmann2017-01-20
|\ \ \ | | | | | | | | Some random cleanup
| * | | Turn method into a generatorLucas Hoffmann2017-01-19
| | | | | | | | | | | | | | | | The method is only used once in a for loop.
| * | | Remove unused methodLucas Hoffmann2017-01-18
| | |/ | |/|
* | | Merge pull request #980 from dcbaker/pr/fix-968-and-979Patrick Totzke2017-01-18
|\ \ \ | |/ / |/| | Pr/fix 968 and 979
| * | commands/global: Don't double prompt to close last bufferDylan Baker2017-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently if global.quit_on_last_bclose is set to True (not the default), and the last buffer is an envelope, then when 'd' or ':bclose' is called, the user will be prompted twice to 'close without sending?'. This patch fixes that by skipping the prompt in BufferCloseCommand, if there is 1 buffer, and global.quit_on_last_bclose is True. It does this by adding a private keyword to the ExitCommand() constructor, telling that classes apply method to not prompt. Fixes #979
| * | Print error when trying to close last buffer without enabling settingDylan Baker2017-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the last buffer if closed (using 'd' or ':bclose'), by default either nothing will happen, or the user will be prompted whether he/she wants to close without saving, and then nothing happens. This can be changed by setting global.quit_on_last_bclose to True (it defaults to False). This patch changes that behavior to preempt the prompt and adds a UI notification that the relevant option is unset, and returns. It will check the same conditions again after the yield statement since the number of buffers or the options might have changed (it seems rather unlikely that the options will change, but it's a tiny amount of code with minimal performance impact and it's better to be safe). Fixes #968
* | | Merge pull request #975 from lucc/tests/doctestsPatrick Totzke2017-01-18
|\ \ \ | | | | | | | | Porting old doctests to unittest
| * | | Port old doctests to unittest: alot.settings.checksLucas Hoffmann2017-01-18
| | | |
| * | | Port old doctests to unittest: alot.db.envelopeLucas Hoffmann2017-01-18
| | | |
| * | | Port old doctests to unittest: alot.commands.__init__Lucas Hoffmann2017-01-18
| | | |
| * | | Port old doctests to unittest: alot.helper.shorten_author_string()Lucas Hoffmann2017-01-18
| | | |
* | | | Merge pull request #982 from dcbaker/wip/ccache-travisPatrick Totzke2017-01-18
|\ \ \ \ | | | | | | | | | | travis: Add ccache
| * | | | travis: Add ccacheDylan Baker2017-01-17
| | |/ / | |/| | | | | | | | | | | | | | This will speed up the builds of notmuch, saving about 40 seconds of build time.
* | | | Merge pull request #981 from dcbaker/pr/dont-use-gnu-extensionsPatrick Totzke2017-01-18
|\ \ \ \ | | | | | | | | | | helper: Don't rely on GNU extensions for strftime
| * | | | helper: Don't rely on GNU extensions for strftimeDylan Baker2017-01-17
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the reality is that most alot users probably have glibc as their C library and can therefore rely on %P, it is possible that there are users or potential users who run a *BSD or other unix-like OS. This leaves only non-GNU extensions, though some of the extensions are specified in later POSIX, unix or C specifications.
* | | | Merge pull request #978 from dcbaker/pr/fix-typo-in-ui-namePatrick Totzke2017-01-17
|\ \ \ \ | |/ / / |/| | | ui: Fix typo in protected method name
| * | | settings/manager: fix typo in docstringDylan Baker2017-01-17
| | | |
| * | | ui: Fix typo in protected method nameDylan Baker2017-01-17
|/ / /
* | | Merge pull request #977 from atillamas/patch-1Patrick Totzke2017-01-17
|\ \ \ | |/ / |/| | Update synopsis.rst
| * | Update synopsis.rstAtilla Mas2017-01-17
|/ / | | | | Fix typo
* | Merge pull request #976 from lucc/rm-old-filePatrick Totzke2017-01-17
|\ \ | | | | | | Remove another old unneeded script
| * | Remove another old unneeded scriptLucas Hoffmann2017-01-17
|/ /
* | Merge pull request #973 from lucc/rm-old-filePatrick Totzke2017-01-16
|\ \ | | | | | | Remove old unneeded script
| * | Remove old unneeded scriptLucas Hoffmann2017-01-16
|/ / | | | | | | | | The script was used to migrate old configs to a new format. For more info see https://github.com/pazz/alot/pull/971#issuecomment-272812329.
* | Merge pull request #957 from fnurl/fnurl-prPatrick Totzke2017-01-13
|\ \ | |/ |/| Settings for enabling mouse
| * Add a setting for enabling or disabling mouse support.Jody Foo2017-01-13
| | | | | | | | | | | | | | | | | | | | Mouse support is enabled by default. To disable mouse support, set ``` handle_mouse = False ``` in your config file.
* | Merge pull request #964 from dcbaker/pr/fix-962Patrick Totzke2017-01-12
|\ \ | | | | | | alot/completion: revert premature optimization
| * | alot/completion: revert premature optimizationDylan Baker2017-01-12
| | | | | | | | | | | | | | | | | | | | | The change this is partially reverting removed a variable assignment that was actually needed. Fixes #962
* | | Merge pull request #963 from dcbaker/pr/fix-typoPatrick Totzke2017-01-12
|\ \ \ | | | | | | | | alot/commands/globals: fix typo
| * | | alot/commands/globals: fix typoDylan Baker2017-01-12
| |/ / | | | | | | | | | | | | This is a bug, though apparently no one has run into it yet. Found through inspection.