claws.git
9 months agoFix typo in variable name
Ricardo Mones [Sun, 10 Feb 2019 11:51:53 +0000 (12:51 +0100)]
Fix typo in variable name

9 months agoShow number of cleared Litehtml cache images on debug
Andrej Kacian [Fri, 8 Feb 2019 19:09:38 +0000 (20:09 +0100)]
Show number of cleared Litehtml cache images on debug

9 months agoAdd image_cache_size pref to Litehtml
Andrej Kacian [Fri, 8 Feb 2019 19:05:06 +0000 (20:05 +0100)]
Add image_cache_size pref to Litehtml

9 months agoImplement size limit for Litehtml image cache
Andrej Kacian [Fri, 8 Feb 2019 18:42:54 +0000 (19:42 +0100)]
Implement size limit for Litehtml image cache

9 months agoSwitch Litehtml's image cache from std::map to std::list
Andrej Kacian [Fri, 8 Feb 2019 17:33:00 +0000 (18:33 +0100)]
Switch Litehtml's image cache from std::map to std::list

This makes the cache ordered, so we are able to remove
oldest entries if we want to trim memory usage.

9 months agoDo not build the litehtml plugin if a C++ compiler is not available
Andrej Kacian [Sun, 3 Feb 2019 13:50:30 +0000 (14:50 +0100)]
Do not build the litehtml plugin if a C++ compiler is not available

9 months agoMake Litehtml's "Copy Link" menuitem actually do something
Andrej Kacian [Fri, 1 Feb 2019 20:33:36 +0000 (21:33 +0100)]
Make Litehtml's "Copy Link" menuitem actually do something

9 months agoImplement link context menu in Litehtml
Andrej Kacian [Fri, 1 Feb 2019 15:55:48 +0000 (16:55 +0100)]
Implement link context menu in Litehtml

9 months agoAdd lh_widget::get_href_at()
Andrej Kacian [Fri, 1 Feb 2019 15:55:15 +0000 (16:55 +0100)]
Add lh_widget::get_href_at()

9 months agoFix possible memory leak
Michael Rasmussen [Tue, 29 Jan 2019 23:29:12 +0000 (00:29 +0100)]
Fix possible memory leak

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoMake Litehtml's curl writefunction add data directly to the GInputStream
Andrej Kacian [Tue, 29 Jan 2019 23:09:11 +0000 (00:09 +0100)]
Make Litehtml's curl writefunction add data directly to the GInputStream

This saves us some unnecessary reallocs, as data
inside a GMemoryInputStream do not need to be
contiguous.

9 months agoMake Litehtml's curl write function a regular function instead of a static member...
Andrej Kacian [Tue, 29 Jan 2019 22:52:36 +0000 (23:52 +0100)]
Make Litehtml's curl write function a regular function instead of a static member function of the http class

9 months agoFix a memory leak in Litehtml plugin's http loader
Andrej Kacian [Tue, 29 Jan 2019 22:13:51 +0000 (23:13 +0100)]
Fix a memory leak in Litehtml plugin's http loader

9 months agoFix a huge memory leak in Litehtml
Andrej Kacian [Tue, 29 Jan 2019 21:23:54 +0000 (22:23 +0100)]
Fix a huge memory leak in Litehtml

9 months agoProperly free previous document from memory in litehtml's clear()
Andrej Kacian [Tue, 29 Jan 2019 20:47:53 +0000 (21:47 +0100)]
Properly free previous document from memory in litehtml's clear()

We also call paint_white() earlier in redraw().
This results in properly clearing the previously
rendered html content when opening a different
HTML part.

9 months agoMake Litehtml plugin open links in configured way
Andrej Kacian [Tue, 29 Jan 2019 19:12:41 +0000 (20:12 +0100)]
Make Litehtml plugin open links in configured way

9 months agoRefactor http class to prevent memory leak
Michael Rasmussen [Sun, 27 Jan 2019 11:21:37 +0000 (12:21 +0100)]
Refactor http class to prevent memory leak

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoRemove unused stuff
Michael Rasmussen [Sun, 27 Jan 2019 00:11:24 +0000 (01:11 +0100)]
Remove unused stuff

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoAdded preferences page to LiteHTML plugin and make it respect the enable_remote_conte...
Andrej Kacian [Sat, 26 Jan 2019 20:59:15 +0000 (21:59 +0100)]
Added preferences page to LiteHTML plugin and make it respect the enable_remote_content pref

Only "enable_remote_content" pref for now.

9 months agoNo need to configure CURLOPT_WRITEFUNCTION twice
Michael Rasmussen [Fri, 25 Jan 2019 23:15:04 +0000 (00:15 +0100)]
No need to configure CURLOPT_WRITEFUNCTION twice

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoUse debug_print() and g_warning() instead of g_log() in litehtml_viewer
Andrej Kacian [Fri, 25 Jan 2019 22:49:32 +0000 (23:49 +0100)]
Use debug_print() and g_warning() instead of g_log() in litehtml_viewer

9 months agoFix URL display in statusbar when hovering over a link in litehtml_viewer
Andrej Kacian [Fri, 25 Jan 2019 21:49:49 +0000 (22:49 +0100)]
Fix URL display in statusbar when hovering over a link in litehtml_viewer

9 months agoUpdate current version of litehtml. Fix a crash when document contains no fonts
Michael Rasmussen [Sat, 1 Dec 2018 17:36:46 +0000 (18:36 +0100)]
Update current version of litehtml. Fix a crash when document contains no fonts

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoUse statusbar for notification. Begin print implementation
Michael Rasmussen [Fri, 16 Nov 2018 16:18:45 +0000 (17:18 +0100)]
Use statusbar for notification. Begin print implementation

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoProper fix for memory leak
Michael Rasmussen [Fri, 16 Nov 2018 16:13:05 +0000 (17:13 +0100)]
Proper fix for memory leak

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoFix memory leak
Michael Rasmussen [Thu, 15 Nov 2018 22:12:11 +0000 (23:12 +0100)]
Fix memory leak

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoDo not use G_LOG_LEVEL_ERROR. Makes claws crash
Michael Rasmussen [Thu, 15 Nov 2018 22:06:29 +0000 (23:06 +0100)]
Do not use G_LOG_LEVEL_ERROR. Makes claws crash

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoFix missing includes
Michael Rasmussen [Sat, 10 Nov 2018 02:11:21 +0000 (03:11 +0100)]
Fix missing includes

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoFix wrong cursor type
Michael Rasmussen [Fri, 9 Nov 2018 16:08:56 +0000 (17:08 +0100)]
Fix wrong cursor type

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoChange cursor type when hoover over link
Michael Rasmussen [Fri, 9 Nov 2018 16:00:50 +0000 (17:00 +0100)]
Change cursor type when hoover over link

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoUpdate TODO
Michael Rasmussen [Fri, 9 Nov 2018 00:57:34 +0000 (01:57 +0100)]
Update TODO

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoImplemented support for links
Michael Rasmussen [Fri, 9 Nov 2018 00:56:29 +0000 (01:56 +0100)]
Implemented support for links

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoI am tired ;-)
Michael Rasmussen [Wed, 7 Nov 2018 23:50:37 +0000 (00:50 +0100)]
I am tired ;-)

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoCleaner code a fix memory leak
Michael Rasmussen [Wed, 7 Nov 2018 23:45:52 +0000 (00:45 +0100)]
Cleaner code a fix memory leak

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoRefactor image loading to a separate class. Add dependency to curl
Michael Rasmussen [Wed, 7 Nov 2018 22:49:35 +0000 (23:49 +0100)]
Refactor image loading to a separate class. Add dependency to curl

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoImplement image handling
Michael Rasmussen [Wed, 7 Nov 2018 02:20:11 +0000 (03:20 +0100)]
Implement image handling

Signed-off-by: Michael Rasmussen <mir@datanom.net>
9 months agoInitial commit of litehtml_viewer
Michael Rasmussen [Tue, 6 Nov 2018 18:50:31 +0000 (19:50 +0100)]
Initial commit of litehtml_viewer
See TODO for missing functionality.

Signed-off-by: Michael Rasmussen <mir@datanom.net>
10 months agoFix a small memory leak in rssyl_remove_msgs()
Andrej Kacian [Fri, 8 Feb 2019 18:49:27 +0000 (19:49 +0100)]
Fix a small memory leak in rssyl_remove_msgs()

10 months agoput displayed headers on the right, hidden headers on the left. a layout shared by...
Paul [Tue, 29 Jan 2019 13:30:26 +0000 (13:30 +0000)]
put displayed headers on the right, hidden headers on the left. a layout shared by other, similar prefs windows

10 months agoFix possible stack overflow in vcalendar's Curl data handler
Andrej Kacian [Sun, 27 Jan 2019 10:45:38 +0000 (11:45 +0100)]
Fix possible stack overflow in vcalendar's Curl data handler

Allocate the VLA on heap instead.

10 months agoUse hardcoded SHA digest length in pkcs5_pbkdf2.c
Andrej Kacian [Sun, 27 Jan 2019 10:38:36 +0000 (11:38 +0100)]
Use hardcoded SHA digest length in pkcs5_pbkdf2.c

This makes -Wvla happy and saves us two GnuTLS API calls
with no real downside.

10 months agoMake is_toplvl_domain() aware that TLDs can be longer than 6 characters
Andrej Kacian [Sun, 27 Jan 2019 09:50:22 +0000 (10:50 +0100)]
Make is_toplvl_domain() aware that TLDs can be longer than 6 characters

10 months agoDo not define our own strcasestr() if it is available
Andrej Kacian [Fri, 25 Jan 2019 22:27:18 +0000 (23:27 +0100)]
Do not define our own strcasestr() if it is available

10 months agoFix a compiler warning
Andrej Kacian [Sun, 20 Jan 2019 19:00:49 +0000 (20:00 +0100)]
Fix a compiler warning

10 months agoRemove unneeded w32_stdio.c
Andrej Kacian [Sun, 20 Jan 2019 18:45:23 +0000 (19:45 +0100)]
Remove unneeded w32_stdio.c

10 months agoDisable operations around the x_display variable on non-Unix
Andrej Kacian [Sun, 20 Jan 2019 18:41:00 +0000 (19:41 +0100)]
Disable operations around the x_display variable on non-Unix

10 months agoUse G_GSIZE_FORMAT for printing time_t values
Andrej Kacian [Sun, 20 Jan 2019 18:33:34 +0000 (19:33 +0100)]
Use G_GSIZE_FORMAT for printing time_t values

10 months agoReplace deprecated _sleep() with Sleep() in w32_unistd.c
Andrej Kacian [Sun, 20 Jan 2019 18:15:04 +0000 (19:15 +0100)]
Replace deprecated _sleep() with Sleep() in w32_unistd.c

10 months agoAdd a menu item to open debug log file on Windows
Andrej Kacian [Sun, 20 Jan 2019 18:06:32 +0000 (19:06 +0100)]
Add a menu item to open debug log file on Windows

10 months agoOnly call the fd_is_w32_socket() check on Windows
Andrej Kacian [Sun, 20 Jan 2019 16:32:27 +0000 (17:32 +0100)]
Only call the fd_is_w32_socket() check on Windows

This saves us one unnecessary getsockopt() call before
each socket read and write.

10 months agoFix session proxy initialization for Windows
Andrej Kacian [Sun, 20 Jan 2019 13:45:08 +0000 (14:45 +0100)]
Fix session proxy initialization for Windows

Fixes bug #4145: proxy server for sending doesn't work

10 months agosave checkbox choices of display/summaries/defaults prefs
Paul [Thu, 17 Jan 2019 10:06:34 +0000 (10:06 +0000)]
save checkbox choices of display/summaries/defaults prefs

10 months agoFix crash when LDAP address source is defined in index, but LDAP support is disabled
Andrej Kacian [Wed, 16 Jan 2019 17:36:55 +0000 (18:36 +0100)]
Fix crash when LDAP address source is defined in index, but LDAP support is disabled

AddressIfFrag is being cast to AddrBookBase, so it too
needs to have the two mandatory members at the beginning.

10 months agoRemove an unused path variable in python plugin
Andrej Kacian [Sat, 12 Jan 2019 11:53:04 +0000 (12:53 +0100)]
Remove an unused path variable in python plugin

The plugin has no preferences page, so this is not needed.

10 months agoImprove new feed item detection algorithm in RSSyl slightly
Andrej Kacian [Sat, 12 Jan 2019 10:35:49 +0000 (11:35 +0100)]
Improve new feed item detection algorithm in RSSyl slightly

11 months agoadd option 'enable keyboard shortcuts'
Paul [Tue, 8 Jan 2019 07:57:25 +0000 (07:57 +0000)]
add option 'enable keyboard shortcuts'

11 months agoFix a few small memory leaks in scan_mailto_url()
Andrej Kacian [Mon, 7 Jan 2019 16:38:01 +0000 (17:38 +0100)]
Fix a few small memory leaks in scan_mailto_url()

11 months agoImprove line breaks in compose window
Andrej Kacian [Sun, 6 Jan 2019 10:23:19 +0000 (11:23 +0100)]
Improve line breaks in compose window

Fixes bug #3070: misbehaving text wrapping when URL chars are present

11 months agoGive a hint when option is unknown
Ricardo Mones [Fri, 4 Jan 2019 19:07:49 +0000 (20:07 +0100)]
Give a hint when option is unknown

11 months agoMake children tracking in execute_actions() more async-aware
Andrej Kacian [Fri, 4 Jan 2019 18:50:08 +0000 (19:50 +0100)]
Make children tracking in execute_actions() more async-aware

We need to update the children count in children->nb
after starting each child process instead of after
starting all of them, because we use that count
in wait_for_children(), which is run asynchronously
for each child.

Fixes bug #3979: Hang (with killing needed) during
action which extracts attachments

11 months agoFix an impossible to trigger buffer overflow
Andrej Kacian [Fri, 4 Jan 2019 18:43:31 +0000 (19:43 +0100)]
Fix an impossible to trigger buffer overflow

Gets rid of CID 1442278.

11 months agofix bug 4142, 'Translation error on Russian'
Paul [Fri, 4 Jan 2019 13:16:58 +0000 (13:16 +0000)]
fix bug 4142, 'Translation error on Russian'

11 months agoupdate copyright year
Paul [Fri, 4 Jan 2019 13:11:33 +0000 (13:11 +0000)]
update copyright year

11 months agofix bug 4143, 'fingerprint in SSL/TLS certificates for ... (regress error)'
Paul [Fri, 4 Jan 2019 13:10:36 +0000 (13:10 +0000)]
fix bug 4143, 'fingerprint in SSL/TLS certificates for ... (regress error)'

patch by Andrej

11 months agoFix return type for vcal_manager_get_cutype_for_attendee()
Andrej Kacian [Thu, 3 Jan 2019 18:48:58 +0000 (19:48 +0100)]
Fix return type for vcal_manager_get_cutype_for_attendee()

Patch by Avinash Sonawane, bug #4037.

11 months agoFix configure for rare cases where python is not installed
Andrej Kacian [Thu, 3 Jan 2019 18:23:55 +0000 (19:23 +0100)]
Fix configure for rare cases where python is not installed

11 months agoFix few (possible) crashes due to missing return code checks (patch
wwp [Thu, 3 Jan 2019 09:36:37 +0000 (10:36 +0100)]
Fix few (possible) crashes due to missing return code checks (patch
by Zhouyang, with few modifications).

Fixes bug #3977: Fix crshes when some external APIs fail

11 months agoRemove mention of unused library
Ricardo Mones [Wed, 2 Jan 2019 12:21:06 +0000 (13:21 +0100)]
Remove mention of unused library

11 months agoMerge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws
Michael Rasmussen [Sun, 30 Dec 2018 16:10:17 +0000 (17:10 +0100)]
Merge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws

11 months agoFix deprecation warning
Michael Rasmussen [Sun, 30 Dec 2018 15:54:52 +0000 (16:54 +0100)]
Fix deprecation warning

Signed-off-by: Michael Rasmussen <mir@datanom.net>
11 months agoRemove mysterious chars and replace with correct tab chars
Michael Rasmussen [Sun, 30 Dec 2018 15:17:51 +0000 (16:17 +0100)]
Remove mysterious chars and replace with correct tab chars

Signed-off-by: Michael Rasmussen <mir@datanom.net>
11 months agoRemove mysterious chars and replace with correct tab chars
Michael Rasmussen [Sun, 30 Dec 2018 15:14:06 +0000 (16:14 +0100)]
Remove mysterious chars and replace with correct tab chars

Signed-off-by: Michael Rasmussen <mir@datanom.net>
11 months agoRemove mysterious chars and replace with correct tab chars
Michael Rasmussen [Sun, 30 Dec 2018 15:12:03 +0000 (16:12 +0100)]
Remove mysterious chars and replace with correct tab chars

Signed-off-by: Michael Rasmussen <mir@datanom.net>
11 months agoMore user-friendly dependency check for python plugin
Andrej Kacian [Sun, 30 Dec 2018 15:06:15 +0000 (16:06 +0100)]
More user-friendly dependency check for python plugin

11 months agoRespect quicksearch focus when refreshing summaryview to show new messages
Andrej Kacian [Sun, 30 Dec 2018 00:12:27 +0000 (01:12 +0100)]
Respect quicksearch focus when refreshing summaryview to show new messages

Fixes bug #2131: Focus stealing after mail check

11 months agoMake "Edit Person Details" window not modal
Andrej Kacian [Sat, 29 Dec 2018 23:48:43 +0000 (00:48 +0100)]
Make "Edit Person Details" window not modal

Patch by Salvatore De Paolis. Fixes bug #2045.

11 months agofix nntp manually filtering with account specific rules
Stephan Sachse [Sun, 26 Jul 2015 00:22:15 +0000 (02:22 +0200)]
fix nntp manually filtering with account specific rules

manually running filter on nntp folders doesn't work correctly with
account specific rules. filtering_match_condition() in filtering.c:568
always gets a NULL as ac_prefs and every check with ac_prefs fails
subsequently. later cur_account is used instead, what is imo clearly
wrong and useless.

i have patched summaryview.c:5649 summary_filter() to extract the
account data from summaryview and hand over them as new parameter to
summary_filter_func().

works for me on fedora 22 and claws-mail-3.11.1

Signed-off-by: Stephan Sachse <ste.sachse@gmail.com>
Signed-off-by: Andrej Kacian <ticho@claws-mail.org>
11 months agofix nntp filtering on incoming messages
Stephan Sachse [Sat, 25 Jul 2015 23:34:55 +0000 (01:34 +0200)]
fix nntp filtering on incoming messages

this should fix bug #1920 and bug #2627

folder_item_scan_full() in folder.c at line 2343 applies filter only to
folder items of special type F_INBOX. but nntp folder items are of
special folder item type F_NORMAL and folder type F_NEWS. so i change
the condition for do_filter to also match nntp folders. works for me on
fedora 22 and claws-mail-3.11.1

Signed-off-by: Stephan Sachse <ste.sachse@gmail.com>
Signed-off-by: Andrej Kacian <ticho@claws-mail.org>
11 months agoFix use after free in rare code path in rssyl_subscribe()
Andrej Kacian [Sat, 29 Dec 2018 20:14:25 +0000 (21:14 +0100)]
Fix use after free in rare code path in rssyl_subscribe()

11 months agoRestore line removed by mistake in previous commit.
Andrej Kacian [Sat, 29 Dec 2018 16:05:27 +0000 (17:05 +0100)]
Restore line removed by mistake in previous commit.

11 months agoFix incorrect pointer arithmetic in w32_filesel.c
Andrej Kacian [Sat, 29 Dec 2018 14:51:35 +0000 (15:51 +0100)]
Fix incorrect pointer arithmetic in w32_filesel.c

This caused the lpstrFilter parameter to be set up
incorrectly, and a buffer overflow.

11 months agoDo not needlessly cast time_t to long long int for debug_print()
Andrej Kacian [Sat, 29 Dec 2018 13:26:26 +0000 (14:26 +0100)]
Do not needlessly cast time_t to long long int for debug_print()

11 months agoFix printf formats for size_t and goffset arguments.
Andrej Kacian [Sat, 29 Dec 2018 13:23:03 +0000 (14:23 +0100)]
Fix printf formats for size_t and goffset arguments.

Use G_GSIZE_FORMAT and G_GOFFSET_FORMAT macros
instead of hardcoded literal formats, because these
types can have different sizes on different platforms.

11 months agoFix pid handling in debug output of kill_children_cb()
Andrej Kacian [Sat, 29 Dec 2018 13:21:19 +0000 (14:21 +0100)]
Fix pid handling in debug output of kill_children_cb()

On Windows, "pid" points to a HANDLE object, not to
an integer.

11 months agoEmulate strftime's %r on Windows which does not have that
Andrej Kacian [Sat, 29 Dec 2018 13:09:42 +0000 (14:09 +0100)]
Emulate strftime's %r on Windows which does not have that

11 months agoFix missing ws2tcpip.h include for Windows
Andrej Kacian [Sat, 29 Dec 2018 13:08:46 +0000 (14:08 +0100)]
Fix missing ws2tcpip.h include for Windows

11 months agoRemove an unused enum which was committed by mistake
Andrej Kacian [Sat, 29 Dec 2018 13:01:56 +0000 (14:01 +0100)]
Remove an unused enum which was committed by mistake

11 months agoRemove use of %hhu format in managesieve for g_strdup_printf()
Andrej Kacian [Sat, 29 Dec 2018 12:53:25 +0000 (13:53 +0100)]
Remove use of %hhu format in managesieve for g_strdup_printf()

11 months agoFix alertpanel API use in win32 part of mimeview.c
Andrej Kacian [Sat, 29 Dec 2018 12:19:30 +0000 (13:19 +0100)]
Fix alertpanel API use in win32 part of mimeview.c

11 months agoFix incorrect charset conversion in sc_html_read_line().
Andrej Kacian [Thu, 27 Dec 2018 12:50:13 +0000 (13:50 +0100)]
Fix incorrect charset conversion in sc_html_read_line().

When converting from single-byte to multi-byte encoding,
the resulting string can sometimes have more bytes than
the original.

11 months agoSet a proper copyright header to the files added to the Python plugin
wwp [Mon, 24 Dec 2018 18:49:46 +0000 (19:49 +0100)]
Set a proper copyright header to the files added to the Python plugin
source code.

11 months agoWindow sizes are now remembered for the Python console,
wwp [Mon, 24 Dec 2018 18:44:30 +0000 (19:44 +0100)]
Window sizes are now remembered for the Python console,
the 'Open URLs' and the 'Set mailbox order' windows.

11 months agofor release 3.17.3 3.17.3
Paul [Sat, 22 Dec 2018 10:24:59 +0000 (10:24 +0000)]
for release 3.17.3

11 months agoUpdate list of TLDs for release
Ricardo Mones [Fri, 21 Dec 2018 17:52:23 +0000 (18:52 +0100)]
Update list of TLDs for release

11 months agoLibravatar: fix API usage if built without GnuTLS
Ricardo Mones [Fri, 21 Dec 2018 17:44:28 +0000 (18:44 +0100)]
Libravatar: fix API usage if built without GnuTLS

Thanks Andrej for reporting!

11 months agoFix a mistake I made in commit 01179f2c1.
Andrej Kacian [Fri, 21 Dec 2018 09:48:12 +0000 (10:48 +0100)]
Fix a mistake I made in commit 01179f2c1.

11 months agoFix a harmless compiler warning in imap_cmd_login().
Andrej Kacian [Fri, 21 Dec 2018 09:45:48 +0000 (10:45 +0100)]
Fix a harmless compiler warning in imap_cmd_login().

11 months agoFix outdated uses of alertpanel() in code paths for --disable-gnutls.
Andrej Kacian [Fri, 21 Dec 2018 09:44:34 +0000 (10:44 +0100)]
Fix outdated uses of alertpanel() in code paths for --disable-gnutls.

11 months agoAdd Server Name Indication support to TLS connections, if applicable.
Andrej Kacian [Fri, 21 Dec 2018 09:21:10 +0000 (10:21 +0100)]
Add Server Name Indication support to TLS connections, if applicable.

Adds a hidden pref "use_tls_sni".

Patch by Alex Smith.
Closes bug #4103: TLS SNI (Server Name Indication) support for IMAP, POP & SMTP

11 months agoAdd unit tests for get_serverportfp_from_filename().
Andrej Kacian [Mon, 17 Dec 2018 20:51:32 +0000 (21:51 +0100)]
Add unit tests for get_serverportfp_from_filename().