fixed tag generation to avoid null tags

This commit is contained in:
Piers Lauder 2005-07-05 04:20:07 +00:00
parent 9e43acf2f3
commit 2dfc168bc3
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ Public functions: Internaldate2tuple
# PROXYAUTH contributed by Rick Holbert <holbert.13@osu.edu> November 2002.
# GET/SETANNOTATION contributed by Tomas Lindroos <skitta@abo.fi> June 2005.
__version__ = "2.56"
__version__ = "2.57"
import binascii, os, random, re, socket, sys, time
@ -165,7 +165,7 @@ class IMAP4:
# Create unique tag for this session,
# and compile tagged response matcher.
self.tagpre = Int2AP(random.randint(0, 31999))
self.tagpre = Int2AP(random.randint(4096, 65535))
self.tagre = re.compile(r'(?P<tag>'
+ self.tagpre
+ r'\d+) (?P<type>[A-Z]+) (?P<data>.*)')