Markus Stumpf writes:
 > On Tue, Mar 23, 1999 at 12:02:32AM +0100, Peter van Dijk wrote:
 > > really work, the mailclient should check pop mail as often as possible.
 > 
 > PLEEEEEEEEEZ ... be careful with that.
 > We have customers that have a leased line but we manage their Mailboxes (POP3).
 > Sometimes they receive a "really big" Mail (e.g. 40 MB).
 > To transfer the file takes longer than the "check interval".
 > There is a nasty bug in some implementations of browsers.

Oh, well that *certainly* wouldn't work with the proposed system,
which we're suggesting should block on the LIST command (e.g.) or
maybe ....

Oh.  OH.  OH!!!   Hey!  I know how this could actually be implemented
without huge amounts of hackery!!  Instead of doing this:

        qmail-popup checkpassword qmail-pop3d

do this:

        qmail-popup checkpassword wait-for-new-mail qmail-pop3d

where wait-for-new-mail is a program that simply pauses waiting to
read that named pipe, which is written to by the suggested .qmail
file.  And wait-for-new-mail could be something as simple as this:

#!/bin/sh

read <Maildir/.waiton

This reason this works is because qmail-pop3d prints the OK for the
password command.  So, as long as the pop3 client is willing to wait
forever for the OK response (not a good assumption, I know), it'll
receive the new mail moments after it is delivered.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok |   There is good evidence
521 Pleasant Valley Rd. | +1 315 268 1925 voice |   that freedom is the
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   |   cause of world peace.

Reply via email to