summaryrefslogtreecommitdiffstats
path: root/.offlineimap.py
blob: a63709bbf83799989f8f66f0ff054024c3e8201f (plain)
1
2
3
4
5
6
7
8
9
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]