tags 648863 + upstream patch quit Ansgar Burchardt wrote:
> it would be nice if I could use "~" to refer to my home directory in > .offlineimaprc. Currently I have to expand this myself, ie. > > sslclientcert = ~/foo.pem > > does not work, but > > sslclientcert = /home/ansgar/foo.pem > > does. How about this patch (untested)? diff --git i/offlineimap/repository/IMAP.py w/offlineimap/repository/IMAP.py index 5ad787a3..1bda3967 100644 --- i/offlineimap/repository/IMAP.py +++ w/offlineimap/repository/IMAP.py @@ -154,7 +154,10 @@ class IMAPRepository(BaseRepository): return self.getconfboolean('ssl', 0) def getsslclientcert(self): - return self.getconf('sslclientcert', None) + clientcertfile = self.getconf('sslclientcert', None) + if clientcertfile is None: + return None + return os.path.expanduser(clientcertfile) def getsslclientkey(self): return self.getconf('sslclientkey', None) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org