From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: Re: maildir support in Pterodactyl Gnus
Date: 10 Nov 1999 17:00:29 -0500 [thread overview]
Message-ID: <5bk8nqj9c2.fsf@giga.cs.rochester.edu> (raw)
In-Reply-To: Jason R Mastaler's message of "09 Nov 1999 16:36:41 -0700"
>>>>> "Jason" == Jason R Mastaler <jason@4b.org> writes:
Jason> Shenghuo ZHU <zsh@cs.rochester.edu> 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.
Jason> I think you are right. I duplicated this setup on a local filesystem
Jason> 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)))
Jason> This code fixes the problem, but now when I incorporate new mail, the
Jason> contents of the maildir files are cleared (zero bytes), but they are
Jason> not being removed.
Jason> $ ls -l Maildir/new
Jason> total 0
Jason> -rw------- 1 jason systaff 0 Nov 9 16:23 942189791.22909.agave.alliance.unm.edu
Jason> -rw------- 1 jason systaff 0 Nov 9 16:25 942189909.22917.agave.alliance.unm.edu
That's a result of mail-source-movemail. I create a new function and
add a new parameter for maildir in pGnus 0.99 (Now, it is still in
CVS).
After you upgrade to 0.99, try use
(maildir :function mail-source-movemail-and-remove)
instead of (maildir).
--
Shenghuo ZHU
next prev parent reply other threads:[~1999-11-10 22:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-08 20:28 Jason R. Mastaler
1999-11-08 23:17 ` Shenghuo ZHU
1999-11-08 23:31 ` Jason R Mastaler
1999-11-09 2:55 ` Shenghuo ZHU
1999-11-09 4:29 ` Jason R Mastaler
1999-11-09 4:48 ` Shenghuo ZHU
1999-11-09 6:01 ` Jason R Mastaler
1999-11-09 6:34 ` Shenghuo ZHU
1999-11-09 23:36 ` Jason R Mastaler
1999-11-10 22:00 ` Shenghuo ZHU [this message]
1999-11-16 0:02 ` Jason R Mastaler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5bk8nqj9c2.fsf@giga.cs.rochester.edu \
--to=zsh@cs.rochester.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).