Nigel Mundy wrote:
Subject: Re: mailgw without T-lines
> Method 1: Remove T: Lines from both Outbound Bulletins and Private Mail:
>
> Another way - To make the change only affect personal mail:
in response to the following:
> > 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 originally did this, but I've now made in configurable with an (optional)
"-t" parameter to smtp_rcv.
So, with sendmail, you can change something like this in your mailer
definition:
Mpbbs, P=/usr/local/sbin/smtp_rcv, F=lFDMn, S=10/30, R=40,
A=smtp_rcv $f $u $u@$h
to
Mpbbs, P=/usr/local/sbin/smtp_rcv, F=lFDMn, S=10/30, R=40,
A=smtp_rcv -t $f $u $u@$h
and smtp_rcv will not generate the T: lines (after you restart sendmail :-).
Here are my patches: (against 0.3.1) - I hope they are of interest.
73
Steve, vk5asf
To nntp_rcv.c...................................................
16d15
< int printTline=1;
To pbbs_out.c.................................................
15d14
< extern int printTline;
139,140c138
<
< if ((art->from) && (printTline) )
---
> if (art->from)
142c140
< if ((art->to) && (printTline) )
---
> if (art->to)
144c142
< if ((art->newsgroups) && (printTline) )
---
> if (art->newsgroups)
146c144
< if ((art->mid) && (printTline) )
---
> if (art->mid)
149d146
<
To pbbs_rcv.c......................................................
17d16
< int printTline=1;
To smtp_rcv.c......................................................
12d11
< #include <unistd.h>
15d13
< int printTline=1, cmdparam;
97,105c95,97
<
< opterr = 0;
< if ( (cmdparam=getopt(argc, argv, "t")) != EOF) {
< if (cmdparam == 't') {
< printTline = 0;
< }
< }
< if ( (argc < 4) || (cmdparam == '?') ){
< say(L_ERR, "Wrong number (%i) / invalid parameters. Usage: smtp_rcv [-t] f
romaddr tohost toaddr", argc+optind-1);
---
>
> if (argc < 4) {
> say(L_ERR, "Wrong number (%i) of parameters. Usage: smtp_rcv fromaddr
tohost toaddr", argc);
109c101
< process(argv[optind], argv[optind+1], argv[optind+2]);
---
> process(argv[1], argv[2], argv[3]);