From a2ce2c5b0d4896e613203b3500edaeeb1ebdd3fd Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 2 Mar 2012 13:16:59 +0530 Subject: [PATCH] restrict number of support ticket emails --- py/webnotes/utils/email_lib/receive.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py/webnotes/utils/email_lib/receive.py b/py/webnotes/utils/email_lib/receive.py index 053f37d47f..a07ed1f6ff 100644 --- a/py/webnotes/utils/email_lib/receive.py +++ b/py/webnotes/utils/email_lib/receive.py @@ -153,6 +153,7 @@ class POP3Mailbox: self.connect() num = len(self.pop.list()[1]) + if num > 25: num = 25 for m in range(num): msg = self.pop.retr(m+1) try: