From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/26551 Path: main.gmane.org!not-for-mail From: Jason R Mastaler Newsgroups: gmane.emacs.gnus.general Subject: Re: maildir support in Pterodactyl Gnus Date: 09 Nov 1999 16:36:41 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: References: <5bzowoo9nq.fsf@giga.cs.rochester.edu> <2nzowowf06.fsf@tiger.jia.vnet> <2nvh7cw9ru.fsf@tiger.jia.vnet> <2niu3cw4ut.fsf@tiger.jia.vnet> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035163738 19966 80.91.224.250 (21 Oct 2002 01:28:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:28:58 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id SAA24370 for ; Tue, 9 Nov 1999 18:38:36 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id RAB01942; Tue, 9 Nov 1999 17:38:26 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 09 Nov 1999 17:38:17 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id RAA07950 for ; Tue, 9 Nov 1999 17:38:03 -0600 (CST) Original-Received: from smtp7.atl.mindspring.net (smtp7.atl.mindspring.net [207.69.128.51]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id SAA24345 for ; Tue, 9 Nov 1999 18:37:17 -0500 (EST) Original-Received: from ashanti.mastaler.com (pool-207-205-183-133.phnx.grid.net [207.205.183.133]) by smtp7.atl.mindspring.net (8.8.5/8.8.5) with SMTP id SAA25914 for ; Tue, 9 Nov 1999 18:37:14 -0500 (EST) Original-Received: (qmail 19430 invoked from network); 9 Nov 1999 23:36:47 -0000 Original-Received: from unknown (HELO bodhi.mastaler.com.mastaler.com) (172.18.3.15) by 172.18.3.10 with SMTP; 9 Nov 1999 23:36:47 -0000 Original-To: ding@gnus.org X-Face: #dTln?AHy?@V&.5OHQ?JSP?PI%g[Mll2?cy7O$b89Bl=0cSy1&U1>m]!hWbnzq976"\ In-Reply-To: Shenghuo ZHU's message of "09 Nov 1999 01:34:18 -0500" Original-Lines: 29 User-Agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) XEmacs/21.1 (20 Minutes to Nikko) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:26551 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:26551 Shenghuo ZHU writes: > I think it is a kind of NFS bug. I guess The time span between rename > and read is too short for NFS. Try the following code, see whether it > helps. I think you are right. I duplicated this setup on a local filesystem and had no problems. > (defun mail-source-fetch-maildir (source callback) > "Fetcher for maildir sources." > (mail-source-bind (maildir source) > (let ((found 0) > (mail-source-string (format "maildir:%s" path))) > (dolist (file (directory-files path t)) > (when (and (file-regular-p file) > (not (mail-source-movemail file mail-source-crash-box))) > (incf found (mail-source-callback callback file)))) > found))) This code fixes the problem, but now when I incorporate new mail, the contents of the maildir files are cleared (zero bytes), but they are not being removed. $ ls -l Maildir/new total 0 -rw------- 1 jason systaff 0 Nov 9 16:23 942189791.22909.agave.alliance.unm.edu -rw------- 1 jason systaff 0 Nov 9 16:25 942189909.22917.agave.alliance.unm.edu