🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #316075

Re: ping - Grant

#316075
From: Grant Taylor
Date: Mon, 06 Sep 2021 18:03
53 lines
2959 bytes
On 9/6/21 10:15 AM, Stefan Claas wrote:
> IIRC you have good knowledge of procmail.

I use procmail.  I don't know that I'm a master of it.  I have 594 
active recipes.  ;-)

> My goal however is that the modified message gets not saved and 
> instead should be piped to a sendmail like program as new message.

This is definitely possible.

> The hole procedure should act as gateway, say for example I could use 
> an email provider like Gmail and send from Gmail's web interface my 
> message to an m2n Gateway, knowing that Gmail does not provide extra 
> email Header settings, so that they must be included in the parsed 
> message body.

Please read about and use the Auto-Submitted: header.  I'd expect 
something like what you're talking about would use the "Auto-Submitted: 
auto-generated" header.  --  It's one of those things to do to make the 
email cleaner.

> The propblem I have is that the recipe is working, i.e. saving the 
> sed output to a file, but fpiping the sed output to a sendmail like 
> program does not work.

As Jen Dershm suggested, I'd do this as a separate script that procmail 
delivers the message to.  This has two primary benefits:

1)  You aren't limited to actions that procmail can do native.
2)  You inherently don't have copies of the original message hanging around.

> I also must admit I am no procmail user and therfore lack the 
> knowledge.

That's what questions are for.  ;-

> And advise or help would be much appreciated.

See the sample / minimal recipe that matches something and delivers the 
message into a script.

Please add the Auto-Submitted: header.

Finally, you might consider (ab)using the List-* headers, mainly 
List-Help: or List-Owner: headers, as a way to direct humans to 
communicate with you as the operator of this gateway.  }:-)



-- 
Grant. . . .
unix || die
Technical Details
Message-ID: <sh5lb9$29k$1@tncsrv09.home.tnetconsulting.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <05951731-43d0-4755-a28d-2ed7f91c6322n@googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <sh5lb9$29k$1@tncsrv09.home.tnetconsulting.net>
Subject: Re: ping - Grant
Date: Mon, 6 Sep 2021 12:03:09 -0600
From: Grant Taylor <gtaylor@tnetconsulting.net>
References: <05951731-43d0-4755-a28d-2ed7f91c6322n@googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: TNet Consulting
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Sep 2021 18:06:33 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251"; logging-data="2356"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0
In-Reply-To: <05951731-43d0-4755-a28d-2ed7f91c6322n@googlegroups.com>
Content-Language: en-US
Lines: 52