Add i18n context to two more messages

Change-Id: Ia0a4da79b051ff5b3c53868092d2764335eaa44b
Remove inconsistent use of label term

Now tags are called tags everywhere in the UI.

Change-Id: I7495b609379521a33892962bba1a8e9a2a342f71
Marking messages as read is now configurable

Change-Id: Iedb51b6db45746d31e219872182d95e478ec61ff
make the setings dialog adapt to the pages size

on updateWidgets, the dialog casually grows to
prevent scrollbars, could need clamping to a
defined maximum (from when on to take the
scrollbars rather than growing too out of screen)

Change-Id: I5613c9bbd114823033bd9eff119591d3fbd86421
Restore network connectivity after a brand new profile appears

There was a subtle bug -- if Trojita was already running and offline,
and a new network configuration got added (such as after plugging an
already-configured cellphone), the QNetworkSession was not getting
re-created with the new network configuration. This happened on X11 with
NetworkManager, where each QNetworkConfiguration apparently corresponds
to either a network device, or a WiFi AP, or a dial-up connection, etc.

Change-Id: I044625085fdb049c812eb0f178cca4a63356a686
Use targets defined by Qt5Linguist when looking for linguist binaries when available

The cmake file shipped with Qt5Linguist provides targets for lupdate, lrelease and
lconvert, so let's use them instead of looking for those binaries on our own.

BUG: 340062
Change-Id: I80d5450274ff20e3ed80fb78f1e9bf3623cd1795
Merge "Use targets defined by Qt5Linguist when looking for linguist binaries when available"
SVN_SILENT made messages (after extraction)
Add version detection for Mavericks (10.9) and Yosemite (10.10)

Change-Id: I8cda77dc99678f7f879ce77ef14077cdadf9f9df
Add proper credits for Marko Käning

Change-Id: Ifde2d47618d26bc06f4dc50157a136b4d28dd7bf
Move STARTTLS persistence outside of the GUI

This is a logical change which should be implemented within the core
logic and not within a layer which is inherently UI-specific.

To put credit where credit is due, I found this while looking through
the public bug list for Dekko, the Ubuntu fork of Trojita. I'm not
saying "thanks for reporting", just stating what led me to fix this.

Change-Id: Id21273560b1e4511d38264da41bce0b448fd222b
IMAP: More descriptive error messages for connection failures

Change-Id: I7bfb747b3f0e003af2e1f6e76c47b3c70a25c311
Tell the user why a connection failed

Previously, these were only visible in the log, and about the only clue
a user would get on why nothing happens was the offline indicator.
That's not really terribly user-friendly.

Change-Id: Idd35f92a145c0e0fcd8c735ee68c9c29e606cad9
Fix handling/debugging of TLS state

When the network is slow and user is fast, it's possible to switch into
offline mode while the SSL is still in progress, and therefore one gets
a "21" on stderr. It's better to eat these responses silently, and
there's no need for debugging this through a qDebug (right?).

Change-Id: I6a7e2615b7022039cbb04191ad7776bccd879ace
refactoring: clearer name for a method which aborts the connection during initial setup

As suggested by Thomas, "logout" might imply that a connection got as
far as to actually sending the credentials, and that this action would
actually send a LOGOUT. That's not the case at all here.

Change-Id: I59545b1c270475a0ee27d721d26eb9830f21e1fd
Fix a typo

Change-Id: If3f0deb19f6a9bb8e0d50575e936a56dee44f6fc
tests: Check basic properties of RFC2047 phrase encoding

Change-Id: I7e4bddf1323f86ee645107e92683577a11f0b699
Fix the RFC2047 decoder for "phrase production"

This is intended to fix a non-conformance when the decoder was used in
context of the "word in phrase" production as per RFC2047 section 5 (3).
That section makes it clear that e.g. parentheses are not allowed to be
sent unescaped in these contexts; that's because e.g. parentheses
indicate a RFC5322-style comment.

This is btw what Gerrit creates, but there's little that we could do
(besides fixing Gerrit, which I'll do shortly).

Change-Id: Ic0d3dff8408da3e28a34eadee4335a6c63c0525e