arceliar / bmwrapper Goto Github PK
View Code? Open in Web Editor NEWEmail wrapper for PyBitmessage
License: MIT License
Email wrapper for PyBitmessage
License: MIT License
When attempting to poll bmwrapper using fetchmail this happens:
2014-01-13 11:03:44,172 INFO - Press Ctrl+C to exit. Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 808, in __bootstrap_inner self.run() File "/usr/lib64/python2.7/threading.py", line 761, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib64/python2.7/site-packages/bmwrapper/incoming.py", line 248, in incomingServer_main sock.close() AttributeError: 'NoneType' object has no attribute 'close'
The following is a workaround in the code that should be reverted to reflect the new from chan to chan method. Instead it should return "[email protected]" as the recipient.
if Broadcast' in toAddress:
toAddress = fromAddress
I googled part of the error I'm getting and saw issue #7 here.
My setup:
Thunderbird 24.2.0
bmwrapper latest git pull
bitmessage latest git pull
I'm pretty sure I've set this up correctly according to the youtube video. I'm able to send BM messages using thunderbird/bmwrapper but when tbird polls for messages it crashes. Here's the output. You can see the list worked and saw 3 messages in my BM inbox.
2014-05-24 12:55:54,179 INFO - Press Ctrl+C to exit.
2014-05-24 12:56:05,845 DEBUG - Parsing msg 1 of 3
2014-05-24 12:56:05,850 DEBUG - Parsing msg 2 of 3
2014-05-24 12:56:05,852 DEBUG - Parsing msg 3 of 3
2014-05-24 12:56:05,854 DEBUG - Answering STAT: 3 9213
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/home/user/bmwrapper/incoming.py", line 256, in incomingServer_main
conn.sendall(cmd(data))
File "/home/user/bmwrapper/incoming.py", line 64, in handleList
cmd, msgId = data.split()
ValueError: need more than 1 value to unpack
Replies get parsed out and put into the end of the message. Messages should be sent as-is.
In classical e-mailing you can add your name in a more readable format to the e-mail address, e.g. John Doe <[email protected]>
. The same should be true for bmwrapper too: John Doe <[email protected]>
.
Bmwrapper should first take the contact info from the identities in the bmclient. If it is not in there take it from the addressbook. For broadcast messages it should finally querry the information from the subscriptions if it is neither in the identities or in the addressbook.
Like this there is no need to set up contacts in Thunderbird (or other mail programs).
In a setup where there are multiple addresses in a Bitmessage node, I'd like to be able to download only the messages that have been sent to a single address instead of all the addresses.
Perhaps it could work that if the username passed via POP matches an address belonging to the node you only get that address's messages, and if the username doesn't match you get all messages (current behavior).
I run python main.py and bmwrapper starts up fine. When I try to send a message over SMTP (through thunderbird), the console spits out the following:
error: uncaptured python exception, closing channel <smtpd.SMTPChannel connected 127.0.0.1:33541 at 0xca15a8> (<type 'exceptions.NameError'>:global name 'apiInit' is not defined [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|158] [/usr/lib/python2.7/smtpd.py|found_terminator|181] [/home/jacob/src/bmwrapper/outgoing.py|process_message|23] [/home/jacob/src/bmwrapper/bminterface.py|send|68] [/home/jacob/src/bmwrapper/bminterface.py|_sendBroadcast|40] [/home/jacob/src/bmwrapper/bminterface.py|_makeApi|30] [/home/jacob/src/bmwrapper/bminterface.py|_getConfig|15] [/home/jacob/src/bmwrapper/bminterface.py|apiData|185])
It seems bmwrapper is missing apiInit
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.