From: Erik Selberg <speed@cs.washington.edu>
Cc: ding@ifi.uio.no
Subject: Re: Symbolic Links for mailboxes in Gnus
Date: Mon, 04 Dec 1995 15:47:58 PST [thread overview]
Message-ID: <199512042347.PAA26948@wally.cs.washington.edu> (raw)
In-Reply-To: steve@miranova.com's message of 04 Dec 1995 13:09:37 -0800
Steven L Baur writes:
> 2) If you are not using procmail, the the following code loses when
> the mailbox is a symbolic link (from nnmail-get-new-mail):
> ;; The we go through all the existing spool files and split the
> ;; mail from each.
> (while spools
> (setq spool (pop spools))
> ;; We read each spool file if either the spool is a POP-mail
> ;; spool, or the file exists. We can't check for the
> ;; existance of POPped mail.
> (when (or (string-match "^po:" spool)
> (and (file-exists-p spool)
>>>>> (> (nth 7 (file-attributes spool)) 0)))
> The idiom (nth 7 (file-attributes ...)) returns the file size, but
> with a symbolic link, it will return the length in characters of the
> filename the link is pointing to (always > 0).
> In order to make this code work with symbolic links it must be changed to:
> (> (nth 7 (file-attributes (file-truename spool))) 0)))
> Now the code will work with symbolic links, which also seem to not
> bother movemail.
yup... just tried it, and things are working well without the patch I
previously posted.
> Do we really want Gnus to encourage this unsafe practice?
I misunderstand how this can be termed "unsafe." Could you elaborate?
Here at UW, it's nearly a necessity because of our completely outdated
spool system.
-Erik
next prev parent reply other threads:[~1995-12-04 23:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-12-03 5:22 Found no mail! [sgnus 0.17] Steven L. Baur
1995-12-03 7:29 ` Steven L. Baur
1995-12-03 22:25 ` Erik Selberg
[not found] ` <m2ivjxllq9.fsf@diana.miranova.com>
[not found] ` <199512040241.SAA20522@meitner.cs.washington.edu>
[not found] ` <m2bupo39qu.fsf@diana.miranova.com>
1995-12-04 20:06 ` Erik Selberg
1995-12-04 21:09 ` Symbolic Links for mailboxes in Gnus Steven L. Baur
1995-12-04 23:47 ` Erik Selberg [this message]
1995-12-04 1:50 ` Found no mail! [sgnus 0.17] Lars Magne Ingebrigtsen
1995-12-04 3:52 ` Steven L. Baur
1995-12-04 16:26 ` General sgnus 0.17 problems [Was: Found no mail! [sgnus 0.17]] Sten Drescher
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=199512042347.PAA26948@wally.cs.washington.edu \
--to=speed@cs.washington.edu \
--cc=ding@ifi.uio.no \
/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).