From aca2a4458b201d44374c2ebf3f9d8ee87faa091a Mon Sep 17 00:00:00 2001 From: John Goerzen Date: Tue, 27 Mar 2007 08:21:17 +0100 Subject: [PATCH] UNDO: Added netrc support thanks to bboissin plus offlineimap at gmail dot com refs #14 --- offlineimap/repository/IMAP.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py index f0e23e7..33987e2 100644 --- a/offlineimap/repository/IMAP.py +++ b/offlineimap/repository/IMAP.py @@ -20,7 +20,7 @@ from Base import BaseRepository from offlineimap import folder, imaputil, imapserver from offlineimap.folder.UIDMaps import MappedIMAPFolder from offlineimap.threadutil import ExitNotifyThread -import re, types, os, netrc +import re, types, os from threading import * class IMAPRepository(BaseRepository): @@ -109,9 +109,6 @@ class IMAPRepository(BaseRepository): user = self.getconf('remoteuser') if user != None: return user - netrcentry = netrc.netrc().authentificator(self.gethost()) - if netrcentry: - return netrcentry[0] def getport(self): return self.getconfint('remoteport', None) @@ -149,11 +146,6 @@ class IMAPRepository(BaseRepository): password = fd.readline().strip() fd.close() return password - netrcentry = netrc.netrc().authenticators(self.gethost()) - if netrcentry: - user = self.getconf('remoteuser') - if user == None or user == netrcentry[0]: - return netrcentry[2] return None def getfolder(self, foldername):