lakshyacis
3 years ago
No known key found for this signature in database
GPG Key ID: D2C539C8EC63E9EB
5 changed files with
13 additions and
12 deletions
-
src/class_objectProcessor.py
-
src/class_smtpDeliver.py
-
src/helper_sent.py
-
src/multiqueue.py
-
src/proofofwork.py
|
|
@ -149,11 +149,13 @@ class objectProcessor(threading.Thread): |
|
|
|
'ackreceived', int(time.time()), data[readPosition:]) |
|
|
|
queues.UISignalQueue.put(( |
|
|
|
'updateSentItemStatusByAckdata', |
|
|
|
(data[readPosition:], |
|
|
|
tr._translate( |
|
|
|
"MainWindow", |
|
|
|
"Acknowledgement of the message received %1" |
|
|
|
).arg(l10n.formatTimestamp())) |
|
|
|
( |
|
|
|
data[readPosition:], |
|
|
|
tr._translate( |
|
|
|
"MainWindow", |
|
|
|
"Acknowledgement of the message received %1" |
|
|
|
).arg(l10n.formatTimestamp()) |
|
|
|
) |
|
|
|
)) |
|
|
|
else: |
|
|
|
logger.debug('This object is not an acknowledgement bound for me.') |
|
|
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
""" |
|
|
|
src/class_smtpDeliver.py |
|
|
|
======================== |
|
|
|
SMTP client thread for delivering emails |
|
|
|
""" |
|
|
|
# pylint: disable=unused-variable |
|
|
|
|
|
|
|
|
|
@ -2,7 +2,8 @@ |
|
|
|
Insert values into sent table |
|
|
|
""" |
|
|
|
|
|
|
|
from helper_sql import * |
|
|
|
from helper_sql import sqlExecute |
|
|
|
|
|
|
|
|
|
|
|
def insert(t): |
|
|
|
"""Perform an insert into the `sent` table""" |
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
""" |
|
|
|
src/multiqueue.py |
|
|
|
================= |
|
|
|
A queue with multiple internal subqueues. |
|
|
|
Elements are added into a random subqueue, and retrieval rotates |
|
|
|
""" |
|
|
|
|
|
|
|
import Queue |
|
|
|
|
|
@ -1,7 +1,6 @@ |
|
|
|
# pylint: disable=too-many-branches,too-many-statements,protected-access |
|
|
|
""" |
|
|
|
src/proofofwork.py |
|
|
|
================== |
|
|
|
Proof of work calculation |
|
|
|
""" |
|
|
|
|
|
|
|
import ctypes |
|
|
|