From: "Boyd Roberts" <boyd@fr.inter.net>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] I still dont understand...
Date: Mon, 16 Jul 2001 22:04:29 +0200 [thread overview]
Message-ID: <024301c10e32$85ca8400$3cf7c6d4@SOMA> (raw)
In-Reply-To: <20010716195334.36D2F19A32@mail.cse.psu.edu>
From: "David Gordon Hogan" <dhog@plan9.bell-labs.com>
> Note that there is another bug -- upas/fs
> will die if your POP mbox has 0 messages. I haven't got
> around to fixing that.
can't be too hard to fix.
i assume it issues a STAT. this is how you do it in limbo:
- (e, s) = request(CMD_STAT, nil);
- case e {
- ERR =>
- return(s, big 0);
- OK =>
- if (debug)
- sys->print("%s\n", s);
- }
-
- messages := big 0;
- size := big 0;
- (n, l) := sys->tokenize(s, " ");
- case n {
- 1 =>
- sys->print("%d message%s for '%s@%s', maildrop size unknown.\n", int messages, plural(messages), user, host);
- messages = big hd l;
-
- 2 =>
- messages = big hd l;
- size = big hd tl l;
-
- * =>
- return (sys->sprint("unknown number of messages for '%s@%s'.\n", user, host), big 0);
- }
then loop over messages.
next prev parent reply other threads:[~2001-07-16 20:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-16 19:53 David Gordon Hogan
2001-07-16 19:58 ` Michael Grunditz
2001-07-16 20:02 ` Michael Grunditz
2001-07-16 20:04 ` Boyd Roberts [this message]
2001-07-16 20:00 ` Michael Grunditz
-- strict thread matches above, loose matches on Subject: below --
2001-07-16 20:39 David Gordon Hogan
2001-07-17 0:55 ` Boyd Roberts
2001-07-16 20:33 David Gordon Hogan
2001-07-16 19:33 Michael Grunditz
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='024301c10e32$85ca8400$3cf7c6d4@SOMA' \
--to=boyd@fr.inter.net \
--cc=9fans@cse.psu.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).