From b5a4925efce1edce8d794267be4bc1890328f36f Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Wed, 30 Nov 2016 18:42:53 +0100 Subject: [PATCH] Enable environment variable expansion on Repository.localfolders Commit e51ed80e claims to add tilde and environment variable expansion to multiple locations including Repository.localfolders. However, this particular options seems to have been missed in that commit, and apparently no one noticed till date Signed-off-by: Darshit Shah Signed-off-by: Nicolas Sebrecht --- offlineimap/repository/Maildir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/repository/Maildir.py b/offlineimap/repository/Maildir.py index f9c4a5a..0db728c 100644 --- a/offlineimap/repository/Maildir.py +++ b/offlineimap/repository/Maildir.py @@ -71,7 +71,7 @@ class MaildirRepository(BaseRepository): os.utime(cur_dir, (cur_atime, os.path.getmtime(cur_dir))) def getlocalroot(self): - xforms = [os.path.expanduser] + xforms = [os.path.expanduser, os.path.expandvars] return self.getconf_xform('localfolders', xforms) def debug(self, msg):