| Commit message (Collapse) | Author | Age |
|
|
|
| |
Merge values from multiple files.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
It is only relevant for the sanitize_attachment_filename hook, so never
got triggered.
|
|
|
|
|
|
|
|
|
| |
Split the code into its own function.
Make it properly case-insensitive.
Apply either the blacklist or the whitelist setting, trying to apply
both makes no sense.
Enforce that either a blacklist or a whitelist is configured in the
settings.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Add a class that encapsulates the handler and is responsible for
managing the temporary file, if one is needed.
Use this class for both rendering inline content and displaying
attachments externally.
External attachments are now wrapped in an asyncio task that is added to
a pool of tasks managed by ui.
|
|
|
|
| |
Based on code by Patrick Totzke <patricktotzke@gmail.com>.
|
|
|
|
|
|
|
|
|
|
|
| |
Use the ordered set of header keys from the settings or from the current
envelope when generating an editable envelope.
Fixes https://github.com/pazz/alot/issues/898:
Message header ordering isn't preserved from the editor
Note: collections.OrderedDict has been used for backward compatibility with
Python <3.7.
|
|
|
|
|
|
| |
Python3 only supports "new-style" classes (those extending object),
and we don't need to explicitly inherit from this root class any more.
See http://pylint-messages.wikidot.com/messages:c1001
|
|
|
|
|
|
|
|
| |
pep8!
Better variable names, new feature into docs.
Make sphinx documentation.
|
|
|
|
| |
They are not needed for python >= 3.0.
|
|
|
|
| |
This probably isn't completely right, but it's a start.
|
|
|
|
| |
This module moved.
|
|
|
|
|
|
| |
this introduces a new argparse validation check that makes sure a
parameter is '+', '-', or an integer, and uses this check for the
'indent' thread mode command.
|
|\ |
|
| |
| |
| |
| |
| | |
This mostly shortens lines down to <=79 chars and fixes some other small
things I found using the pep8 tool.
|
|/ |
|
|
|
|
|
|
| |
In python3 Exception doesn't have a message attribute, the only way to
get the string output is to call str() on the Exception. This also works
in python 2.7, so go ahead and make that change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This converts from the now abandoned pygpgme project for wrapping gpgme,
to the upstream gpgme python bindings (which are descended from the pyme
project, before they became official).
Largely this change should not be user visible, but there are a couple
cases where the new bindings provide slightly more detailed error
messages, and alot directly presents those messages to users.
This patch has been significantly revised and updated by Dylan Baker,
but was originally authored by Daniel Kahn Gillmor.
Fixes #1069
|
| |
|
|
|
|
| |
via cached properties
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a new argparse.Action class validates input using a new
keyword argument that takes a validator function. This will allow us to
replace the use the type keyword as a validator, which is both more
correct, and frees up the type keyword to do what it's actually meant to
do, convert the input from one type to another.
It also adds 3 new validator functions that will be enabled in the next
commit. One that checks for a required file, one that checks for an
optional directory, and one that looks for a required file, fifo, or
block special device (/dev/null).
|
|
|
|
|
| |
Hide internal values from export and add a message to the TypeError raised
by the if the argument isn't in _TRUISH or _FALSISH.
|
|
|
|
| |
This is just more reorganization.
|
|
|
|
|
| |
This module is going to be enhanced with additional components in later
patches in this series, so it needs a more generic name.
|
| |
|
| |
|
|
|
|
|
|
| |
apparently the __call__ method got lost on the way.
Moreover the choices list must match the target type,
so is useless here
|
| |
|
|
|
|
| |
cf issue #472
|
| |
|
|
This action allows to set a boolean flag
via --foo=BAR, where BAR is y/n,true/false etc.
|