Add support for XDG Base Directory Specification

$XDG_CONFIG_HOME/offlineimap/config will now be tried before
the canonical ~/.offlineimaprc.

Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
This commit is contained in:
Eygene Ryabinkin
2014-05-07 00:40:59 +04:00
parent d96af192ed
commit 5150de5514
5 changed files with 38 additions and 4 deletions

View File

@ -63,6 +63,9 @@ set, and you can read about other features later with `offlineimap.conf`.
Check out the `Use Cases`_ section for some example configurations.
If you want to be XDG-compatible, you can put your configuration file into
`$XDG_CONFIG_HOME/offlineimap/config`.
OPTIONS
=======

View File

@ -77,6 +77,15 @@ based in instructions submitted by Chris Walker::
That URL also has more details on making OfflineIMAP work with Windows.
Does OfflineIMAP supports XDG Base Directory specification?
-----------------------------------------------------------
Yes. We are trying to use `$XDG_CONFIG_HOME/offlineimap/config`
as the primary configuration file, falling back to `~/.offlineimaprc`
if configuration file location was not explicitely specified at the
command line.
Does OfflineIMAP support mbox, mh, or anything else other than Maildir?
-----------------------------------------------------------------------