I Mis-sent the first message to the mail-list outbound address.... Let's
try again.
There are two ways of doing this. Both involve editing pbbs_out.c (around
line 125), recompiling and then reloading. The function is common to both
news and personal mail.
Method 1: Remove T: Lines from both Outbound Bulletins and Private Mail:
Change:
if (art->from)
fprintf(imf, "T:From: %s\n", art->from);
if (art->to)
fprintf(imf, "T:To: %s\n", art->to);
if (art->newsgroups)
fprintf(imf, "T:Newsgroups: %s\n", art->newsgroups);
if (art->mid)
fprintf(imf, "T:Message-Id: %s\n", art->mid);
To:
/* if (art->from)
fprintf(imf, "T:From: %s\n", art->from);
if (art->to)
fprintf(imf, "T:To: %s\n", art->to);
if (art->newsgroups)
fprintf(imf, "T:Newsgroups: %s\n", art->newsgroups);
if (art->mid)
fprintf(imf, "T:Message-Id: %s\n", art->mid);
*/
This comments out all T: headers. To only comment out one type, place a //
in front of the if at the start of the line instead
eg:
// if (art->from)
fprintf(imf, "T:From: %s\n", art->from);
// if (art->to)
fprintf(imf, "T:To: %s\n", art->to);
will remove out all T:To and T:From Lines.
Another way - To make the change only affect personal mail:
Change:
if (art->from)
fprintf(imf, "T:From: %s\n", art->from);
if (art->to)
fprintf(imf, "T:To: %s\n", art->to);
To:
if (art->from) && (pb->mtype == MT_B)
fprintf(imf, "T:From: %s\n", art->from);
if (art->to) && (pb->mtype == MT_B)
fprintf(imf, "T:To: %s\n", art->to);
This will still print full details for bulletins.
Hope this helps.
/\/igel.
G1TDM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
cc: (bcc: NIGEL MUNDY)
bcc: NIGEL MUNDY
Subject: Re: mailgw without T-lines
Probably not the answer you were looking for, but, my 2 cents worth:
The trivial answer is to configure the tool you use to read the message to
ignore that header.
An example:
#~/.elm/elmrc
# what headers I DON'T want to see, ever.
weedout = "X-UIDL:" "*end-of-user-headers*"
> Hi,
>
> I'm using mailgw on our local BBS. It works just fine but I would like a
> small change on the import of smtp mail.
>
> When smtp mail ends up in the BBS it has 2 T-lines in the body of the
> message.
> I would like to have these not appear in the message.
>
> I don't know C-language, but I tried to modify the source code
> anyway.... but without any luck :-(
>
> Kan anybody tell what I need to change to get rid of these T-line?
> A diff would be perfect :-)
>
> 73, Arno pe1icq
>
----------------------------------------------------------
David M. Ritzenthaler http://www.eecs.wsu.edu/~ritz
[EMAIL PROTECTED] (509)335-7301
Washington State University Work Fax (509)335-3818
School of Elect. Engr & Comp Sci. - Pullman, WA 99164-2752
----------------------------------------------------------
___________________________________________________________________________
_____
---------------------------------------------------------
This email is confidential to the ordinary user of the
e-mail address to which it was addressed. If you are not
the intended recipient, please notify the sender
IMMEDIATELY on (44) 171 638 5858 and delete the message
from all locations in your computer. You should not copy
this email or use it for any purpose, or disclose its
contents to any person : to do so may be unlawful.
Email is an informal method of communication and is
subject to possible data corruption, either accidentally
or on purpose. Flemings is unable to exercise control
over the content of information contained in
transmissions made via the Internet. For these reasons
it will normally be inappropriate to rely on information
contained on email without obtaining written confirmation
of it.
----------------------------------------------------------
___________________________________________________________________________
_____
---------------------------------------------------------
This email is confidential to the ordinary user of the
e-mail address to which it was addressed. If you are not
the intended recipient, please notify the sender
IMMEDIATELY on (44) 171 638 5858 and delete the message
from all locations in your computer. You should not copy
this email or use it for any purpose, or disclose its
contents to any person : to do so may be unlawful.
Email is an informal method of communication and is
subject to possible data corruption, either accidentally
or on purpose. Flemings is unable to exercise control
over the content of information contained in
transmissions made via the Internet. For these reasons
it will normally be inappropriate to rely on information
contained on email without obtaining written confirmation
of it.
----------------------------------------------------------