legacy-dotfiles/offlineimap.py
2011-01-11 13:43:17 +01:00

9 lines
211 B
Python

def getuser(host):
import netrc
mynet = netrc.netrc()
return mynet.authenticators(host)[0]
def getpassword(host):
import netrc
mynet = netrc.netrc()
return mynet.authenticators(host)[2]