Commit Graph

1227 Commits

Author SHA1 Message Date
mailchuck
b9fe40184f
Add to blacklist from "All accounts"
It didn't work before
2015-12-15 12:15:23 +01:00
mailchuck
ce764b6c95
Sensible default maximum difficulty
Fixes #144
2015-12-15 12:14:36 +01:00
mailchuck
0c817755f2
Link follow warning
The message box should be a warning rather than a simple question.
2015-12-15 11:12:09 +01:00
mailchuck
a351c0444c
Add system translations
Items like dialog box buttons were not localised. This loads the default
qt localisation, and also unloads the old localisation on locale change.
Still needs to be adjusted for frozen.

Addresses Bitmessage#737
2015-12-15 04:24:46 +01:00
mailchuck
3bc09f3c9f
Lazy rendering of message contents
Message will render as user is scrolling down. This prevents interface
freezes on long messages (such as inline img in text mode). Fixes
Bitmessage##366

Also a minor fix in text mode rendering.
2015-12-15 03:51:38 +01:00
mailchuck
66569fc893
Message has safe link opening
Links in message body (if in HTML mode) now open, but it asks for a
confirmation in a dialog box.

Fixes #27
2015-12-15 01:24:26 +01:00
mailchuck
ca4ab87f7d
HTML detector and switcher
HTML messages are detected and if present, the top of the message
textedit displays a clickable area that switches HTML rendering on and
off.

Fixes #13
2015-12-14 19:49:02 +01:00
mailchuck
cf38385589
Channel reply enhancement
When replying to a message sent to a chan, now you can choose if you
want to reply to chan or sender. Fixed #9
2015-12-14 13:07:32 +01:00
mailchuck
a379c435f5
Copy to clipboard in messagelists
Fixes #142
2015-12-14 12:21:28 +01:00
mailchuck
82067802ac
More portable mode fixes 2015-12-13 22:44:51 +01:00
mailchuck
4034ac3c0e
More portable mode fixes 2015-12-13 22:23:49 +01:00
mailchuck
ebee02d773
Typos
Still regarding portable mode path fixes
2015-12-13 22:18:48 +01:00
mailchuck
6d0fed0b13
Portable mode fixes
Fixes Bitmessage#379, Bitmessage#341
2015-12-13 21:36:59 +01:00
mailchuck
507b6b0f37
Joining chans interface freeze
Fixes #137
2015-12-05 11:19:06 +01:00
fe8696d267
Label for blacklisting sender fix
It wasn't properly utf-8-ied.
2015-12-03 23:14:17 +01:00
a27a608b6d
Auto-register for email gateway if necessary
If attempting to send to an email address from an unregistered
account, auto-send registration to mailchuck.
Use label if possible, otherwise random 12 characater address

Fixes #131
2015-12-02 23:12:38 +01:00
f90b1890e3
New message appears if viewing account root
Fixes #132
2015-12-02 22:37:20 +01:00
mailchuck
bcdf608716
Fix wrong account type initialiser
Addresses #14
2015-12-02 11:13:14 +01:00
mailchuck
36e84a9828
Test commit policy commit 2015-12-01 02:14:41 +01:00
mailchuck
9a2d36fc5b
Fix Addressbook context menu delete 2015-12-01 01:10:59 +01:00
mailchuck
4c9e2bf8bb
Frozen SMP re-disable try 2 2015-11-29 19:16:49 +01:00
mailchuck
06fdd56526
Re-disable windows SMP frozen support
The recommended workaround didn't work.
2015-11-29 19:15:00 +01:00
mailchuck
89bd401183
Version bump 2015-11-29 18:22:53 +01:00
mailchuck
9f6ddce7c5
Fix double unread count in tray icon 2015-11-27 16:53:15 +01:00
mailchuck
d48af87b14
Initialise inventorySets earlier
In corner cases, they may be referenced before they are populated.
Probably fixes Bitmessage#530
2015-11-27 14:45:56 +01:00
mailchuck
0b53abf39c
Allow bootstrap from a Tor hidden service
I run a modified node as a Tor hidden service for bootstrapping node
addresses, and PyBitmessage can now connect to it.
2015-11-27 12:28:30 +01:00
mailchuck
26fb92e98c
Unify messagelist rendering
also some minor fixes
2015-11-27 02:11:27 +01:00
mailchuck
64ee159ae3
Add BROADCAST type
also improve sorting
2015-11-27 02:10:36 +01:00
mailchuck
3fbd3f9cb4
Global folder, global search, unread folder
Fixes #38
Fixes #39

Minor unread refresh issues.
2015-11-27 00:56:28 +01:00
mailchuck
5500041a0c
Typo
OpenCL config variable setter had a typo
2015-11-27 00:44:17 +01:00
mailchuck
41e65d459b
Allow SQL arguments as a list or tuple 2015-11-27 00:37:52 +01:00
mailchuck
8356ed76d6
DNS bootstrap over Tor
If proxy type is SOCKS5, it will try to perform DNS bootstrap using the
Tor RESOLVE extension.
2015-11-26 23:45:54 +01:00
mailchuck
bd2cddf14a
Avoid strings in account types 2015-11-26 19:41:35 +01:00
mailchuck
e69e38a764
PoW support code cleanup
Is now nicer and reports if OpenCL fails
2015-11-26 02:38:57 +01:00
mailchuck
1fda2231af
OpenCL kernel change
This makes it work on my AMD.
2015-11-26 02:37:56 +01:00
mailchuck
241f847411
OpenCL GUI settings 2015-11-26 02:37:12 +01:00
mailchuck
b22ba6f74d
Failure to connect shouln't be an error
It resulted in too many errors in the logs
2015-11-26 02:36:10 +01:00
mailchuck
60c4c0d054
SMP fix for frozen Windows 2015-11-26 02:35:04 +01:00
mailchuck
c69ac10232
addressGenerator fixes
- addressGenerator got stuck (introduced recently when cleaning up
shutdown
- do not put addresses into API return queue if API is inactive
- improve translation
2015-11-25 01:02:21 +01:00
mailchuck
fbd41353a1
Account in treeWidget more like a QT class
It behaves more like a QT class is supposed to now, it's somewhat
cleaner.
Fixes #122
2015-11-25 00:18:41 +01:00
mailchuck
9f4cdaf82b
Cleaner shutdown
Addresses Bitmessage#549
2015-11-24 21:29:17 +01:00
mailchuck
8931f69fb7
Version bump 2015-11-23 07:20:07 +01:00
mailchuck
8f7bd6f4a0
Typo 2015-11-23 06:58:32 +01:00
mailchuck
d86fbfffc3
Exception handling 2015-11-23 01:35:24 +01:00
mailchuck
15d435a8e7
Typo 2015-11-23 00:26:21 +01:00
mailchuck
c48b2f3c08
Typo 2015-11-23 00:08:30 +01:00
mailchuck
23dfe0a03e
Typo 2015-11-23 00:05:52 +01:00
mailchuck
0c2dfe22bb
Suppress error on releasing unlocked lock 2015-11-23 00:03:58 +01:00
mailchuck
2ab4c3d85c
UPnP notifications
UPnP will notify you through window status bar.
2015-11-22 23:41:19 +01:00
mailchuck
4d03b7e98e
UPnP cleaner shutdown 2015-11-22 23:13:31 +01:00
mailchuck
2104b24fc3
SSL fixes 2015-11-22 22:45:11 +01:00
mailchuck
fd902fe739
SSL fixes 2015-11-22 17:04:54 +01:00
mailchuck
3e723969a7
SSL fixes
Handle old Python compatibility better.
2015-11-22 16:43:57 +01:00
mailchuck
97586c50b7
outgoingSynSender thread reaping disabled
It was causing delays on shutdown, worse on linux/osx
2015-11-22 16:42:47 +01:00
mailchuck
9065910a38
Threads close better
- UPnP and outgoingSynSender threads close slightly better.
- extPort initialisation was missing
2015-11-22 16:19:05 +01:00
mailchuck
34dd5b3793
UPnP GUI
Settings GUI now contains a checkbox for UPnP and auto starts/stops the
thread when changed.
Default UPnP socket timeout decreased for faster thread
starting/stopping
2015-11-22 13:02:16 +01:00
mailchuck
3dcd8be993
UPnP fixes 2015-11-22 01:10:06 +01:00
mailchuck
84b47877b1
Window resize on minimize bugfix
Fixes Bitmessage#243
2015-11-22 01:07:30 +01:00
mailchuck
24d8ffcd54
Make UPnP into a thread
- UPnP is now a separate thread that will continue to setup UPnP
- shutdown waits for threads that shutdown correctly (Addresses
Bitmessage#549)
2015-11-21 11:59:52 +01:00
mailchuck
8075e375b5
Typo fix 2015-11-21 10:17:36 +01:00
mailchuck
8f652ef0e6
UPnP logging improvlement 2015-11-21 10:15:28 +01:00
mailchuck
1a80db354b
Logging fix 2015-11-21 10:14:43 +01:00
mailchuck
50a1e92d2a Merge branch 'master' of https://github.com/mailchuck/PyBitmessage 2015-11-21 00:41:46 +01:00
mailchuck
678bdf9b82
Logging fix 2015-11-21 00:41:24 +01:00
51a152e44e
Cleanup UPnP 2015-11-21 00:39:23 +01:00
mailchuck
b93308d7ab
UPnP support merged and fixed
Fixes Bitmessage#373
Fixes Bitmessage#79
Fixes #4

Needs to be turned on in the config file (keys.dat) by adding "upnp =
true" into the main section
It needs some cleanup (e.g. if you have multiple routers, it will not
correctly handle failure of one of them)
2015-11-20 23:07:28 +01:00
mailchuck
8e9cdc8ff1
Logging updates
Came over BM (from "general" channel), I slightly modified it.
2015-11-20 08:49:54 +01:00
mailchuck
4fc2f441a3
Trusted peer flood protection
Is not needed.
Fixed Bitmessage#786
2015-11-19 19:48:24 +01:00
mailchuck
e62b9b59e6
Ask before deleting a subscription
Fixes #120
2015-11-19 19:28:36 +01:00
mailchuck
5b07d8800a
Update addressbook on changes
Fixes  #99
- enable/disable new/delete chan/subscription
- also found and fixed a logger crash
2015-11-19 19:17:34 +01:00
mailchuck
b5fb485eb2
Messagelist address tooltip
Fixes #108
2015-11-19 18:45:50 +01:00
mailchuck
90303b4619
Remove extra debug logging 2015-11-19 18:45:36 +01:00
mailchuck
ebcb069820
Delete key and shift modifier
Addresses #114
- delete from sent works when pressing delete key
- delete from trash deletes rather than moves
- delete with shift deletes rather than moves
2015-11-19 17:37:53 +01:00
mailchuck
159b68fa17
Missing folders in rerenderTabTreeSubscriptions
I optimised it too much and sometimes folders were missing in the tree.
2015-11-19 04:14:24 +01:00
mailchuck
164ae6b31f
Smoother rerenderTabSubscriptions
Does not reset it all the time but adds/removes
Fixes #109
2015-11-19 04:06:23 +01:00
mailchuck
cee1a59a86
Improved logging
Fixes #118

- changed almost all "print" into logger
- threads have nicer names
- logger can have configuration in "logger.dat" in the same directory as
"keys.dat", and the logger will pick the one named "default" to replace
the "console" and "file" that are in PyBitmessage otherwise

Example file for logging to syslog:

[loggers]
keys = root,syslog

[logger_root]
level=NOTSET
handlers=syslog

[logger_syslog]
level=DEBUG
handlers=syslog
qualname=default

[handlers]
keys = syslog

[handler_syslog]
class = handlers.SysLogHandler
formatter = syslog
level = DEBUG
args=(('localhost', handlers.SYSLOG_UDP_PORT),
handlers.SysLogHandler.LOG_LOCAL7)

[formatters]
keys = syslog

[formatter_syslog]
format=%(asctime)s %(threadName)s %(filename)s@%(lineno)d %(message)s
datefmt=%b %d %H:%M:%S
2015-11-18 16:22:59 +01:00
mailchuck
3d4392e4f8
Merge branch 'patch1' of git://github.com/thelink2012/PyBitmessage into thelink2012-patch1
Conflicts:
	src/bitmessageqt/__init__.py
2015-11-17 01:45:00 +01:00
Denilson M. Amorim
2add3f6bc8
Dont run twice if daemon too 2015-11-15 11:08:59 -03:00
Denilson M. Amorim
e4edeaceb5
Squash: Single instance and pop up old instance 2015-11-15 11:06:05 -03:00
mailchuck
c37fbd40ea
Version bump
We have 0.5.3 now
2015-11-15 02:23:11 +01:00
mailchuck
dd6de5210f
SSL workaround
Python < 2.7.9 does not support anonymous SSL server through
ssl.wrap_socket, so we have to disable it. Works fine as client.
Try to prefer secp256k1 curve (again, requires python >= 2.7.9)
2015-11-15 02:20:25 +01:00
mailchuck
da18e4be26
Move saving UI state
quit is more appropriate than close event, but it my resurrect the issue
with linux saving config data.
2015-11-14 21:08:08 +01:00
mailchuck
51232d3dd9
Improve blacklist autolabel 2015-11-14 18:53:22 +01:00
mailchuck
075f179299
OSX build fixes
- include bitmsghash so that it bundles the C library PoW
- include sslkeys so that SSL works in the bundle
- PyBitmessage version now propagated from the shell build script
2015-11-14 13:11:51 +01:00
mailchuck
c09981bd42
Blacklist through context menu
Fixes #101
2015-11-14 01:14:39 +01:00
mailchuck
b0b01efd59
SSL fixes
- uses constants for service flags
- requires SSL to use TLSv1 version (protection against POODLE-style
attacks)
- retry if sock.recv incomplete
2015-11-13 17:01:17 +01:00
mailchuck
8524f64f63
Fix adding/editing entries in addresbook
It didn't sort correctly and didn't update the label correctly when
changed.
Fixes #95
2015-11-13 14:31:35 +01:00
mailchuck
93764eeaad
Opportunistic encryption with TLS (2 of 2)
These are dummy key and certificates. They are loaded but otherwise not
used. This is a workaround against python's ssl_wrap deficiency, it
won't allow to execute a server-side SSL handshake without a loaded key
+ cert. Since generating key/cert locally would require additional
libraries, I opted for including a dummy one in the source.
2015-11-13 12:35:32 +01:00
mailchuck
8685449556
Opportunistic encryption with TLS (1 of 2)
Fixes Bitmessage#264
Fixes Bitmessage#648
2015-11-13 12:32:17 +01:00
mailchuck
cdaedaac0b
Unified code for finding source code location
It is already used in 3 places so I put it into a function
2015-11-13 12:26:02 +01:00
mailchuck
9daac4b061
Private IP range update
Addresses Bitmessage#768
2015-11-12 17:40:33 +01:00
mailchuck
7189a826ad
Click on inactive tab
Would cause exception.
2015-11-12 01:43:09 +01:00
mailchuck
a50c5ed16e
Fix broadcast
Any normal address should be able to broadcast. Reported over BM in one
of the chans.
2015-11-12 01:43:01 +01:00
mailchuck
f933cea697
Fix sync status sum
Last commit was broken.
2015-11-12 01:00:34 +01:00
mailchuck
53062f61b9
Show sync status in Network tab
Addresses Bitmessage#745 (but no API exposure yet)
2015-11-12 00:54:33 +01:00
mailchuck
6fef090261
Prepare for tree widgets to store settings
Precursor for #12
2015-11-12 00:34:20 +01:00
mailchuck
df54bbad81
Translation directory for OSX bundles
Addresses bitmessage#514
2015-11-11 02:42:28 +01:00
mailchuck
23b8811add
Enabling/disabling color propagation
Fixes #105
2015-11-11 01:03:02 +01:00
mailchuck
78734d81a1
Default message font
Fixes #106 and Bitmesage#248
2015-11-11 00:52:10 +01:00
mailchuck
891e3d6517
Unregistering of unregeistered accounts
Since it's unregistered, we don't know where to unregister from.
Fixes #91.
2015-11-10 13:16:39 +01:00
Henrik Olsson
33b4f896f6
Fix some typos
Author:    Henrik Olsson <henrik@fixme.se>
2015-11-09 20:09:31 +01:00
mailchuck
bdf2b28b0b
Newly sent messages and status update
- newly sent messages did not appear in all tabs
- message status change didn't work in all tabs
- addresses #90
- however, still new sent message sender/recipient do not have the
correct color
2015-11-09 19:39:34 +01:00
mailchuck
cfea0bbdd1
Disabled folder color
Fixes #92
2015-11-09 18:58:32 +01:00
mailchuck
e72773c5bb
Autofold/unfold when enabling/disabling
Fixes #93
2015-11-09 18:45:39 +01:00
mailchuck
c1269d9d56
several bugfixes for rerendertabtree
It was prone to infinite loops, mixing elements etc.
2015-11-09 18:44:39 +01:00
mailchuck
b01d5db549
Allow deleting channels
Fixes #96
2015-11-09 18:22:46 +01:00
mailchuck
9d2689db7a
Disable "Special address behaviour" in chan
Fixes #97
2015-11-09 17:31:13 +01:00
mailchuck
33b95db55b
Sqlite secure delete
Fixes #102
2015-11-09 17:21:51 +01:00
mailchuck
e5d6da2ec1
Fix Py2Exe / Py2App
Fixes the C PoW loading in frozen apps (Windows and OSX)
Cleaner fallback in PoW if something goes wrong
2015-11-09 17:15:27 +01:00
mailchuck
bfd64bb93f
Bump version
get ready for 0.5.2
2015-11-08 23:03:34 +01:00
mailchuck
80b02b4a96
TTL/send splitter shouldn't save state
Because it also cannot be resized from the UI
2015-11-08 23:03:11 +01:00
mailchuck
1f67b00956
Do not store search splitter state
It causes problems because it can't be resized through GUI.
2015-11-08 22:12:20 +01:00
mailchuck
cc5ed73060
Actually enable saving states
It was temporarily disabled for testing resizing.
Addresses #12
2015-11-08 21:45:54 +01:00
mailchuck
ed02e68a22
More tabs resizable and save state
Fixes #15
Addresses #12
2015-11-08 21:44:10 +01:00
mailchuck
90db7c9ef1
Missing library fix
Missing library error wasn't handled correctly.
2015-11-08 11:44:34 +01:00
mailchuck
c81b23ff54
Compile fixes
- OSX and Windows compile fixes
2015-11-08 11:26:27 +01:00
mailchuck
e78c5820af
OpenCL fixes
- directory change
- automatically detect all available GPUs
2015-11-08 11:23:48 +01:00
mailchuck
15200356fe
OSX fixes and default compile
It should built on OSX 10.11 now
It will build bitmsghash.so by default
2015-11-08 11:22:21 +01:00
mailchuck
425667ee31
OpenCL compile warning 2015-11-08 11:18:40 +01:00
mailchuck
f155966cc8
Move and rename OpenCL kernel 2015-11-08 11:17:16 +01:00
mailchuck
1721231484
C PoW updates
- move to subdirectory
- get rid of compile warnings on windows
- get number of threads from affinity (Windows, Linux) or core count
(BSD/OSX)
2015-11-07 18:40:13 +01:00
cee59a0547
C PoW library makefile
For easy compiling with GNU make (e.g. Unix-like systems).
Run as "make bitmsghash.so"
2015-11-05 22:27:34 +01:00
dfda1527b8
C PoW updates
Catching up with Grant Olson's fork.
Reduce thread priority.
2015-11-05 22:21:41 +01:00
mailchuck
1cace11521
C library for bitmessage PoW
Originally from https://github.com/bm-robertwhite/bitmessage-powfaster.
Modified to compile correctly on Visual Studio, and to decrease thread
priority.
I have not tried it on Linux yet.
2015-11-05 20:47:46 +01:00
mailchuck
c0351fe42f
Support for PoW from an external library
This will attempt to include a PoW library (.so on Unix, .dll on
windows) to do PoW. This is done in a safe way and clean fallback to
normal PoW. The code for the library will be in another commit. The code
is take from https://github.com/bm-robertwhite/bitmessage-powfaster,
with minor modifications.

This patch also includes code to make GPU PoW have a safer fallback.
2015-11-05 20:42:12 +01:00
mailchuck
477b624edd Message status update
Someone reported the exception via BM. Fixes #90

Signed-off-by: mailchuck <dev@mailchuck.com>
2015-11-05 17:29:18 +01:00
mailchuck
0de75079df
Version bump 2015-11-01 12:09:08 +01:00
mailchuck
32f2697ae3
notify of new message fixed
Will notify even if not on active messagelist.
2015-11-01 11:43:11 +01:00
mailchuck
c337f394e8
Wrong messagelist 2015-11-01 11:10:02 +01:00
mailchuck
b8d2571b7f
Unread count fixes 2015-11-01 11:09:46 +01:00
mailchuck
a59ea878b9
getCurrentFolder should return None on unavailable
I think None is better than False.
2015-11-01 11:08:45 +01:00
mailchuck
8862a88afa
Deleting from sent fix
Fixes #52
2015-11-01 10:59:15 +01:00
mailchuck
b3877a9413
Trash undelete
Fixes #55
2015-11-01 10:57:45 +01:00
mailchuck
9629abf102
Clear message lists better
Fixes #71
2015-11-01 10:09:09 +01:00
mailchuck
9895833aae
Emptying trash updates
Fixes #75, however it is quite slow
2015-11-01 09:02:26 +01:00
mailchuck
372722c979
Unread count for trash
MarkUnread assumed all folders are inbox.
2015-11-01 09:01:41 +01:00
mailchuck
db7374a825
Enable/disable dynamic behaviour
Fixes #88
2015-11-01 08:46:34 +01:00
mailchuck
eb6567c0d7
Color fixes in messagelists
Fixes #87
2015-11-01 08:30:11 +01:00
mailchuck
a4c4b44afa
accountBrush improvements
Moved code into the method
2015-11-01 08:29:51 +01:00
mailchuck
d42d77c56c
Address book better context menu
Don't allow delete of chans/subscriptions.
Fixes #82
2015-10-31 21:39:02 +01:00
mailchuck
eee26605e1
Colors for From ComboBox
Fixes #86
2015-10-31 20:27:32 +01:00
mailchuck
98372bd6ba
Subscription new messages display correctly
Fixes #70
2015-10-31 20:06:25 +01:00
mailchuck
37b79bc446
Unread count performance optimisation
Continuation of #63
2015-10-31 20:05:16 +01:00
mailchuck
3a4b60bb25
Ubuntu notification fixes
Notification should work irrespective of whether the new message shows
up in the messagelist.
2015-10-31 19:03:16 +01:00
mailchuck
a3677e0328
Indicate message sending
Fixes #83
2015-10-31 18:48:48 +01:00
mailchuck
b04cf2da7e
removeInboxRowByMsgid fixes
Now undertands messagelists and has better performance.
Haven't tested it yet though because it's triggered through API.
I think it fixes #85
2015-10-31 18:42:53 +01:00
mailchuck
eb98192a0c
Update unread count more efficiently
Fixes #63. There are still some situations which can be improved but it
appears good enough.
2015-10-31 15:27:16 +01:00
mailchuck
f356d90397
More unified colors in foldertree and messagelists
Some parts still not colored in a unified way.
Fixes #84
2015-10-31 10:12:21 +01:00
mailchuck
9d78ca5059
Show tooltips on addressbook
Fixes #68
2015-10-27 20:03:49 +01:00
mailchuck
dd2f83ff4d
Make subscription/chan labels editable
Fixes #67
2015-10-27 19:50:58 +01:00