aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2008-04-08 19:10:41 +0000
committerNikolaus Schulz <microschulz@web.de>2008-04-08 19:10:41 +0000
commit681fd0c527175f0fe1906c577c91b82b37a043d6 (patch)
treed8b9ac7819cc60a605b6d18c18233185a3432206
parente5b6397dd52e8ce0214a3a18801f61bb5a5fe261 (diff)
downloadarchivemail-681fd0c527175f0fe1906c577c91b82b37a043d6.tar.gz
archivemail-681fd0c527175f0fe1906c577c91b82b37a043d6.tar.bz2
archivemail-681fd0c527175f0fe1906c577c91b82b37a043d6.zip
Minor, local variable renaming.
-rwxr-xr-xarchivemail.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/archivemail.py b/archivemail.py
index 13e6ffb..558efc0 100755
--- a/archivemail.py
+++ b/archivemail.py
@@ -1539,22 +1539,22 @@ def imap_get_namespace(srv):
return ns
-def imap_smart_select(imap_srv, imap_folder):
+def imap_smart_select(srv, mailbox):
"""Select the given mailbox on the IMAP server, correcting an invalid
mailbox path if possible."""
- imap_folder = imap_find_mailbox(imap_srv, imap_folder)
+ mailbox = imap_find_mailbox(srv, mailbox)
roflag = options.dry_run or options.copy_old_mail
# Work around python bug #1277098 (still pending in python << 2.5)
if not roflag:
roflag = None
if roflag:
- vprint("examining imap folder '%s' read-only" % imap_folder)
+ vprint("examining imap folder '%s' read-only" % mailbox)
else:
- vprint("selecting imap folder '%s'" % imap_folder)
- result, response = imap_srv.select(imap_folder, roflag)
+ vprint("selecting imap folder '%s'" % mailbox)
+ result, response = srv.select(mailbox, roflag)
if result != 'OK':
unexpected_error("selecting '%s' failed; server says: '%s'." \
- % (imap_folder, response[0]))
+ % (mailbox, response[0]))
def imap_find_mailbox(srv, mailbox):