]> code.delx.au - offlineimap/commitdiff
/offlineimap/head: changeset 266
authorjgoerzen <jgoerzen>
Tue, 8 Oct 2002 20:18:11 +0000 (21:18 +0100)
committerjgoerzen <jgoerzen>
Tue, 8 Oct 2002 20:18:11 +0000 (21:18 +0100)
Fixed a syntax error found by Corey.

offlineimap/head/offlineimap/imaputil.py

index 062ea05364bce948daf4b22768cc215aa7cf9414..8537b69aa48d6913524e3e989bc593190a37c3f4 100644 (file)
@@ -101,7 +101,7 @@ def imapsplit(imapstring):
                 # what remains through the regular imapsplit parser.
                 # Recursion to the rescue.
                 arg = imapstring[i]
-                arg = re.replace('\{\d+\}$', '', arg)
+                arg = re.sub('\{\d+\}$', '', arg)
                 debug("imapsplit() non-string [%d]: Feeding %s to recursion" %\
                       arg)
                 retval.extend(imapsplit(imapstring[i]))