Article View: alt.privacy.anon-server
Article #299761Re: - Have the regulars gone to some forum or other
From: Stefan Claas
Date: Tue, 14 Aug 2018 14:06
Date: Tue, 14 Aug 2018 14:06
61 lines
3105 bytes
3105 bytes
Anonymous wrote:
> Here is another ptyhon scrypt that will notify you if you receive a
> new Bitmessage on a Linux machine. We use it to discover new messages
> from family and friends. They know that we can only be contacted via
> Bitmessage. We use a burner phone and the email messages are sent to
> its phone email address from my VPS that runs Bitmessage. We turn on
> the phone periodically during the day to see if any messages have
> arrived. Then off the phone goes again. This is the only use for that
> phone, like a pager. Anytime a Bitmessage is received on the VPS, it
> automatically sends the email.
>
>
> #!/usr/bin/python2.7
>
> # Save this code to /.config/PyBitmessage/PyBitMail.py or wherever the
> PyBitmessage path.
>
> # This routine will send an email to the email address in the
> # 'emailaddr =' field upon PyBitmessage receiving a new message
> # for you. This could be a cell phone message address.
>
> # Change your@email-address.net below to your email address.
> # Make sure that the 'apienabled = true' and
> # 'apinotifypath = /path/to/PyBitMailTest.py'
> # parameters are in your keys.dat under the [bitmessagesettings]
> # header. Save this entire
> # script to PyBitMail.py in /root/.config/PyBitmessage/ and
> # do a 'chmod 755 PyBitMail.py'
>
> # Example keys.dat entries (leave out preceding #):
> #apienabled = true
> #apinotifypath = /root/.config/PyBitmessage/PyBitMail.py
>
> import smtplib
> import sys
> import os
>
> param1 = sys.argv[1]
> emailaddr = 'your@email-address.net'
>
> if param1 == 'newMessage':
> from email.mime.text import MIMEText
>
> # Send the message via our own SMTP server.
> sm = smtplib.SMTP('localhost')
> sm.sendmail('bm@anonymous.com', emailaddr, param1)
> sm.quit()
>
> sys.exit()
> os.exit()
Thanks for the script! Might come in handy for me in
the future.
Regards
Stefan
--
https://www.behance.net/futagoza
https://keybase.io/stefan_claas
Technical Details
Message-ID:
<AABbcuICIjwAAAMU.A1.flnews@iria.my-fqdn.de>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:
<7i7hmdpfp02jrdg7gp4cubmqv2l1gl9ikc@4ax.com> <990dd9bf0ef8ccec25359169de88e993@dizum.com> <87in4j30h9.fsf@violet.siamics.net> <slrnpmp96l.8k9.elvis-85650@notatla.org.uk> <AABbb0J8be4AAAuF.A1.flnews@iria.my-fqdn.de> <AABbcCX9TWIAAArW.A1.flnews@iria.my-fqdn.de> <pksra4$vu7$1@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <AABbcuICIjwAAAMU.A1.flnews@iria.my-fqdn.de> Subject: Re: - Have the regulars gone to some forum or other Date: Tue, 14 Aug 2018 16:06:58 +0200 From: Stefan Claas <stefan.claas@posteo.de> References: <7i7hmdpfp02jrdg7gp4cubmqv2l1gl9ikc@4ax.com> <990dd9bf0ef8ccec25359169de88e993@dizum.com> <87in4j30h9.fsf@violet.siamics.net> <slrnpmp96l.8k9.elvis-85650@notatla.org.uk> <AABbb0J8be4AAAuF.A1.flnews@iria.my-fqdn.de> <AABbcCX9TWIAAArW.A1.flnews@iria.my-fqdn.de> <pksra4$vu7$1@news.mixmin.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 Injection-Date: Tue, 14 Aug 2018 14:06:58 -0000 Lines: 61 User-Agent: flnews/0.16pre7 (for Darwin) X-Received-Bytes: 3258 Mime-Version: 1.0 Newsgroups: alt.privacy.anon-server Organization: A noseless patient spider Cancel-Lock: sha256:TQIEBEilMEuB9Wd3c9WGEA8TWlJiuuZRuSv/eABcZkQ= sha1:to9VhWlf/GxPiEzmbMT2z7LM3cc= X-Received-Body-Crc: 3733447264