-f command line option only works on the untranslated remote names
Previously folderfilters had to match both the local AND remote name which caused unwanted behavior in combination with nametrans rules. Make it operate on the untranslated remote names now and clarify in the command line option help text. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
bfb7a79d6b
commit
3c481d9ce5
@ -39,5 +39,10 @@ Changes
|
|||||||
sphinx). The resulting user docs are in `docs/html`. You can also
|
sphinx). The resulting user docs are in `docs/html`. You can also
|
||||||
only create the man pages with `make man` in the `docs` dir.
|
only create the man pages with `make man` in the `docs` dir.
|
||||||
|
|
||||||
|
* -f command line option only works on the untranslated remote
|
||||||
|
repository folder names now. Previously folderfilters had to match
|
||||||
|
both the local AND remote name which caused unwanted behavior in
|
||||||
|
combination with nametrans rules. Clarify in the help text.
|
||||||
|
|
||||||
Bug Fixes
|
Bug Fixes
|
||||||
---------
|
---------
|
||||||
|
@ -121,12 +121,10 @@ class OfflineImap:
|
|||||||
help="Log to FILE")
|
help="Log to FILE")
|
||||||
|
|
||||||
parser.add_option("-f", dest="folders", metavar="folder1,[folder2...]",
|
parser.add_option("-f", dest="folders", metavar="folder1,[folder2...]",
|
||||||
help=
|
help="Only sync the specified folders. The folder names "
|
||||||
"Only sync the specified folders. The folder names "
|
"are the *untranslated* foldernames of the remote repository. "
|
||||||
"are the *untranslated* foldernames. This "
|
"This command-line option overrides any 'folderfilter' "
|
||||||
"command-line option overrides any 'folderfilter' "
|
"and 'folderincludes' options in the configuration file.")
|
||||||
"and 'folderincludes' options in the configuration "
|
|
||||||
"file.")
|
|
||||||
|
|
||||||
parser.add_option("-k", dest="configoverride",
|
parser.add_option("-k", dest="configoverride",
|
||||||
action="append",
|
action="append",
|
||||||
@ -269,12 +267,10 @@ class OfflineImap:
|
|||||||
for accountname in accounts.getaccountlist(config):
|
for accountname in accounts.getaccountlist(config):
|
||||||
account_section = 'Account ' + accountname
|
account_section = 'Account ' + accountname
|
||||||
remote_repo_section = 'Repository ' + \
|
remote_repo_section = 'Repository ' + \
|
||||||
config.get(account_section, 'remoterepository')
|
config.get(account_section, 'remoterepository')
|
||||||
local_repo_section = 'Repository ' + \
|
config.set(remote_repo_section, "folderfilter", folderfilter)
|
||||||
config.get(account_section, 'localrepository')
|
config.set(remote_repo_section, "folderincludes",
|
||||||
for section in [remote_repo_section, local_repo_section]:
|
folderincludes)
|
||||||
config.set(section, "folderfilter", folderfilter)
|
|
||||||
config.set(section, "folderincludes", folderincludes)
|
|
||||||
|
|
||||||
if options.logfile:
|
if options.logfile:
|
||||||
sys.stderr = self.ui.logfile
|
sys.stderr = self.ui.logfile
|
||||||
|
Loading…
Reference in New Issue
Block a user