[Remops] procmail help needed
Stefan Claas
sac at 300baud.de
Thu Apr 2 22:14:44 BST 2020
Stefan Claas wrote:
> Grant Taylor wrote:
>
> > On 4/1/20 12:08 PM, Stefan Claas wrote:
> > > Hi all,
> >
> > Hi Stefan,
> >
> > > I only use procmail for Iria to transfer incomming messages to
> > > Maildir so that my Remailer can pick them up. I have no procmail
> > > experience so far.
> >
> > I've probably done more with procmail than is healthy.
> >
> > > What I need now is an additional receipe for Iria that can strip
> > > headers in the message body from multipart/mixed messages so that
> > > outfiles from a YAMN client gets processed.
> >
> > Can I see a copy of your existing ~/.procmailrc.
> >
> > I don't think procmail itself can alter the messages. But procmail can
> > easily call formail which can easily modify messages.
>
> Hi Grant,
>
> I just did a little test with a remailer message outfile send from mailchuck
> to my personal address, then saved the complete message with all headers.
>
> After that I used sed to extract the relevant parts and it worked with:
>
> sed -n '/^::$/,/^-----END REMAILER MESSAGE-----$/p' message.txt
>
> So, how should I proceed, because I do not want to mess up Iria while it
> is curently running ...
>
> Any ideas?
SUCCESS!!! :-)
Date: Thu, 2 Apr 2020 21:11:43 +0000
From: Stefan Claas <stefan at mailchuck.com>
Subject: From Bitmessage via Mailchuck to Usenet
Message-Id: <20200402.211143.2cb4de78 at remailer.xyz>
Newsgroups: alt.test.test
Path:
eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.mixmin.net!mail2news.mixmin.net!not-for-mail
Injection-Info: mail2news.mixmin.net; posting-host=mail2news.mixmin.net;
mail-complaints-to=abuse at mixmin.net Xref: reader01.eternal-september.org
alt.test.test:7058
The quick brown fox jumps over the lazy dog.
Regards
Stefan
Here's my procmail receipe:
PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
SHELL=/bin/sh
MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR/
:0fBbw
* ^FROM.*mailchuck\.com
| sed -n '/^::$/,/^-----END REMAILER MESSAGE-----$/p' | ./yamn -M
Regards
Stefan
--
Signal (Desktop) +4915172173279
https://keybase.io/stefan_claas
More information about the Remops
mailing list