From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66733 Path: news.gmane.org!not-for-mail From: Jake Colman Newsgroups: gmane.emacs.gnus.general Subject: Re: Exchange Updating Info Problem Date: Tue, 08 Apr 2008 22:28:53 -0400 Message-ID: <76lk3noj6i.fsf@dev-d01.ppllc.com> References: <76y77udh78.fsf@dev-d01.ppllc.com> <86wsn86my5.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207708246 7960 80.91.229.12 (9 Apr 2008 02:30:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2008 02:30:46 +0000 (UTC) Cc: ding@gnus.org To: Ted Zlatanov Original-X-From: ding-owner+M15216@lists.math.uh.edu Wed Apr 09 04:31:19 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JjQ5l-0003lP-I1 for ding-account@gmane.org; Wed, 09 Apr 2008 04:31:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JjQ47-0003H5-6e; Tue, 08 Apr 2008 21:29:35 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JjQ45-0003Gw-Tj for ding@lists.math.uh.edu; Tue, 08 Apr 2008 21:29:33 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JjQ3z-0002K2-Eh for ding@lists.math.uh.edu; Tue, 08 Apr 2008 21:29:33 -0500 Original-Received: from [69.7.239.34] (helo=dev-d01.ppllc.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JjQ49-0001KH-00 for ; Wed, 09 Apr 2008 04:29:37 +0200 Original-Received: from dev-d01.ppllc.com (localhost [127.0.0.1]) by dev-d01.ppllc.com (8.13.8+Sun/8.13.8) with ESMTP id m392SsCE019962; Tue, 8 Apr 2008 22:28:54 -0400 (EDT) Original-Received: (from colman@localhost) by dev-d01.ppllc.com (8.13.8+Sun/8.13.8/Submit) id m392Ssh3019961; Tue, 8 Apr 2008 22:28:54 -0400 (EDT) X-Authentication-Warning: dev-d01.ppllc.com: colman set sender to colman@ppllc.com using -f X-Attribution: Jake X-URL: http://www.principiapartners.com In-Reply-To: <86wsn86my5.fsf@lifelogs.com> (Ted Zlatanov's message of "Tue, 08 Apr 2008 16:44:50 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) XEmacs/21.4.17 (usg-unix-v, no MULE) X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66733 Archived-At: >>>>> "TZ" == Ted Zlatanov writes: TZ> On Thu, 03 Apr 2008 12:41:15 -0400 Jake Colman wrote: Jake> If I enter an Exchange IMAP group with alot of read messages, Gnus Jake> takes Jake> an awfully long time to process. My imap-log shows the following: TZ> ... Jake> The result if the "SEARCH SEEN" is a huuuuuge amount of data. It Jake> totally floods my imap-log. TZ> ... Jake> The problem appears to be the SEARCH SEEN command. TZ> For me it generates a long list of integers (UIDs) on an Exchange 2007 TZ> server (see at end). Are you seeing something different? If it's just TZ> the 15K article UID numbers, it's unlikely to be the main reason for the TZ> slowness on the Gnus side. I see much more than that in other TZ> non-Exchange IMAP groups. Could it be that Exchange itself is slow, or TZ> something else is causing the slowness in Gnus? If you can run this TZ> IMAP command directly against the Exchange server, that would be great. TZ> Here's a function to run an IMAP ALL search (untested but copied from TZ> working code) which will pop up in the debugger a list of all the TZ> messages in the mailbox and two timestamps around the SEARCH operation. TZ> You may have to play with it: TZ> (let ((user "you") ; edit TZ> (server "yourserver") ; these TZ> (password "yourpassword") ; parameters TZ> (mailbox "INBOX.test")) ; first TZ> (with-current-buffer (imap-open server nil 'ssl) TZ> (imap-authenticate user password) TZ> (imap-mailbox-select mailbox) TZ> (debug (format-time-string "before search: %T") TZ> (imap-search "ALL") TZ> (format-time-string "after search: %T")) TZ> (imap-close))) TZ> Hit `q' to close the debugger. If this is fast, then the "UID SEARCH TZ> SEEN" IMAP command is probably fast too. TZ> Simon, if my approach is suspect, please let us know. Ted, When I evaled your function, I get the following error after it loads the debugger: Wrong type argument: stringp, nil Is the imap-search command incorrect? ...Jake -- Jake Colman Director of Software Development Principia Partners LLC 101 West Elm Street Suite 620 Conshohocken, PA 19428 +1 (610) 755-9786 www.principiapartners.com