Commit Graph

1575 Commits (171bc83ec0bde275602d6545255d83400a36093d)

Author SHA1 Message Date
ng0 d3a0404274 Fix python shebangs from `#!/usr/bin/env python2.7*' to `#!/usr/bin/python2.7'.
* src/ fix it.
* src/ same.

This fixes #887.
7 years ago
Peter Šurda 8e066eaa97
Add SMTP delivery labels
- SMTP delivery now has from and to labels for local addresses
7 years ago
Peter Šurda b8a08a0ce9
Fix python PoW
- recent changes cause the pool workers to trigger shutdown and freeze.
  Now python PoW works again
7 years ago
Peter Šurda 685ff6cecd
Startup fixes
- correctly test for "smtpdeliver" variable without crashing
- new method for safely getting values from config even if the option
  may be missing
7 years ago
Peter Šurda d3e8771aed
Lock file fixes
- daemon mode lock file didn't work correctly in the last commit
7 years ago
Peter Šurda 4865659d72
Main process fixes
- handles old dialog versions better if using curses
- can spawn SMTP delivery thread if configured (only when in daemon
- daemonized mode now works more like it's properly supposed to on unix
  (double fork etc). You may have to adjust your init scripts, when
  when using upstart for example you should now use "expect daemon"
- daemon mode now cleanly shuts down when TERM/INT signal is received
7 years ago
Peter Šurda e5c9e6d383
Curses fixes
- curses interface should now work with older versions of dialog
- Fixes #711
7 years ago
Peter Šurda 3d9c036129
SMTP delivery thread
- thread can deliver incoming messages over SMTP
- this commit just contains the thread, subsequent commits will enable
7 years ago
Peter Šurda 6895da7f65
Quit immediately if disk full
- PyBitmessage only used to quit on disk full when running in daemon
  mode. When this happened with the QT-GUI, it would end up in a
  half-frozen status instead. Quitting is a safer choice

Fixes #572
7 years ago
Peter Šurda e649adbe37
Framework for extended message encoding
- helper classes for encoding/decoding messages
- includes both old as well as new extended one (msgpack+zlib)
- the classes are unused yet and are supposed to be for experimenting
7 years ago
Peter Šurda 6add48e036
UPnP fix
- it looks like some UPnP server implementations consider NewRemoteHost
  to be a mandatory tag
7 years ago
Peter Šurda 0689525d61
UPnP fixes
- detects WANPPPConnection vs WANIPConnection
7 years ago
Peter Šurda efa12c3ac6
Do not connect on shutdown
- in some cases, such as when using trustedpeer, outgoingSynSender
  threads would wake up and try to connect. This fixes it.
7 years ago
Louis-Guillaume DUBOIS afa715cf1b
Fixes #867 - Changes default time format to %c 7 years ago
Peter Šurda cec2233043
Fix about dialog
- Last commit broke the about dialog, this fixes it again.
7 years ago
Peter Šurda d9ca8d1e5e
Fix UTF8 character in translation source
- "About" dialog did not correctly interpret source UTF-8 characters
7 years ago
Peter Šurda ca297cafed
Delete old nodes
- cleanup will delete nodes that are older than 3 days
7 years ago
Peter Šurda 65211703c0
Try UTF-8 locale encoding
- setlocale didn't always try UTF-8, and on systems that only had UTF-8
  encoding of the selected locale, this would fail to change locale

Fixes #872
7 years ago
Peter Šurda 0dd54e606d
Multiple connections on hidden service fix
- there was a bug which prevented multiple parallel connections on
  hidden service
7 years ago
Peter Šurda b0446f412a
Prevent leaking of tor relay IP
- when running a hidden service, the IP of the tor relay was a part of
  the verack message. In setups where it's not it may leak
  info about network topology
- thanks for an anonymous bug report
7 years ago
Peter Šurda fbed1eff31
Socks error handling
- Socks errors are now handled in a smoother manner
7 years ago
Peter Šurda f242d409fd
Tor hidden service fixes
- will send the correct combination of hostname and port
- if proxyhostname is a hostname and an IP address, it will now allow
  multiple parallel connections for hidden service
7 years ago
Peter Šurda 1a40c29d22
Add Tor hidden service support
- PyBitmessage can now run as a hidden service on Tor
- three new variables in keys.dat: onionhostname, onionport, onionbindip
- you need to manually add a hidden service to tor
7 years ago
Peter Šurda 33991f4598
Implement node priority
- prioritise connecting to nodes that were online more recently
- hidden service nodes have a higher priority if using tor
7 years ago
Peter Šurda c11dd67e50
Translation update
- Russian, French, Italian, Portuguese and Esperanto updated from
7 years ago
Peter Šurda 9e2389306b
BSD compile fixes
- bitmsghash should now build and run on BSD (thanks for
  FreeBSD/Dragonfly maintainers for assistance)
- if it cannot detect the number of cores, will default to one thread
  (previously it broke)
7 years ago
Peter Šurda e353af3195
Locale encoding fixes
On non-Windows, setlocale will try both normalised and preferred
7 years ago
Peter Šurda 6dff105a5b
Unread count and subscriptions
- unread count was optimised (based on profiling)
- unread count is now accurate
- listing subscription messagelists and count fixed
7 years ago
Peter Šurda b194e4ca20
Bump version to 0.6.0 7 years ago
Peter Šurda 75eef9ef2f
Fix merge conflicts
Missed this difference in the last commit
7 years ago
Peter Šurda aabf600c38
Fix incorrectly resolved merge conflicts
Two file merge conflicts, and, were not resolved
correctly by the automatic resolving (probably because the affected code
was written by other people and I merged them into mailchuck fork). This
changes it to the same code that is in the mailchuck fork)
7 years ago
Peter Šurda eebf264552
Translations update 7 years ago
Peter Šurda 10a3d2d28a Add uPnP translation source 7 years ago
mailchuck b724d3ee4f Copyright year updates 7 years ago
mailchuck 444edbd6a3 Subscription folder loading fix 7 years ago
Peter Šurda 02a593fc7f Translation source update 7 years ago
mailchuck 3f1f3e9b3b Remove default debugging
Only log errors. Can be overriden by a config file.
7 years ago
mailchuck 9edde110a2 Translation update
Some function calls were not being identified as text that should be
7 years ago
mailchuck 9193c2070e Labels when replying
If present, a label will be included in the reply line edit.
7 years ago
Peter Šurda fabfc91e8f Translation source update 7 years ago
mailchuck 4013bd31fd Time & date Windows encoding
On Windows, the encoding was always the default windows encoding and
didn't change when you use a language in BM that required a different
encoding. This affected mainly date & time in the received column and
the startup info on the network status tab.
7 years ago
mailchuck 88678eab3a Sent table header
Inbox/Sent table header for the last column now adjust (previously, both
were "Received", now the latter is "Sent).
7 years ago
mailchuck 5afdc052ff Retranslate fix
Update identities tree context menu on language change.
7 years ago
mailchuck 58481afda2 Completer unicode fixes 7 years ago
mailchuck 46edb72b4f Send from addressbook label
When choosing an item from addressbook to send to, put both label and
address into the lineEditTo widget.
7 years ago
mailchuck 98313d594f Sender autocompletion
Sender autocompletion now works, and is based on the l labels in the
addressbook (i.e. all addressbook entries, all subscriptions and chans).

Repurposed C code from
7 years ago
mailchuck b8667864f5 Addressbook exception fix
The avatar was throwing an exception.
7 years ago
Peter Šurda 61ae94098d Translations update
English source plurals updated.
7 years ago
mailchuck 94d5eeb16f Unread count fixes 7 years ago
Peter Šurda ad6d55cebe Translations update
- TTL hours/days now has correct plurals/paucals
- TTL description updates better when changing language (was "X days")
- language sources updated
7 years ago
Peter Šurda 658d52fb4f TTL/Send tab fixes
Now stretches correctly and does not unnecessarily shorten the text.
7 years ago
mailchuck ddb48cad86 Typo 7 years ago
mailchuck 83cc25fef5 Typo 7 years ago
Peter Šurda e8b1e1adcf Localisation update
The plural/paucal form support was not compatible with pylupdate4, it
didn't correctly parse the 3-argument calls to translate.

This fixes it, and updates the sources accordingly.
7 years ago
mailchuck 360d41792c Tab labels
Network status and Blacklist labels fix.
7 years ago
mailchuck cb1c8157fe Objects to be synced timer
Now updates together with bandwidth every 2 seconds.
7 years ago
mailchuck b7fefb3c40 Windows locale fix
Python locales (e.g. for time and date) didn't work on Windows.
7 years ago
Peter Šurda 3be851297c Translation updates
- regenerated sources
7 years ago
Peter Šurda 92e3e62640 Locale fix
Date formatting sometimes didn't use the correct locale encoding
7 years ago
mailchuck c29f266020 Translation fixes
- locale name is properly normalised rather than simply changing the
- translations now support plurals/paucals
- networkstatus updated
7 years ago
Peter Šurda 9e10d714aa Translation update
Refresh sources.
7 years ago
Peter Šurda 38700a1721 Network Status tab translations update
- remembers startup time
- kB instead of KB
- stream table and status texts scale and aren't cut if they translated
text doesn't fit
7 years ago
Peter Šurda af098e4805 Locale for non-QT UI strings
Some parts of strings did not use the proper locale. For example, date
and time strings was always output with the US locale. This fixes it.
There are still some cases where localisation is not implemented, and
could be changed from str(string) to locale.str(string).
7 years ago
Peter Šurda 0507411696 Shutdown fix
The GUI shutdown changes sometimes caused freezes on linux.
7 years ago
mailchuck 3dbb4d5ce9 GUI shutdown improvements
- it shows that it needs to wait for PoW to finish
- it waits a bit for new objects to be distributed
- it displays a better progress indicator in the status bar

Previously, people who don't understand how PyBitmessage works sometimes
shut it down immediately after they wrote a message. This would have
caused the message to be stuck in the queue locally and not sent. Now,
it will indicate that the PoW still needs to work, and it will wait a
bit longer so that the message can spread. It's not a completely correct
approach, because it does not know whether the message was really
retrieved after the "inv" notification was sent.
7 years ago
mailchuck 167da731d0 Make new version notifications less intrusive
Now only in status bar and no more popup window.

Previously, it only showed once until a restart, but now it shows every
time it detects a new version online. Since it does not show a popup
window it's not a big deal.
7 years ago
Peter Šurda 2f27d43e7e PoW can sometimes be shutdown-able
Python and OpenCL PoW now stop when PyBitmessage shutdowns. C PoW needs
additional support in C so it doesn't work there yet.
7 years ago
Peter Šurda 5adc4429f0 Translations update
- synced translations from Transifex
- updated source
- added Slovak translation
7 years ago
Peter Šurda 70e06c33f6 Remove some debugging
Language loading debugging not necessary.
7 years ago
Peter Šurda fd4329bee0 Refactor localisation
The language combo box is generated dynamically from the list of
available translations in the translations directory. This allows the
users to add their own translations without having to change the code.
7 years ago
mirrorwish a7ec4c0555 Some preparations for python 3 7 years ago
Peter Šurda be16be2bb4 Translation update
Updated English source strings.
7 years ago
Peter Šurda d46fd6f486 Translation fix
Plural form fix
7 years ago
Peter Šurda d625659cc6 User agent parser fix 7 years ago
Peter Šurda ca11852632 Translation source update
NewSubscriptionDialog missing string updated.
7 years ago
Peter Šurda baff42f578 Typo
String typo, also updated translation source.
7 years ago
Peter Šurda e9f62efa4b Default compose body "untranslate"
There is no reason to retranslate the default message/broadcast body,
and the default was just confusing HTML with no content.
7 years ago
Peter Šurda d25a1302ce Version bump 7 years ago
Peter Šurda 858e93befd Update build scripts
- PyInstaller script (e.g. for Windows)
- for OSX
7 years ago
Peter Šurda de14730ad9 Translations update
- synced with Transifex
7 years ago
Peter Šurda c30433cdaa "All accounts" internationalisation fix 7 years ago
Peter Šurda 412e175f27 Translation updates
Added a RetranslateMixin. Since PyQT does not support automated language
changes of UI files (like the C++ QT does), this implements something
similar. It assumes that the UI file has the same name as the class, but

Added RetraslateMixin to the new blacklist and networkstatus interfaces.
7 years ago
Peter Šurda ecfa18b1c6 Change UI loading for frozen 7 years ago
Peter Šurda 8b605a874a Translation updates
- add missing files into translation definition
- refresh english strings
- change context for "networkstatus"
7 years ago
Peter Šurda 0f267c94c7 Translations update
- added Danish translation (thanks @mirrorwish)
- added English translation (to serve as a source for other
7 years ago
Peter Šurda 491579c368 Translations update source files 7 years ago
mirrorwish 554627dd92 Refactor Inventory 7 years ago
mirrorwish 7800272d3a Refactor Blacklist tab 7 years ago
mirrorwish 337cf93b4b Fix byte formatting 7 years ago
Peter Šurda 24ae23946b Translations config file update 7 years ago
mirrorwish 69aa618890 Combine all translation project files into one 7 years ago
mirrorwish a23022b2db Refactor Network Status tab 7 years ago
mirrorwish 64fce79321 Refactor status icon 7 years ago
mailchuck 4f56e49a30 Unread count refresh updates 7 years ago
mailchuck 66824c32d1 sqlExecute now returns rowcount
This allows tracking of how many rows were changed, for example for
7 years ago
mailchuck 8172fce730 Typos 7 years ago
mailchuck a63f9054f4 Global Sent fix 7 years ago
mailchuck 0ab0e6757a Restrict pending parallel requests on proxy
This saves some network resources if using Tor, for example.
7 years ago
Peter Šurda 1b50f3898a UPnP fixes:
- external port iterator fix
- error handler fix
7 years ago
mailchuck a1b44aab44 UPnP fixes
- UPnP handles errors better
- it tries to bind external interface (previously sometimes it searched
on resulting in no routers being detected)
7 years ago
Peter Šurda e03803e4e8 Translations update
Updated translation source files
7 years ago
Peter Šurda f8dcb965ea Grammar fix
- Fixes #179
- Thanks to @Erkan-Yilmaz
7 years ago
Peter Šurda d63ecfc566 Translation update
- typos
- updated German translation
- Fixes Bitmessage#844
7 years ago
Peter Šurda 3fcaa47232 Ack received translation typo
Fixes Bitmessage#644
7 years ago
Peter Šurda 143abe3c34 Preliminary Tor hidden service support 7 years ago
Peter Šurda c5363c3c5e Add bitcoin URI handler for message viewer 7 years ago
Peter Šurda 2e47ab0cd2 Keyboard modifiers with quick navigation
The quick navigation key disrupted keybindings with keyboard modifiers,
like Ctrl-C for copy. This restricts the quick navigation only where no
keyboard modifiers are active.

Fixes #184
7 years ago
Peter Šurda a30d5af948 Global Sent and Trash folders 7 years ago
mailchuck 8d8cfe8555 More unicode fixes
Addresses #180
7 years ago
mailchuck da036c6b6b UTF fixes
Label edits now accept and save utf8 characters.
Addresses #180
Still need to check how it behaves on invalid chars.
7 years ago
mailchuck 47bc85f0b6 Sent folder in chans extended
Previously, it only showed message sent to the selected chan address.
Now it shows both those sent to and sent from the chan address.

Fixes #181
7 years ago
mailchuck d8aa484b8c Email gateway interface usability improvements
- don't allow status request / settings unless registered already
- if registered, status request is the default selected option

Fixes #182
7 years ago
mailchuck 2adafdaadc Improved URI detector 7 years ago
mailchuck ed5c8a01ef loadResource incorrect parameters 7 years ago
mailchuck a79f6cce3b Clipboard copy unicode
Copying unicode subjects to clipboard didn't work.

Fixes #183
7 years ago
Peter Šurda 113ceb0868 Email links "From"
Clicking email links now sets "From" based on the message the link is
7 years ago
Peter Šurda af193a1bca Keybindings
- delete key now works when message body is focused as well
- N for next message (down)
- P for previous message (up)
- R for reply
- C for compose
- F for find
- Find is now dynamic if the search text is least 3 characters long

Fixes Bitmessage#655
Addresses #155
7 years ago
Peter Šurda 9e2ae4eeb5 Allow close to tray
PyBitmessage can now close to tray. Even though the main code was there,
the UI and config variable were missing.

Fixes Bitmessage#564
7 years ago
Peter Šurda b3b69b1eac deleteRowFromMessagelist implementation
Rows are deleted from a message list in multiple places, and this is an
attempt to refactor it so that it is done in one function. It's not used
anywhere yet.
7 years ago
Peter Šurda 976af4b3cd Empty resource loader for messageview
MessageView does not currently load external resources (QTextBrowser by
default interprets all external resources as local file names and tries
to load them like that. This can, in the future, be implemented. For
example, if SOCKS (Tor) is used, the resource could be loaded through
the SOCKS too.

This commit is a skeleton for it that does not actually do anything and
can be filled with an implementation that does the loading.
7 years ago
Peter Šurda 96a1726426 Clickable email and http links in plain text
Email addresses and URIs are now clickable when viewing a message in
plain text mode. Clicking an email address moves to the Send tab, while
clicking an URI has the same result as clicking an URI in html mode, it
will ask for confirmation before opening it in external handler.
7 years ago
Peter Šurda f27ca0d3d6 HTML parser updates
HTML parser wasn't correctly handling img tags.
Now it also by defaults disabled external schemas to prevent
deanonymisation (even though the renderer actually doesn't support
external schemas at the moment)

Addresses #178
7 years ago
Peter Šurda b202ac6fab Do not allow port 0
Attackers injected node addresses with port 0 into the network. Port 0
is unusable on many OSes and can't be listened on. PyBitmessage won't
accept nodes that have port 0 anymore.
7 years ago
Peter Šurda 9239813ebb Constant time decryption
Always try to decrypt with all keys.
7 years ago
Peter Šurda 4c2ce7208c Sleep on invalid getdata
- postpone initial sleep until the first getdata is received
- also sleep when received a getdata request for an object that hasn't
been advertised to the other node yet
7 years ago
Peter Šurda 1a92db54c9 Process gateway registration rejections
A message from gateway registration addres regarding registration
rejection is processed and a dialog displayed to get a new email

Fixes #14
7 years ago
Peter Šurda 6b8f255a60 Email gateway updates
- settings option available
- reduce max TTL to 2 days
7 years ago
Peter Šurda 2b6bffc7ff Email gateway account status query
- addresses #14
7 years ago
Peter Šurda db84d699db Search improvements
- selecting a new folder will apply search
- newly arrived message will consider search
- fixes #166
7 years ago
Peter Šurda 218bdf38e1 Better error reporting for log config
Fixes #174
7 years ago
Peter Šurda ab974abce0 Sent message status on ACK
Fixes #176
7 years ago
Peter Šurda 8f5d305242 Mitigate active internal intersection attack
There was a report that by quickly asking a large number of nodes if
they have an ACK object (which the attacker knows but it is injected
into the network by the recipient of the message), it can estimate how
an object propagates through the network, and eventually pinpoint an
originating IP address of the injection, i.e. the IP address of the
message recipient.

This patch mitigates against it by stalling when asked for a nonexisting
object (so that the attacker can't spam requests), and also upon
connection before sending its own inventory list (so that reconnecting
won't help the attacker). It estimates how long a short message takes to
propagate through the network based on how many nodes are in a stream
and bases the stalling time on that. Currently that is about 15 seconds.
Initial connection delay takes into account the time that already passed
since the connection was established.

This basically gives the attacker one shot per a combination of his own
nodes and the nodes he can connect to, and thus makes the attack much
more difficult to succeed.
7 years ago
Peter Šurda f43e01ed0e Don't send ACK on subscribed chans
If somehow you manage to send a message that includes an ACK part into a
chan, the subscribers would send the ACK back. This shouldn't happen.
7 years ago
Peter Šurda 40f0ff381e blacklist rendering edit fix
Editing of blacklist labels affected the rerendering, because it emits
the changed signal too, and it caused an exception because the address
field was missing at that time. This works around both.
7 years ago
Peter Šurda 0bd89103a7 Don't send unnecessary ACKs
In some situations, it's not necessary to send an ACK. For example, when
the sender is blacklisted, when the message has no content, or when the
address has ACK sending disabled.

Also it's not necessary to rebroadcast empty messages into a mailing
7 years ago
mirrorwish 80c174e417 Save changes to blacklist labels
Fixes mailchuck/PyBitmessage#175

Signed-off-by: Peter Surda <>
7 years ago
mailchuck bcae62938a Unused variable 7 years ago
mailchuck 24a2deed8f Cleanup lockfile on exit design was broken.
Fixed Bitmessage#775
7 years ago
mailchuck 4f26bf1059 private IP range checks
When advertising nodes and when establishing connections, private IP
range checks were not done. This could cause private IPs to be
advertised across the network. Also, some of the checks weren't
Fixes Bitmessage#768
7 years ago
mailchuck 47f1c0c267 Thread names for IPv6
Thread names for IPv6 contained ":". This caused problems in log
7 years ago
mailchuck 89752faceb Newly arrives messages sorting
There could be cases where newly arrives message is not added correctly.
It won't necessarily go to the top, that depends on the sort.
7 years ago
mailchuck 3bde549e5c Version bump for 0.5.7 7 years ago
mailchuck 185d212cb2 Unread count refresh on change 7 years ago
mailchuck 8f1e753cf0 Typo 7 years ago
mailchuck 140b3ddbb8 Test cleanup
Safer this way
7 years ago
mailchuck 66e1a26b33 Popup menu on folders
There are no functions associated with it but sometimes it popped up so
disable it.
7 years ago
mailchuck 7c99899248 updateText was deleted so no need to call it 7 years ago
mailchuck 2dc230db90 Tree rerendering cleanup
Fixes #76
7 years ago
mailchuck 1cc4fac7f4 Unread count cleanup
Addresses #128
7 years ago
mailchuck f5187e16a0 BlackWhitelist rerendering
It used to show entries with no address.
Fixes #170
7 years ago
mailchuck aae5b713b1 Disabling subscriptions should rerender addressbook
Addresses #76
7 years ago
mailchuck 4e4da254fa Addressbook / Tree / Messagelist rendering
Some changes that didn't propagate correctly before now do.
Addresses #76
7 years ago
mailchuck f159133f14 TreeWidget and Addressbook editing propagation
If you change, add or remove an item in a treewidget or addressbook,
messagelists will now autoupdate labels, and sender comboboxes will also
update if applicable.
Fixes #69
7 years ago
mailchuck e6c379cca6 Scroll/zoom in message composing widget
Fixes #169
7 years ago
mailchuck a4c48228fc Messagelist subscription color
Fixes Bitmessage#842
7 years ago
mailchuck 484bdb0782 Quoting fixes
Message compose sometimes misinterpreted quoted message as HTML, causing
rendering screwups. Since we don't support HTML composing, we will treat
all quoted messages as plain text.
7 years ago
mailchuck 2597ac63f6 Zooming info percent based an single step
Zooming in message body view / compose works in single steps
irrespective of wheel sensitivity, and info about zoom level is
displayed in percent rather than font pixel size.
7 years ago
mailchuck d36d6f300e Message body display handling of spaces
After the changes in the message body renderer, spaces were not
correctly handled. Fixes #168
7 years ago
mailchuck 056512a715 Sent folder new message selection fix
Fixes Bitmessage#838
7 years ago
mailchuck 9353e8eff7 Message editor updates
- Does not allow changing fonts (it's ignored once it's sent anyway),
fixes #167
- Allows zooming, fixes #163
7 years ago
mailchuck 32b0d24be2 singleWorker shutdown fix
if singleWorker crashed, the thread couldn't be joined. This both makes
it so that it doesn't crash, as well as reorders the shutdown sequence
so that it is less likely to be triggered.
Fixes Bitmessage#549
7 years ago
mailchuck ec4a16b388 objectProcessorQueue fixes
- it didn't shutdown correctly
- it didn't handle exception correctly (however, if I understand
correctly, this will never be triggered if using blocking get, so it
doesn't affect PyBitmessage)
- flushing size check changed from 1 to 0 (I don't know why it was 1)
7 years ago
Peter Šurda 47f0df6c0b Object processor queue class
Previous commit didn't include the class. This class takes care of queue
size monitoring so that the system doesn't run out of memory.
7 years ago
Peter Šurda e4f31d25fc Flood mitigation optimisation
Flood mitigation was done both in the ObjectProcessorQueue as well as
receiveData threads. This patch removes the mitigation in receiveData
threads and cleans up the one in the ObjectProcessorQueue
7 years ago
mailchuck 2043d796dd Typo 7 years ago
mailchuck a0da175d45 Typo 7 years ago
mailchuck c137e334d2 OpenSSL version for support contact form 7 years ago
mailchuck dc34c00f38 Improve OpenSSL library finder 7 years ago
mailchuck b7e24fab4a DLL path fix in frozen mode
Addresses #152
7 years ago
mailchuck 6a965cd31a Don't test for Qt in daemon mode
Initialisation of the daemon variable was missing at launch.

Fixes #161
7 years ago
itsexe 72f9e29931 fixed some spelling errors 7 years ago
mailchuck 98fab9c568 Message body focus on reply
Fixes #156
7 years ago
mailchuck 43a765515a Remember current search
@rainulf  What's the reasoning behind resetting the search?

Fixes #155
7 years ago
mailchuck b699475906 Clicks in empty message shouldn't produce an error 7 years ago
mailchuck 46494dc3e6 "All accounts" can't be renamed
Minor error
7 years ago
mailchuck f4c2cc5160 Unicode
- subject on replies was not parsed correctly (or should I say was
parsed more than necessary)
- unicode can handle invalid characters without needing a special

Fixes #164
7 years ago
mailchuck 962c36e122 Allow zooming of message body
Uses default system zoom settings (Ctrl-Wheel).
Fixes #163
7 years ago
mailchuck 4033b945ee UPnP status bar update fix 7 years ago
mailchuck 1b36da9327 Save UPnP port
Fixes #129
7 years ago
mailchuck 27874df45f Typo (missing) 7 years ago
mailchuck 3f2108b36f Typo 7 years ago
mailchuck e5675987a7 Fix frozen localisation (OSX)
Fixes Bitmessage#737
7 years ago
mailchuck d7ff86705e Fix frozen localisation
Addresses Bitmessage#737
7 years ago
mailchuck 6f74ffc265 Mac OSX portable mode path
Fixes #150
7 years ago
mailchuck 3b30afea29 Messagelist subject class
Messagelist subjects now are their own class. Fixes #153
Also fixes replies/clipboard for gatewayed messages.
7 years ago
mailchuck d6ec2a2b8d Version bump 7 years ago
mailchuck 0f24fe5a0c Missing import 7 years ago
mailchuck 4647fcb876 Disable label rerendering in messagelist
It's broken and just consumes resources. I'll fix it separately.
7 years ago
mailchuck e650cff42d (Un)read messagelist items
Previous commits broke them, now it renders correctly again.
7 years ago
mailchuck 4b63c4c086 Address Qt.UserData fix
The previous commit broke places where UserData was read from the
mesagelist line, because it's now a string rather than a QVariant. This
actually simplifies things.
7 years ago
mailchuck 879a6f1d68 Messagelist loads faster
Addresses #149. About 5 times faster.
7 years ago
mailchuck 0b4c57a516 Entries missing in messagelist 7 years ago
mailchuck a8053195ea Fix cdecl/stdcall DLL detection
Fixes #146
7 years ago
Peter Šurda 69494594d5 Main Window raising fixes
On OSX and linux, the tray icon now raises window.

Starting a new instance should raise the window too, but it may not work
on linux (on my Ubuntu it just flashes the icon)

Fixes Bitmessage#743
7 years ago
mailchuck ff207c1b56 Portable mode fix
The option should not be available if the directory with the executable
is not writable, such as when running from a dmg on OSX.
7 years ago
mailchuck 4dbd444053 Logging fix 7 years ago
mailchuck ea37913ff1 Html parser fixes
Raw mode improved, avoid HTML parser entirely and just replaces some
7 years ago
mailchuck 07cee7209b Contact support fixes
- typos & formatting
- OS detection crash fixes
7 years ago
Peter Šurda d0b9d75ce1 Fix contact support unix detection 7 years ago
mailchuck 4049662a3a Contact support updates
Yes/No -> True/False
Add Portable mode
7 years ago
mailchuck 3e956509b2 Add PyBitmessage version to contact support 7 years ago
mailchuck 8359b8b202 Contact support user interface
Fixes #25
7 years ago
mailchuck a727847e55 Addresses can be configured not to send acks
Manually by specifying "dontsendack" = true in the address section
7 years ago
mailchuck 4c8ba431e5 Add to blacklist from "All accounts"
It didn't work before
7 years ago
mailchuck 17d045da10 Sensible default maximum difficulty
Fixes #144
7 years ago
mailchuck 1f525da1ff Link follow warning
The message box should be a warning rather than a simple question.
7 years ago
mailchuck eb35f35b83 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
7 years ago
mailchuck 7ef94b446d 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

Also a minor fix in text mode rendering.
7 years ago
mailchuck 6557681a6c 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
7 years ago
mailchuck 751f9108d8 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

Fixes #13
7 years ago
mailchuck 8ff5bf0464 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
7 years ago
mailchuck 4e32125ca3 Copy to clipboard in messagelists
Fixes #142
7 years ago
mailchuck e2fb34e2fb More portable mode fixes 7 years ago
mailchuck 242c8fa9c2 More portable mode fixes 7 years ago
mailchuck 8136b022bc Typos
Still regarding portable mode path fixes
7 years ago
mailchuck 5a45d7dd8f Portable mode fixes
Fixes Bitmessage#379, Bitmessage#341
7 years ago
mailchuck 4f6fd07424 Joining chans interface freeze
Fixes #137
7 years ago
Peter Šurda 538642f236 Label for blacklisting sender fix
It wasn't properly utf-8-ied.
7 years ago
Peter Šurda bdfaa90ecb 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
7 years ago
Peter Šurda 082eb823bb New message appears if viewing account root
Fixes #132
7 years ago
mailchuck d72e5647f4 Fix wrong account type initialiser
Addresses #14
7 years ago
mailchuck 27b8891ab4 Test commit policy commit 7 years ago
mailchuck a5456f792c Fix Addressbook context menu delete 7 years ago
mailchuck 41ac1b89d1 Frozen SMP re-disable try 2 7 years ago
mailchuck 549d91dc68 Re-disable windows SMP frozen support
The recommended workaround didn't work.
7 years ago
mailchuck 1625306be3 Version bump 7 years ago
mailchuck bccc2406a2 Fix double unread count in tray icon 7 years ago
mailchuck d54b22bb89 Initialise inventorySets earlier
In corner cases, they may be referenced before they are populated.
Probably fixes Bitmessage#530
7 years ago
mailchuck 52fe7105a9 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.
7 years ago
mailchuck 27c187283b Unify messagelist rendering
also some minor fixes
7 years ago
mailchuck a3b13b70e2 Add BROADCAST type
also improve sorting
7 years ago
mailchuck be02116af9 Global folder, global search, unread folder
Fixes #38
Fixes #39

Minor unread refresh issues.
7 years ago
mailchuck 6862952c55 Typo
OpenCL config variable setter had a typo
7 years ago
mailchuck 6ad3c956c9 Allow SQL arguments as a list or tuple 7 years ago
mailchuck d75533c6b6 DNS bootstrap over Tor
If proxy type is SOCKS5, it will try to perform DNS bootstrap using the
Tor RESOLVE extension.
7 years ago
mailchuck 1e89616c0f Avoid strings in account types 7 years ago
mailchuck 399100e6d8 PoW support code cleanup
Is now nicer and reports if OpenCL fails
7 years ago
mailchuck 9335f74c61 OpenCL kernel change
This makes it work on my AMD.
7 years ago
mailchuck e7e245fe25 OpenCL GUI settings 7 years ago
mailchuck 0c19e0c2e4 Failure to connect shouln't be an error
It resulted in too many errors in the logs
7 years ago
mailchuck d0b73eb211 SMP fix for frozen Windows 7 years ago
mailchuck aa97b53114 addressGenerator fixes
- addressGenerator got stuck (introduced recently when cleaning up
- do not put addresses into API return queue if API is inactive
- improve translation
7 years ago
mailchuck f9a7a5b6f2 Account in treeWidget more like a QT class
It behaves more like a QT class is supposed to now, it's somewhat
Fixes #122
7 years ago
mailchuck d69c2e097f Cleaner shutdown
Addresses Bitmessage#549
7 years ago
mailchuck 6dbe20a25c Version bump 7 years ago
mailchuck 7b4264a109 Typo 7 years ago
mailchuck f77afe8fae Exception handling 7 years ago
mailchuck 36ddbd365e Typo 7 years ago
mailchuck 410c23e8c0 Typo 7 years ago
mailchuck ff358b1a1f Typo 7 years ago
mailchuck ec68146135 Suppress error on releasing unlocked lock 7 years ago
mailchuck e82e33fa51 UPnP notifications
UPnP will notify you through window status bar.
7 years ago
mailchuck bbdfb1ea54 UPnP cleaner shutdown 7 years ago
mailchuck e4a7e71790 SSL fixes 7 years ago
mailchuck 281630757e SSL fixes 7 years ago
mailchuck 18f7ef06e2 SSL fixes
Handle old Python compatibility better.
7 years ago
mailchuck 74519069f0 outgoingSynSender thread reaping disabled
It was causing delays on shutdown, worse on linux/osx
7 years ago
mailchuck b00c4f24ec Threads close better
- UPnP and outgoingSynSender threads close slightly better.
- extPort initialisation was missing
7 years ago
mailchuck 48b9e50397 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
7 years ago
mailchuck 50be5a2b4c UPnP fixes 7 years ago
mailchuck 8c14641810 Window resize on minimize bugfix
Fixes Bitmessage#243
7 years ago
mailchuck c03c563a74 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
7 years ago
mailchuck cc848cdb65 Typo fix 7 years ago
mailchuck 5432c6e0c8 UPnP logging improvlement 7 years ago
mailchuck 3c9df7151c Logging fix 7 years ago
mailchuck aa55f45a0d Logging fix 7 years ago
Peter Šurda 0270dc3d4d Cleanup UPnP 7 years ago
mailchuck 9338772b1e Logging updates
Came over BM (from "general" channel), I slightly modified it.
7 years ago
mailchuck b7ad34cf15 Trusted peer flood protection
Is not needed.
Fixed Bitmessage#786
7 years ago
mailchuck 960d446104 Ask before deleting a subscription
Fixes #120
7 years ago
mailchuck c2970cd92e Update addressbook on changes
Fixes  #99
- enable/disable new/delete chan/subscription
- also found and fixed a logger crash
7 years ago
mailchuck 1f331f217c Messagelist address tooltip
Fixes #108
7 years ago
mailchuck 8909a535ae Remove extra debug logging 7 years ago
mailchuck dd15d1b6ed 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
7 years ago
mailchuck cd9a7b5157 Missing folders in rerenderTabTreeSubscriptions
I optimised it too much and sometimes folders were missing in the tree.
7 years ago
mailchuck d7817ca2ef Smoother rerenderTabSubscriptions
Does not reset it all the time but adds/removes
Fixes #109
7 years ago
mailchuck 231219a193 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:

keys = root,syslog



keys = syslog

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

keys = syslog

format=%(asctime)s %(threadName)s %(filename)s@%(lineno)d %(message)s
datefmt=%b %d %H:%M:%S
7 years ago
Denilson M. Amorim 28f46cb8b3 Dont run twice if daemon too 7 years ago
Denilson M. Amorim cf610080b9 Squash: Single instance and pop up old instance 7 years ago
mailchuck 46d647460f Version bump
We have 0.5.3 now
7 years ago
mailchuck 2fd85bfa69 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)
7 years ago
mailchuck 049e226ddc Move saving UI state
quit is more appropriate than close event, but it my resurrect the issue
with linux saving config data.
7 years ago
mailchuck 5cb02dc783 Improve blacklist autolabel 7 years ago
mailchuck 1db7635893 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
7 years ago
mailchuck a02ea14233 Blacklist through context menu
Fixes #101
7 years ago
mailchuck c7fb9e6a43 SSL fixes
- uses constants for service flags
- requires SSL to use TLSv1 version (protection against POODLE-style
- retry if sock.recv incomplete
7 years ago
mailchuck 2f874e41be Fix adding/editing entries in addresbook
It didn't sort correctly and didn't update the label correctly when
Fixes #95
7 years ago
mailchuck c804f6c181 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.
7 years ago
mailchuck 53b0d2749b Opportunistic encryption with TLS (1 of 2)
Fixes Bitmessage#264
Fixes Bitmessage#648
7 years ago
mailchuck 25cc1dc287 Unified code for finding source code location
It is already used in 3 places so I put it into a function
7 years ago
mailchuck ceda22ec94 Private IP range update
Addresses Bitmessage#768
7 years ago
mailchuck f68627158d Click on inactive tab
Would cause exception.
7 years ago
mailchuck 0e15b246af Fix broadcast
Any normal address should be able to broadcast. Reported over BM in one
of the chans.
7 years ago
mailchuck 10474b3561 Fix sync status sum
Last commit was broken.
7 years ago
mailchuck 79e199b45a Show sync status in Network tab
Addresses Bitmessage#745 (but no API exposure yet)
7 years ago
mailchuck 5b724f366e Prepare for tree widgets to store settings
Precursor for #12
7 years ago
mailchuck 4b88922104 Translation directory for OSX bundles
Addresses bitmessage#514
7 years ago
mailchuck 8f5d177690 Enabling/disabling color propagation
Fixes #105
7 years ago
mailchuck a85e9ed20e Default message font
Fixes #106 and Bitmesage#248
7 years ago
mailchuck 2947462d45 Unregistering of unregeistered accounts
Since it's unregistered, we don't know where to unregister from.
Fixes #91.
7 years ago