Article View: alt.privacy.anon-server
Article #316101Re: ping - Grant
From: Grant Taylor
Date: Wed, 08 Sep 2021 01:07
Date: Wed, 08 Sep 2021 01:07
78 lines
4563 bytes
4563 bytes
On 9/7/21 8:20 AM, Stefan Claas wrote: > Now the messages gets altered by procmail and then will be temporarly > saved and after a couple of seconds picked up via a oneliner and feed > into the notbit client. I think I would /not/ do the alteration with procmail. Instead I'd have procmail deliver the message into another script (via the "|/path/to/script" method) and rely on the script to alter the message /and/ pass it on to the next step in the process (Bitmessage in this case). > In order that this works the altered message looks like this: It's not that you're /altering/ the message per se. Instead you're extracting the /inner/ message that goes into Bitmessage from a separate /outer/ message used as a transport. This seems perfectly reasonable to me. > I would like to avoid the temp saving step and would much prefer > direct piping from procmail into the BM client but unfortunately I > did not get this to work (yet). This is why I think you want to pipe from procmail into a script and have the script pipe into Bitmessage. I threw together the following command line that I think conceptually does what you want. ...$PROCMAIL_STUFF... sed -n '/^---Begin Bitmessage---$/,/^---End Bitmessage---$/p' | sed '/ Bitmessage---$/d' ...$BITMESSAGE_STUFF... I don't know the PROCMAIL_STUFF or the BITMESSAGE_STUFF off hand. I'll leave that for you to figure out. The PROCMAIL_STUFF is your procmail filter recipe to match things and deliver to /something/. Where that /something/ is a (pair of) sed regular expressions. The BITMESSAGE_STUFF is how you would take the output from sed and pipe it into Bitmessage. (I suspect that you have 95% of both of these.) I would likely put the sed and BITMESSAGE_STUFF in a script and have procmail just deliver to that (wrapper) script. There's probably a way to combine both regular expressions into one sed invocation. But, my brain doesn't see it after returning from a five mile hike. So I'll just stick with this proof of concept for now. Hopefully it will give you ideas to chew on. > Please also note this is *client* software and not server software. Okay. I'm not sure if, much less what, difference that makes. I don't know enough about Bitmessage to speak about it in any way. > We can and should also discuss later more in detail how the client > works and stores messages etc. Okay. Feel free to reply to this thread, or start a new one, or email me directly. I'm happy to share my thoughts. Hopefully they help. I don't know if it speaks to the "stores messages" comment or not, but the piping from procmail into a (wrapper) script (which calls sed & Bitmessage) has the added advantage that nothing is actually stored on disk. It's all a stream passing from program to program to program. In the even that you do need to store something on disk, I'd suggest storing it in a directory that's a mounted tmpfs file system (assuming Linux) as that's pure memory, thus transient. I have some other thoughts, but I don't know enough about Bitmessage to speak to them. TL;DR: Public key encryption for the waiting files which Bitmessage can decrypt when it's ready to use. (If Bitmessage can do that.) }:-) -- Grant. . . . unix || die
Technical Details
Message-ID:
<sh92jo$7bo$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-mailReferences:
<9caa3074-1bbd-4c36-bfb1-8cc69af00014n@googlegroups.com> <sh5kqn$rg8$1@tncsrv09.home.tnetconsulting.net> <18fda3855acebb6c5fbb46bca93af8d1@dizum.com> <2ebb7fcf-ff41-4e33-9e47-d046ebe5f28cn@googlegroups.com>Show Full Headers
Complete Article Headers
Message-ID: <sh92jo$7bo$1@tncsrv09.home.tnetconsulting.net> Subject: Re: ping - Grant Date: Tue, 7 Sep 2021 19:07:52 -0600 From: Grant Taylor <gtaylor@tnetconsulting.net> References: <9caa3074-1bbd-4c36-bfb1-8cc69af00014n@googlegroups.com> <sh5kqn$rg8$1@tncsrv09.home.tnetconsulting.net> <18fda3855acebb6c5fbb46bca93af8d1@dizum.com> <2ebb7fcf-ff41-4e33-9e47-d046ebe5f28cn@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: Wed, 8 Sep 2021 01:11:20 -0000 (UTC) Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251"; logging-data="7544"; 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: <2ebb7fcf-ff41-4e33-9e47-d046ebe5f28cn@googlegroups.com> Content-Language: en-US Lines: 77