-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 20 Jan 00, at 10:41, Petr Novotny wrote:
> Now I am trying to get rid of the mid-inserted
> Delivered-To: alias-mailsize-something@somewhere
> line. I wouldn't care about this line, but it matters for forwarding
> (This_message_is_looping:_It_alrea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 19 Jan 00, at 14:29, [EMAIL PROTECTED] wrote:
> ugh... two seeks? Stat() is sooo much nicer ;-)
>
> #include
> #include
> #include
> #include
>
> int main(void) {
> struct stat st;
> if (fstat(0, &st) < 0) _exit(111);
> if (lseek(0,0,S
Indeed. One of the neat things about mail delivered via qmail-local
is that stdin is *the* queue file.
That it's a file is confirmed by this sentence in the qmail-local manpage.
The standard input for qmail-local must be a seekable
file, so that qmail-local can read it more th
On Wed, 19 Jan 2000 20:05:24 + (GMT) , [EMAIL PROTECTED] writes:
> #include
> #include
> void main(void)
> {
>long len=0L;
>
>fseek( stdin, 0L, SEEK_END);
>len=ftell(stdin);
>fseek( stdin, 0L, SEEK_SET);
>if (len>=128000L)
> system("/var/qmai
On Wed, 19 Jan 2000, Petr Novotny wrote:
> maildecide is a program I have written in C which counts the bytes,
> rewinds stdin and invokes /var/qmail{2,3}/bin/forward. I didn't
> succeed with condredirect - it fails to pass the $HOST to the
> redirected address.
>
> maildecide.c looks like th
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
it gave me a bit of trouble to actually implement the splitting. Here's
what I did (after creating a qmail2 and qmail3 trees):
1. Have a
:alias-mailsize
catchall entry in qmail/control/virtualdomains.
2. In ~alias/.qmail-mailsize-default, I ha