legacy-dotfiles/.offlineimap.py
2011-07-28 00:25:27 +02: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]