rmail header needs adjusting offset
David Relson
relson at osagesoftware.com
Wed Dec 17 15:21:42 CET 2003
On Wed, 17 Dec 2003 14:46:36 +0100
Stefan Bellon <sbellon at sbellon.de> wrote:
> David Relson wrote:
...[snip]...
> What about this idea: In write_header, do one pass over the header
> just to find out by how much the header gets longer than the original
> one and remember the difference. Then do the following:
>
> switch (passmode) {
> case PASS_MEM:
> *((textdata_t**)rfarg) = textblock_head();
> break;
> case PASS_SEEK:
> rewind(rfarg);
> break;
> default:
> abort();
> }
>
> Afterwards, use the code that is in write_header at present and add
> the above stored difference to the rmail header like you suggested
> earlier.
>
> Would this work?
Sounds good. I can't see any reason why it wouldn't work
More information about the bogofilter-dev
mailing list