logger.info('messageEncodingType == 0. Doing nothing with the message. They probably just sent it so that we would store their public key or send their ack data for them.')
@ -503,9 +505,9 @@ class singleWorker(threading.Thread, StoppableThread):
sqlExecute(
'''UPDATE sent SET status='msgqueued' WHERE status IN ('doingpubkeypow', 'doingmsgpow')''')
queryreturn=sqlQuery(
'''SELECT toaddress, fromaddress, subject, message, ackdata, status, ttl, retrynumber FROM sent WHERE (status='msgqueued' or status='forcepow') and folder='sent'''')
'''SELECT toaddress, fromaddress, subject, message, ackdata, status, ttl, retrynumber, encodingtype FROM sent WHERE (status='msgqueued' or status='forcepow') and folder='sent'''')
forrowinqueryreturn:# while we have a msg that needs some work
@ -751,11 +753,10 @@ class singleWorker(threading.Thread, StoppableThread):
fromaddress,'payloadlengthextrabytes'))
payload+=toRipe# This hash will be checked by the receiver of the message to verify that toRipe belongs to them. This prevents a Surreptitious Forwarding Attack.
payload+='\x02'# Type 2 is simple UTF-8 message encoding as specified on the Protocol Specification on the Bitmessage Wiki.
messageToTransmit='Subject:'+ \
subject+'\n'+'Body:'+message
payload+=encodeVarint(len(messageToTransmit))
payload+=messageToTransmit
payload+=encodeVarint(encoding)# message encoding type