Despite much talking about dropping and resubmitting a message,
there is no way a global filter can _cleanly_ mark all recipients
as delivered.

Looking at the code in submit2.C reveals that, before calling a
global filter, ctlfile is flushed so that the filter can read it,
but it's not closed, so that the filter cannot write to it.

As Roland said a couple of weeks ago,
> Messing around with the control- and datafiles is still an ugly hack though,

Apparently, after the filter gets back, record types "8", "U", "V", "w",
"E", "p" "W" and "A" may be writen on ctlfile. Estimating an upper bound
of 32 bytes per record (aberage) it may seem that we can get by with 256
bytes for that, i.e, for each ctlfile,

   fprintf(ctl, "%256s\n", "");
   for (n = 0; n < r_on_this_ctlfile; ++n)
      fprintf(ctl, "I%d R dropped.\nS%d %ld\n", n, n, (long)time);

Is that the ugly hack?
Is it safe enough?

It's a pity the NORDU meeting was aborted, for when Sam writes
I cannot see where he keeps his tongue ...

>
> Mark every recipient of the message as delivered.
> 
> --
> Sam


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to