GuiImap: don't show email password

This commit is contained in:
steffen123 2010-08-10 06:14:15 +02:00
parent 9dff572385
commit ced47999bb

View File

@ -48,7 +48,7 @@ class GuiImapFetcher (threading.Thread):
self.statusLabel=gtk.Label("If you change the config you must save before importing") self.statusLabel=gtk.Label("If you change the config you must save before importing")
self.mainVBox.pack_end(self.statusLabel, expand=False, padding=4) self.mainVBox.pack_end(self.statusLabel, expand=False, padding=4)
self.passwords={}
self.displayConfig() self.displayConfig()
self.mainVBox.show_all() self.mainVBox.show_all()
@ -70,7 +70,12 @@ class GuiImapFetcher (threading.Thread):
toSave.host=columns[2].get_text() toSave.host=columns[2].get_text()
toSave.username=columns[3].get_text() toSave.username=columns[3].get_text()
if columns[4].get_text()=="***":
toSave.password=self.passwords[code]
else:
toSave.password=columns[4].get_text() toSave.password=columns[4].get_text()
toSave.folder=columns[5].get_text() toSave.folder=columns[5].get_text()
if columns[6].get_active() == 0: if columns[6].get_active() == 0:
@ -119,11 +124,20 @@ class GuiImapFetcher (threading.Thread):
label=gtk.Label(field) label=gtk.Label(field)
box.add(label) box.add(label)
for field in (config.host, config.username, config.password, config.folder): for field in (config.host, config.username):
entry=gtk.Entry() entry=gtk.Entry()
entry.set_text(field) entry.set_text(field)
box.add(entry) box.add(entry)
entry=gtk.Entry()
self.passwords[email]=config.password
entry.set_text("***")
box.add(entry)
entry=gtk.Entry()
entry.set_text(config.folder)
box.add(entry)
sslBox = gtk.combo_box_new_text() sslBox = gtk.combo_box_new_text()
sslBox.append_text("Yes") sslBox.append_text("Yes")
sslBox.append_text("No") sslBox.append_text("No")