summaryrefslogtreecommitdiff
path: root/alot/settings
Commit message (Collapse)AuthorAge
* main: allow -c to be used multiple timesAnton Khirnov2023-03-16
| | | | Merge values from multiple files.
* settings/manager: make a log message more informativeAnton Khirnov2023-03-16
|
* settings/utils: move resolve_att to the only place where it's usedAnton Khirnov2023-03-07
|
* settings/manage: sanitize various Unicode zero-width spaces to nothingAnton Khirnov2021-11-24
|
* commands/envelope: refactor deriving headers to be editedAnton Khirnov2021-11-20
| | | | | | | | | 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.
* settings/manager: handle future dates in _pretty_datetime()Anton Khirnov2021-05-10
|
* settings/manager: remove newlines from headers during sanitizationAnton Khirnov2021-03-01
|
* Add common message text sanitization.Anton Khirnov2021-02-10
|
* Cosmetics, clean up importsAnton Khirnov2021-02-10
|
* settings/manager: do not report an exception when hooks file is missingAnton Khirnov2021-02-04
| | | | | | That is a normal situation, just log an info message. Raise an exception when the hooks file exists but cannot be loaded.
* helper: get rid of decode_string()Anton Khirnov2021-01-16
| | | | | | | | It just adds unnecessary type confusion. In most places where it is used, the types are always str, so it does nothing. In the few others, the encoding/decoding is better handled explicitly.
* helper: move pretty_datetime to the only place where it is usedAnton Khirnov2021-01-16
| | | | Also, drop now-unnecessary call to decode_string
* widgets/thread: add theming for quote lines in message bodyAnton Khirnov2020-02-19
|
* Remove unicode literals syntax from python2Lucas Hoffmann2019-11-06
|
* remove old new-style classes syntaxPatrick Totzke2019-05-27
| | | | | | 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
* restore support for regex in section namesWill Dietz2018-12-22
|
* rename get_account_by_address to account_matching_addressvrs2018-12-10
| | | | | ... since accounts' addresses can overlap and get_account_by_address promises too much. Also remove now-obsolete get_addresses.
* match addresses against accounts, not address listsvrs2018-12-10
| | | | fixes #1230, fixes an unfiled bug in clear_my_address()
* lazy reading of config files in SettingsManagerPatrick Totzke2018-06-21
| | | | | | | | | This prevents SettingsManager from reading the config files right when it is isntantiated and instead waits for the main module to call `read_[notmuch]config` with the right path. This should prevent problems with accidentally reading the default config paths despite being told otherwise (via commandline options)
* Merge branch 'master' into futurePatrick Totzke2018-06-19
|\
| * use importlib to load hooks code at startupPatrick Totzke2018-06-19
| | | | | | | | imp is deprecated in favor of importlib.
* | Remove old __future__ importsLucas Hoffmann2018-06-19
|/ | | | They are not needed for python >= 3.0.
* Merge branch 'master' into py3kDylan Baker2018-05-15
|\
| * better message on hook loading failureMatthieu Coudron2018-05-14
| | | | | | | | | | | | | | | | | | The typical current message looks like: unable to load hooks file:/home/teto/.config/alot/hooks.py without telling why python couldn't load the hook. This commit prints the exception, thus helping users to solve the issue (in my case encoding + wrong imports).
* | settings/manager: fix managerDylan Baker2018-03-01
| |
* | fix rebasing errorsDylan Baker2018-03-01
| |
* | py3k: use a concrete list when modifying dict.Dylan Baker2018-03-01
| |
* | py3k: dict.keys() doesn't return a list anymoreDylan Baker2018-03-01
|/
* Remove blank lines and fix docstrings.Julian Mehne2018-01-24
|
* Put expand_environment_and_home inside _expand_config_values.Julian Mehne2018-01-23
|
* Expand environment variables when reading the config file.Julian Mehne2018-01-23
|
* Rename get_env to get_xdg_env and clarify docstring.Julian Mehne2018-01-23
|
* Store settings in alot.rc.spec.Julian Mehne2018-01-21
| | | | | - allows users to use $XDG_CONFIG_HOME, as well - stores information in single places.
* Improve logging messages.Julian Mehne2018-01-21
|
* Fix empty XDG_* environment variables.Julian Mehne2018-01-21
| | | | | | | | | | | | Use fallback, if an enviroment variable is unset *or* empty. Bug: - XDG_CONFIG_HOME='' alot Problem: Does not find the configuration file (among others), because os.environ.get('XDG_CONFIG_HOME', '~/.config') returns '', instead of '~/.config'.
* De-duplicate code with helper function.Julian Mehne2018-01-21
|
* Move processing of setting to the right place.Julian Mehne2018-01-21
|
* Log unknown settings in configuration and theme files.Julian Mehne2018-01-08
|
* Clean up theme finder logic.Julian Mehne2018-01-07
| | | | | | | | | | - Replace directory check with file check - we only check for a single file, no need to check for existende of the directory separately. Also, this way we can distinguish between file validation error and file not found. - Be consistent: we stop iterating, if we find a file and it can be parsed. If we can't parse it, stop iterating as well, don't keep looking for the file.
* Give more context if reading of config file fails.Julian Mehne2017-12-06
|
* Allow regex special characters in tagstrings.Julian Mehne2017-12-02
| | | | | | | | | | | | | | | Fixes the following crashes: 1. tag completion with regex special chars :search tag:[<tab> 2. Changing tag representation of an (existing) tag with regex special chars: [tags] [[my**tag]] normal = '','', 'white','light red', 'white','#d66' 3. Contact completion with regex special chars and no external command: To:**foo<tab>
* Merge branch 'master' into fix/spellingPatrick Totzke2017-09-02
|\
| * pep8 fixesPatrick Totzke2017-09-01
| | | | | | | | | | This mostly shortens lines down to <=79 chars and fixes some other small things I found using the pep8 tool.
* | Fix some spelling mistakesLucas Hoffmann2017-09-02
|/
* Replace Exception.message with str(Exception)Dylan Baker2017-08-19
| | | | | | 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.
* Merge pull request #1095 from dcbaker/submit/use-default-theme-if-no-configDylan Baker2017-08-17
|\ | | | | Load default settings even if a user config doesn't exist
| * settings: Load spec file even if config file is undefined.Dylan Baker2017-08-16
| | | | | | | | | | | | | | | | | | | | This is necessary even if the config file is None to ensure that the spec file is loaded Also mock out the setting.const module in the docs, otherwise they'll fail to generate. Fixes #1094
| * settings/manager: remove duplicate _config from constructorDylan Baker2017-08-16
| | | | | | | | | | SettingsManager sets it's _config attribute to the exact same value twice in the constructor. This is wrong.
* | ignore realname part in get_account_by_addressPatrick Totzke2017-08-15
|/ | | | | This allows to simply pass the content of a messages' From-header value when determining an account to send/save/encrypt from.
* settings: do not store SettingsManager instance in __init__.pyDylan Baker2017-08-03
| | | | | | | This can create circular imports in unittests, which causes difficult to debug errors. Fixes #1076