Johan Almqvist wrote:
>
> On Mon, Jan 08, 2001 at 10:00:24PM +0100, BOFH wrote:
> > is there any patch, which add some text at the bottom of each sending
> > message?
>
> It can be done using the QMAILQUEUE patch by Bruce G - but it's dangerous
> as it may break MIME. Or complicated, as you'll have to parse the MIME
> message, add the footer and then en-MIME it again.
>
> -Johan
if you don't mind jamming it on at end of MIME,you could open up qmail-remote
and stick it within blast(), like this:
char *Footer = "\r\nAlmqvist Industries makes no claims of\r\n"
"the accurracy of any claims made by any of\r\n"
"our employees.\r\n"; /* new */
void blast()
{
int r;
char ch;
for (;;) {
r = substdio_get(&ssin,&ch,1);
if (r == 0) break;
if (r == -1) temp_read();
if (ch == '.')
substdio_put(&smtpto,".",1);
while (ch != '\n') {
substdio_put(&smtpto,&ch,1);
r = substdio_get(&ssin,&ch,1);
if (r == 0) perm_partialline();
if (r == -1) temp_read();
}
substdio_put(&smtpto,"\r\n",2);
}
substdio_put(&smtpto,Footer,strlen(Footer),102); /* new */
flagcritical = 1;
substdio_put(&smtpto,".\r\n",3);
substdio_flush(&smtpto);
}
Does that work?
--
David Nicol 816.235.1187 [EMAIL PROTECTED]
"Warning: may contain incomprehensible strings of random letters"