claws.git
3 years agoFix table order.
wwp [Mon, 12 Dec 2016 18:41:56 +0000 (19:41 +0100)]
Fix table order.

3 years agoFix missing items in summaryview's menu declarations.
wwp [Mon, 12 Dec 2016 18:28:06 +0000 (19:28 +0100)]
Fix missing items in summaryview's menu declarations.

3 years agomake list a bit more manageable and remove duplicated items
Paul [Mon, 12 Dec 2016 17:03:23 +0000 (17:03 +0000)]
make list a bit more manageable and remove duplicated items

3 years agoFix wrong call to missing *_unread func (we use the *_read() func
wwp [Mon, 12 Dec 2016 16:36:05 +0000 (17:36 +0100)]
Fix wrong call to missing *_unread func (we use the *_read() func
w/ FALSE as parameter for that).
Add missing new xpm files to Makefile.am.

3 years agoAdd new actions to main window's toolbar: mark, unmark, lock, unlock,
wwp [Mon, 12 Dec 2016 14:30:24 +0000 (15:30 +0100)]
Add new actions to main window's toolbar: mark, unmark, lock, unlock,
mark (all) read, mark (all) unread.
Add new xpm icons for these actions (existing ones are small and made
for the message list) as well as for ignorethread and watchthread
actions.
Rename A_SENDL to A_SEND_LATER, we're not that lazy.

3 years agoAdd new mark-all-unread (and recursively when relevant) action to folder
wwp [Mon, 12 Dec 2016 14:17:15 +0000 (15:17 +0100)]
Add new mark-all-unread (and recursively when relevant) action to folder
context menu, message list and main window menu.

3 years agorename compose_guess_forward_account_from_msginfo() to compose_find_account()
Paul [Mon, 12 Dec 2016 14:02:28 +0000 (14:02 +0000)]
rename compose_guess_forward_account_from_msginfo() to compose_find_account()

3 years agorename compose_entry_mark_default_to() to compose_entry_indicate()
Paul [Mon, 12 Dec 2016 13:58:16 +0000 (13:58 +0000)]
rename compose_entry_mark_default_to() to compose_entry_indicate()

3 years agoRename default_to_(bg)color hiddeng pref and variable to default_header_(bg)color.
wwp [Mon, 12 Dec 2016 13:24:14 +0000 (14:24 +0100)]
Rename default_to_(bg)color hiddeng pref and variable to default_header_(bg)color.

3 years agoFix format, no tabs to align everywhere (at last!).
wwp [Mon, 12 Dec 2016 13:17:43 +0000 (14:17 +0100)]
Fix format, no tabs to align everywhere (at last!).

3 years agoRemove extra entries, not yet in git.
wwp [Mon, 12 Dec 2016 13:14:37 +0000 (14:14 +0100)]
Remove extra entries, not yet in git.

3 years agoFix missing initializers (last field in data struct),
wwp [Mon, 12 Dec 2016 13:10:04 +0000 (14:10 +0100)]
Fix missing initializers (last field in data struct),
reworked table to a human readable format.

3 years agomore highlighted of automatically set header entries in Compose window
Paul [Mon, 12 Dec 2016 11:39:16 +0000 (11:39 +0000)]
more highlighted of automatically set header entries in Compose window

fix highlighting of multiple addresses set in account prefs
highlight From if not current account

3 years agodon't remove the To when changing account
Paul [Mon, 12 Dec 2016 10:17:59 +0000 (10:17 +0000)]
don't remove the To when changing account

3 years agosome more colouring based on folder prefs override
Paul [Sun, 11 Dec 2016 17:44:32 +0000 (17:44 +0000)]
some more colouring based on folder prefs override

3 years agofix colouring of auto-filled headers
Paul [Sun, 11 Dec 2016 10:04:30 +0000 (10:04 +0000)]
fix colouring of auto-filled headers

3 years agoFix bug #3574: Template addressing
Ricardo Mones [Sat, 10 Dec 2016 12:32:41 +0000 (13:32 +0100)]
Fix bug #3574: Template addressing

Remove artificial limitations to values of email addresses on templates:
these strings are already parsed and split when the template is applied
in compose window.

3 years agoMake last colors configurable using hidden prefs: tags bg/fg colors in
wwp [Fri, 9 Dec 2016 16:42:46 +0000 (17:42 +0100)]
Make last colors configurable using hidden prefs: tags bg/fg colors in
message view, default-to header field in compose view, and quicksearch
active + error.

3 years agoRevert "Remove dead code, this changed signal doesn't exist and we've also".
wwp [Fri, 9 Dec 2016 15:26:21 +0000 (16:26 +0100)]
Revert "Remove dead code, this changed signal doesn't exist and we've also".

This reverts commit fe0f832b37541ee1ab7350bc5ab645034d469990.

3 years agoRemove dead code, this changed signal doesn't exist and we've also
wwp [Fri, 9 Dec 2016 15:21:29 +0000 (16:21 +0100)]
Remove dead code, this changed signal doesn't exist and we've also
probably removed parts of the highlight-active-account field feature
a while ago.

3 years agoUpdate authors lists
Ricardo Mones [Tue, 6 Dec 2016 12:17:06 +0000 (13:17 +0100)]
Update authors lists

3 years agoFix Debian bug #846170: incorrect IMAP UID handling
Ricardo Mones [Tue, 6 Dec 2016 12:07:32 +0000 (13:07 +0100)]
Fix Debian bug #846170: incorrect IMAP UID handling

Patch by Darac Marjal <darac@darac.org.uk>

3 years agoEnable icons of stock GTK buttons on Windows.
Andrej Kacian [Fri, 2 Dec 2016 11:48:30 +0000 (12:48 +0100)]
Enable icons of stock GTK buttons on Windows.

3 years agoFix closing of description window using WM controls.
Andrej Kacian [Tue, 29 Nov 2016 18:23:14 +0000 (19:23 +0100)]
Fix closing of description window using WM controls.

Closes bug #3740.

3 years agoon first run, use --alternate-config-dir (if set) on prefs migration
Paul [Mon, 28 Nov 2016 12:50:32 +0000 (12:50 +0000)]
on first run, use --alternate-config-dir (if set) on prefs migration

prevents useless creation of ~/.claws-mail directory

3 years agoFix more compile warnings for Windows in socket.c.
Andrej Kacian [Thu, 24 Nov 2016 19:13:10 +0000 (20:13 +0100)]
Fix more compile warnings for Windows in socket.c.

3 years agoRemoved unused w32_get_uid_equiv() function.
Andrej Kacian [Thu, 24 Nov 2016 19:19:31 +0000 (20:19 +0100)]
Removed unused w32_get_uid_equiv() function.

3 years agoFix two unused variable warnings in ssl.c for Windows build.
Andrej Kacian [Thu, 24 Nov 2016 19:05:02 +0000 (20:05 +0100)]
Fix two unused variable warnings in ssl.c for Windows build.

3 years agomake go to next/previous sort order aware
Paul [Wed, 23 Nov 2016 14:06:21 +0000 (14:06 +0000)]
make go to next/previous sort order aware

3 years agodon't ignore auto-account selection when forwarding on IMAP and NNTP accounts
Paul [Tue, 22 Nov 2016 09:52:06 +0000 (09:52 +0000)]
don't ignore auto-account selection when forwarding on IMAP and NNTP accounts

patch by Blatinox

3 years agoobey 'always_show_msg' on "no more [...] msgs. go to next folder?"
Paul [Mon, 21 Nov 2016 08:47:52 +0000 (08:47 +0000)]
obey 'always_show_msg' on "no more [...] msgs. go to next folder?"

3 years agofix 'Go to' moving off current, unopened msg, and dialogue to go next folder
Paul [Thu, 17 Nov 2016 19:19:08 +0000 (19:19 +0000)]
fix 'Go to' moving off current, unopened msg, and dialogue to go next folder

T

3 years agofix text selection when double-clicking quoted text and 'collapse quoted text on...
Paul [Thu, 17 Nov 2016 09:46:31 +0000 (09:46 +0000)]
fix text selection when double-clicking quoted text and 'collapse quoted text on double click' is turned off

Patch by Andrej

3 years agoamendment to last commit, to avoid interfering with Shift+[Up|Down]
Paul [Wed, 16 Nov 2016 17:01:08 +0000 (17:01 +0000)]
amendment to last commit, to avoid interfering with Shift+[Up|Down]

3 years agomake up/down key navigation obey 'always_show_msg'
Paul [Wed, 16 Nov 2016 16:30:15 +0000 (16:30 +0000)]
make up/down key navigation obey 'always_show_msg'

3 years agofix some menu sensitivity issues
Paul [Wed, 16 Nov 2016 08:47:03 +0000 (08:47 +0000)]
fix some menu sensitivity issues

3 years agoUse summary_select_node() more, to get more consistent behaviour.
Andrej Kacian [Mon, 14 Nov 2016 17:37:04 +0000 (18:37 +0100)]
Use summary_select_node() more, to get more consistent behaviour.

3 years agoImprove scrolling in summary_key_pressed().
Andrej Kacian [Sat, 12 Nov 2016 22:05:42 +0000 (23:05 +0100)]
Improve scrolling in summary_key_pressed().

3 years agoAllow sending empty messages in Session (just \r\n).
Andrej Kacian [Sat, 12 Nov 2016 19:03:59 +0000 (20:03 +0100)]
Allow sending empty messages in Session (just \r\n).

3 years agoMerge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws
wwp [Sat, 12 Nov 2016 10:13:12 +0000 (11:13 +0100)]
Merge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws

3 years agoFix FR string.
wwp [Sat, 12 Nov 2016 10:12:50 +0000 (11:12 +0100)]
Fix FR string.

3 years agoAdd open_selected_on_folder_open to common prefs.
Andrej Kacian [Thu, 10 Nov 2016 19:34:17 +0000 (20:34 +0100)]
Add open_selected_on_folder_open to common prefs.

This option overrides always_show_message_when_selected
option when selecting initial message during folder open.

This is useful so that the message's unread flag doesn't
get unset before user had the chance of noticing it, or
that an overly large message doesn't get automatically
selected if user doesn't want it (e.g. IMAP over a slow
connection).

3 years agoHonor display_msg == 0 in PostponedSelectData struct.
Andrej Kacian [Fri, 11 Nov 2016 15:40:37 +0000 (16:40 +0100)]
Honor display_msg == 0 in PostponedSelectData struct.

3 years agoupdated de.po
Paul [Thu, 10 Nov 2016 10:51:18 +0000 (10:51 +0000)]
updated de.po

submitted by Simon Legner <Simon.Legner@gmail.com>

3 years agoGet rid of this \t char.
wwp [Mon, 7 Nov 2016 17:25:42 +0000 (18:25 +0100)]
Get rid of this \t char.

3 years agoFix bug number and spacing
Ricardo Mones [Sun, 6 Nov 2016 17:16:28 +0000 (18:16 +0100)]
Fix bug number and spacing

3 years agoFix space after comma
Ricardo Mones [Sun, 6 Nov 2016 17:12:40 +0000 (18:12 +0100)]
Fix space after comma

3 years agofix string. thanks to Pierre Fortin.
Paul [Sun, 6 Nov 2016 12:35:47 +0000 (12:35 +0000)]
fix string. thanks to Pierre Fortin.

3 years agofor release 3.14.1 3.14.1
Paul [Sun, 6 Nov 2016 11:59:57 +0000 (11:59 +0000)]
for release 3.14.1

3 years agoupdated translations
Paul [Sun, 6 Nov 2016 11:13:22 +0000 (11:13 +0000)]
updated translations

submitted by David Medina, David Vachulka, Erik P. Olsen, Ricardo Mones,
Flammie A Pirinen, Tristan Chabredier, Isratine Citizen, M. Sulchan
Darmawan, Luigi Votta, Petter Adsen, Marcel Pol, Frederico Goncalves
Guimaraes, Mikhail Kurinnoi, Slavko, Andreas Rönnquist, Numan
Demirdöğen, Mark Chang

3 years agoUpdate list of TLDs for release
Ricardo Mones [Sun, 6 Nov 2016 10:19:39 +0000 (11:19 +0100)]
Update list of TLDs for release

3 years agomissing from g8bd6066
Paul [Sat, 5 Nov 2016 11:46:05 +0000 (11:46 +0000)]
missing from g8bd6066

3 years agoMinimize scrolling in gtkut_ctree_node_move_if_on_the_edge().
Andrej Kacian [Sat, 5 Nov 2016 11:18:53 +0000 (12:18 +0100)]
Minimize scrolling in gtkut_ctree_node_move_if_on_the_edge().

Instead of scrolling to get the target row to the middle of
the viewport (offset 0.5), scroll to offsets 0.2 or 0.8 if
the target row is above or below current viewport,
respectively. This makes it consistent with scrolling when
the target row is only partially visible.

3 years agoOnly scroll summaryview to the middle when necessary.
Andrej Kacian [Sat, 5 Nov 2016 11:00:33 +0000 (12:00 +0100)]
Only scroll summaryview to the middle when necessary.

3 years agoDo not process folder marks when just refreshing summaryview.
Andrej Kacian [Sat, 5 Nov 2016 10:09:59 +0000 (11:09 +0100)]
Do not process folder marks when just refreshing summaryview.

3 years agomore fixes for Go To actions not obeying 'always_show_msg' option
Paul [Sat, 5 Nov 2016 10:02:18 +0000 (10:02 +0000)]
more fixes for Go To actions not obeying 'always_show_msg' option

3 years agoAdded missing symbol to vcalendar's claws.def.
Andrej Kacian [Fri, 4 Nov 2016 11:16:19 +0000 (12:16 +0100)]
Added missing symbol to vcalendar's claws.def.

3 years agoUpdate license stanza
Ricardo Mones [Thu, 27 Oct 2016 13:32:59 +0000 (15:32 +0200)]
Update license stanza

3 years agoMake pdf_viewer icons themeable
Ricardo Mones [Wed, 26 Oct 2016 21:39:23 +0000 (23:39 +0200)]
Make pdf_viewer icons themeable

3 years agoremoved unnecessary do_refresh flag from summary_select_node()
Paul [Wed, 26 Oct 2016 14:34:08 +0000 (15:34 +0100)]
removed unnecessary do_refresh flag from summary_select_node()

3 years agoin the UI replace 'POP3' with 'POP' and 'IMAP4' with 'IMAP'
Paul [Tue, 25 Oct 2016 11:21:07 +0000 (12:21 +0100)]
in the UI replace 'POP3' with 'POP' and 'IMAP4' with 'IMAP'

3 years agoand another 'SSL' to 'SSL/TLS'
Paul [Tue, 25 Oct 2016 10:31:49 +0000 (11:31 +0100)]
and another 'SSL' to 'SSL/TLS'

3 years agomore 'SSL' to 'SSL/TLS'
Paul [Tue, 25 Oct 2016 10:15:39 +0000 (11:15 +0100)]
more 'SSL' to 'SSL/TLS'

3 years agomore 'SSL' to 'SSL/TLS'
Paul [Tue, 25 Oct 2016 10:15:02 +0000 (11:15 +0100)]
more 'SSL' to 'SSL/TLS'

3 years agorename SSL to SSL/TLS
Paul [Tue, 25 Oct 2016 09:36:35 +0000 (10:36 +0100)]
rename SSL to SSL/TLS

Using just 'TLS' is ambiguous. Sometimes it refers to encrypted
connection with TLSv1.0/1.1/1.2, sometimes it refers to STARTTLS
command. So be more specific about what is what.

Patch by Christian Hesse, with some modifications

3 years agomake /View/Go to/... respect the always_show_msg option, and refactor a bit
Paul [Tue, 25 Oct 2016 09:13:53 +0000 (10:13 +0100)]
make /View/Go to/... respect the always_show_msg option, and refactor a bit

3 years agoWhile we're at it, fix typos like prefered occurences in variable names.
wwp [Sat, 22 Oct 2016 12:56:58 +0000 (14:56 +0200)]
While we're at it, fix typos like prefered occurences in variable names.

3 years agoFix typo (thanks lintian.d.o!)
Ricardo Mones [Sat, 22 Oct 2016 10:57:49 +0000 (12:57 +0200)]
Fix typo (thanks lintian.d.o!)

3 years agoFix resource leak and missing return
Ricardo Mones [Mon, 17 Oct 2016 22:13:24 +0000 (00:13 +0200)]
Fix resource leak and missing return

3 years agoLibravatar: refactor image retrieval
Ricardo Mones [Mon, 17 Oct 2016 12:09:25 +0000 (14:09 +0200)]
Libravatar: refactor image retrieval

And use a synchronous thread for fetching, in preparation
of a future asynchronous fetching. Thanks Andrej for the
ideas.

3 years agoDon't check for encrypt() on FreeBSD, it's not required to build.
Pawel Pekala [Tue, 11 Oct 2016 20:47:51 +0000 (22:47 +0200)]
Don't check for encrypt() on FreeBSD, it's not required to build.
Recently on 12-CURRENT this function was removed completly making
configure script fail.

3 years agoFix typo from commit 63e19c6.
Andrej Kacian [Tue, 11 Oct 2016 12:16:05 +0000 (14:16 +0200)]
Fix typo from commit 63e19c6.

3 years agoFix wrong argument order in Windows file choosers.
Andrej Kacian [Tue, 11 Oct 2016 11:04:36 +0000 (13:04 +0200)]
Fix wrong argument order in Windows file choosers.

3 years agoChange mention of "mydomain.com" to "example.org".
Andrej Kacian [Mon, 10 Oct 2016 18:32:09 +0000 (20:32 +0200)]
Change mention of "mydomain.com" to "example.org".

Fixes bug #3712.

3 years agoImprove plural handling of a file insert string.
Andrej Kacian [Mon, 10 Oct 2016 18:08:49 +0000 (20:08 +0200)]
Improve plural handling of a file insert string.

Fixes bug #3711.

3 years agoFix bug #3705: active account Mail Address corrupted…
Ricardo Mones [Wed, 5 Oct 2016 07:51:31 +0000 (09:51 +0200)]
Fix bug #3705: active account Mail Address corrupted…

…when address in Message-ID is used

3 years agoFix a couple of typos
Ricardo Mones [Tue, 4 Oct 2016 13:29:57 +0000 (15:29 +0200)]
Fix a couple of typos

3 years agoFix #3014: The icon for folder drafts with hide…
Ricardo Mones [Mon, 3 Oct 2016 13:54:01 +0000 (15:54 +0200)]
Fix #3014: The icon for folder drafts with hide…

…read messages is the same as when not hidden

Fix disables hiding thread/messages options in draft folders,
hence hrm mode icons are not required for them. Values already
set for these options in draft folders are also ignored.

Many thanks to Andrej and Paul for their feedback on this one.

3 years agoRemoved a superfluous debug_print() call.
Andrej Kacian [Sun, 2 Oct 2016 17:04:57 +0000 (19:04 +0200)]
Removed a superfluous debug_print() call.

3 years agoRemove useless code from e22cbed.
Andrej Kacian [Sat, 1 Oct 2016 22:11:56 +0000 (00:11 +0200)]
Remove useless code from e22cbed.

References header was already being honored in drafts.

3 years agoDo not add Message-ID for draft, unless it already has one.
Andrej Kacian [Sat, 1 Oct 2016 21:41:19 +0000 (23:41 +0200)]
Do not add Message-ID for draft, unless it already has one.

We now add a Message-ID header only when queuing a message,
and we honor existing Message-ID and References headers in
drafts, if there are any.

3 years agofix pixmap
Paul [Sat, 1 Oct 2016 19:28:39 +0000 (20:28 +0100)]
fix pixmap

fixes "initialization from incompatible pointer type" warning

3 years agoFix some harmless compiler warnings.
Andrej Kacian [Sat, 1 Oct 2016 15:55:10 +0000 (17:55 +0200)]
Fix some harmless compiler warnings.

Some variables in notification_popup.c were peeking
out of their ifdefs, and I forgot to remove an
unused variable in vcal_meeting_gtk.c in my commit
8d93e8c.

3 years agoMake Message-ID string generation less confusing.
Andrej Kacian [Sat, 1 Oct 2016 14:22:44 +0000 (16:22 +0200)]
Make Message-ID string generation less confusing.

Instead of having to prepare one part, then second
part in advance and pass them to generate_msgid()
which does its own voodoo with them, we now just pass
a pointer to PrefsAccount to
prefs_account_generate_msgid(), and it does all of it
on its own, returning pointer to a newly allocated
string.

3 years agoNotification plugin: Port from libindicate to unity/messaging menu
Holger Berndt [Thu, 29 Sep 2016 20:21:02 +0000 (22:21 +0200)]
Notification plugin: Port from libindicate to unity/messaging menu

This is a slightly modified version of the patch from Sebastien Noel,
fixes bug #2665

3 years agoGData plugin: Refresh auth token periodically
Holger Berndt [Wed, 28 Sep 2016 20:44:00 +0000 (22:44 +0200)]
GData plugin: Refresh auth token periodically

Fixes bug #3638

3 years agoGData plugin: Make global data static
Holger Berndt [Wed, 28 Sep 2016 20:22:27 +0000 (22:22 +0200)]
GData plugin: Make global data static

3 years agoUse a spinbutton for port number also in clamd
Ricardo Mones [Wed, 28 Sep 2016 22:23:20 +0000 (00:23 +0200)]
Use a spinbutton for port number also in clamd

Default value is now 0 instead of an empty string.

3 years agoUse hours/minutes UI for vcalendar alert time
Ricardo Mones [Wed, 28 Sep 2016 22:12:37 +0000 (00:12 +0200)]
Use hours/minutes UI for vcalendar alert time

3 years agoGData plugin: Unify indent accross file
Holger Berndt [Wed, 28 Sep 2016 10:57:12 +0000 (12:57 +0200)]
GData plugin: Unify indent accross file

3 years agoadd hidden pref 'reqrite_first_from'
Paul [Mon, 26 Sep 2016 09:59:43 +0000 (10:59 +0100)]
add hidden pref 'reqrite_first_from'

'0' or '1'. This works around a limitation of some servers with
'overly-liberal parsers'. When this is turned on and the Content-
Transfer-Encoding is set to 8bit or 7bit, in a message body starting
with 'From ' the 'From ' will become '=46rom ' and the
Content-Transfer-Encoding will be changed to Quoted-Printable. When it
is turned off no such modification will be made but it is very likely
that an MTA will convert the 'From ' to '>From '. See RFC 4155 for
further details. Default value is '1', turned on.

3 years agoChange home directory fallback to "C:\Claws-mail" on Windows.
Andrej Kacian [Sun, 25 Sep 2016 14:22:16 +0000 (16:22 +0200)]
Change home directory fallback to "C:\Claws-mail" on Windows.

It is unlikely ever to be used, since CSIDL_APPDATA special
folder is guaranteed to be defined, but still...

3 years agoFix absolute path detection in mh_create_tree() on Windows.
Andrej Kacian [Sat, 24 Sep 2016 22:19:50 +0000 (00:19 +0200)]
Fix absolute path detection in mh_create_tree() on Windows.

3 years agoEnable keeping old items by default
Ricardo Mones [Fri, 23 Sep 2016 07:33:10 +0000 (09:33 +0200)]
Enable keeping old items by default

Be more conservative towards feed data to avoid unwanted and
unrecoverable loss of items.

Users which don't want to store old items can easily disable
this in feed preferences and also remove obsolete items with
the “Trim” button.

3 years agoUse Delete button instead of Remove (tooltips and other places already
wwp [Fri, 23 Sep 2016 07:26:47 +0000 (09:26 +0200)]
Use Delete button instead of Remove (tooltips and other places already
talk about deletion) in prefs dialogs. Reassign some keyboard hotkeys
accordingly, 'e' for Delete.

3 years agoNormalize Webcal name capitalization everywhere (instead of WebCal, webCal,
wwp [Fri, 23 Sep 2016 07:25:14 +0000 (09:25 +0200)]
Normalize Webcal name capitalization everywhere (instead of WebCal, webCal,
webcal). Rephrase a bit a confirmation dialog to talk about subscription
instead of folder.

3 years agoBetter handle NULL path arguments in w32_filesel.c
Andrej Kacian [Thu, 22 Sep 2016 12:02:09 +0000 (14:02 +0200)]
Better handle NULL path arguments in w32_filesel.c

Fixes bug #3697.

3 years agoRemove unused function
Ricardo Mones [Tue, 20 Sep 2016 17:27:26 +0000 (19:27 +0200)]
Remove unused function

3 years agoDo not abuse macro for debugging
Ricardo Mones [Tue, 20 Sep 2016 17:25:41 +0000 (19:25 +0200)]
Do not abuse macro for debugging

3 years agoFix using client TLS certificates for GnuTLS 3.0 and up.
Andrej Kacian [Sun, 18 Sep 2016 08:46:58 +0000 (10:46 +0200)]
Fix using client TLS certificates for GnuTLS 3.0 and up.

3.0 introduced new API for setting client certificates,
gnutls_certificate_set_retrieve_function2().

This fixes bug #3684.