legacy-dotfiles/offlineimap.py

10 lines
211 B
Python
Raw Normal View History

2011-01-11 13:43:17 +01:00
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]