summaryrefslogtreecommitdiff
path: root/alot
Commit message (Collapse)AuthorAge
* 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
* | | | 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 #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.
* | | settings/manager: fix typo in docstringDylan Baker2017-01-17
| | |
* | | ui: Fix typo in protected method nameDylan Baker2017-01-17
|/ /
* | 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.
* | | Merge pull request #878 from meskio/encrypt_ccDylan Baker2017-01-12
|\ \ \ | |/ / |/| | Encrypt for the CC addresses too
| * | Encrypt for the CC addresses tooRuben Pollan2017-01-01
| | |
* | | Replace None passed to comprehensions with identity functionDylan Baker2017-01-11
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | One of the differences between map/filter and a comprehension is what happens with None. For map and filter passing None as the function will be treated as an identity function (equivalent to lambda x: x), for comprehensions however, this will raise an exception (calling NoneType). The fix is rather simple, instead of making the default of filtfun None, make it an identity function. I've used lambda x: x since it's easy, although defining an identity function in a utility library might be preferable since lambdas are slower than normal functions. Fixes #946
* | Merge pull request #944 from lucc/argparsePatrick Totzke2017-01-10
|\ \ | | | | | | Replace twisted command line parsing with argparse
| * | Release config files after command line parsingLucas Hoffmann2017-01-10
| | | | | | | | | | | | | | | This was tested with lsof(8) and the files are not open when alot is up and running.
| * | Move default notmuch config path to argparse parser setupLucas Hoffmann2017-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is only possible for the notmuch config file and not for the alot config file as the former is strictly required but the latter is not. If the latter does not exist it will be detected by the argument parser. If the former is not given on the command line the parser will return `None` and we can manually check if the default config file exists and else just skip the alot config file.
| * | Expose more internal commands on the command lineLucas Hoffmann2017-01-10
| | |
| * | Remove unneeded expanduser callsLucas Hoffmann2017-01-10
| | | | | | | | | | | | Fixes the -n option.
| * | Document subcommands in help outputLucas Hoffmann2017-01-10
| | |
| * | Use the internal parser for initial command line parsingLucas Hoffmann2017-01-10
| | | | | | | | | | | | | | | This again sightly changes the help output and also the possible options for the compose subcommand.
| * | Simplify finding of config fileLucas Hoffmann2017-01-10
| | | | | | | | | | | | | | | Especially let the command line parser check if a file given on the command line exists.
| * | Replace twisted command line parsing with argparseLucas Hoffmann2017-01-10
| | | | | | | | | | | | | | | The command line interface is copied as directly as possible. But at least the help output is formatted differently.
* | | Eliminates bug where a modifier + mouse click would crash alot.Jody Foo2017-01-10
|/ / | | | | | | Fixes pazz/alot#955
* | Merge pull request #952 from samdmarshall/masterDylan Baker2017-01-09
|\ \ | | | | | | adding support for mouse scrolling
| * | adding support for mouse scrollingSamantha Marshall2017-01-09
| |/
* / On exit command, check if there are any unsent messagesHamish Downer2017-01-02
|/
* Revert "Fix values to methods in __main__"Dylan Baker2016-12-28
| | | | | | This reverts commit 581ed2987bd456d2894637a30bb5a14a4caa5f9b. Fixes #942
* db/message: fix whitespaceDylan Baker2016-12-27
|
* fix odd continuation and indentationDylan Baker2016-12-27
| | | | This is just whitespace changes.
* db/utils: fix bad hanging indentDylan Baker2016-12-27
|
* db/message: replace __cmp__ with rich comparisonsDylan Baker2016-12-27
| | | | | | | | | | | | | | | | | | | | | | This replaces the deprecated __cmp__ function with the more modern __lt__, __eq__, and __ne__, and then uses functools.total_ordering to implemented the remaining pieces of the rich comparison protocol automatically. It also make use of the NotImplemented singleton, which python uses to signal to rich comparators that this class doesn't no how to compare to the other class, which results in the complementary method from the other class being used, and if both return NotImplemented than a TypeError is generated. There are two reasons to make this change. First, python 3 only supports rich comparisons, and second rich comparisons are much faster than using cmp (and the __cmp__ protocol) because cmp is called at least 3 times per element, while a rich comparitor is called one per element. functools.total_ordering is in the standard library from 2.7 and 3.3, and will implement the rich comparison protocol provided that __eq__ and at least one of __lt__, __le__, __ge__, or __gt__ are implemented. It does not (oddly enough) implement __ne__, so I've implemented that manually.
* db/envelope: add todoDylan Baker2016-12-27
|