claws.git
5 years agoSimplify comparison
Ricardo Mones [Thu, 4 Oct 2018 13:49:07 +0000 (15:49 +0200)]
Simplify comparison

and keep Coverity happy.

5 years agoDisallow zero-length entity
Ricardo Mones [Thu, 4 Oct 2018 08:49:32 +0000 (10:49 +0200)]
Disallow zero-length entity

5 years agoFix CID 1439871 and validate Unicode char strictly
Ricardo Mones [Thu, 4 Oct 2018 08:30:12 +0000 (10:30 +0200)]
Fix CID 1439871 and validate Unicode char strictly

5 years agoMake entity_decode() handle invalid input better.
Andrej Kacian [Wed, 3 Oct 2018 16:27:39 +0000 (18:27 +0200)]
Make entity_decode() handle invalid input better.

5 years agoFix Reply from mainwindow menu and toolbar when mainwindow's
Colin Leroy [Wed, 3 Oct 2018 07:15:30 +0000 (09:15 +0200)]
Fix Reply from mainwindow menu and toolbar when mainwindow's
messageview is hidden.

5 years agoMerge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws
Colin Leroy [Tue, 2 Oct 2018 14:34:17 +0000 (16:34 +0200)]
Merge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws

5 years agoFix Coverity #1372351
Colin Leroy [Tue, 2 Oct 2018 14:27:41 +0000 (16:27 +0200)]
Fix Coverity #1372351

5 years agoFix build warning
Colin Leroy [Tue, 2 Oct 2018 14:27:27 +0000 (16:27 +0200)]
Fix build warning

5 years agoFix Coverity #1220388
Colin Leroy [Tue, 2 Oct 2018 14:21:16 +0000 (16:21 +0200)]
Fix Coverity #1220388

5 years agoFix Coverity #1220444
Colin Leroy [Tue, 2 Oct 2018 14:16:57 +0000 (16:16 +0200)]
Fix Coverity #1220444

5 years agoRemove Webkit version check ifdefs, since we depend on a new enough version.
Andrej Kacian [Tue, 2 Oct 2018 12:18:52 +0000 (14:18 +0200)]
Remove Webkit version check ifdefs, since we depend on a new enough version.

5 years agoDon't try to be too clever and remove superuser_p()
Ricardo Mones [Mon, 1 Oct 2018 21:58:24 +0000 (23:58 +0200)]
Don't try to be too clever and remove superuser_p()

Being root doesn't really tell much about filesystem permissions. Now it
simply ask user what to do and does it as requested. If things go wrong
errors will be catched anyway.

5 years agoFix possible resource leak
Colin Leroy [Fri, 28 Sep 2018 14:55:24 +0000 (16:55 +0200)]
Fix possible resource leak

5 years agoFix implicit declaration of g_close()
Colin Leroy [Fri, 28 Sep 2018 13:26:59 +0000 (15:26 +0200)]
Fix implicit declaration of g_close()

5 years agoAdd a few ignores
Colin Leroy [Fri, 28 Sep 2018 12:17:24 +0000 (14:17 +0200)]
Add a few ignores

5 years agoFix build on Debian 7
Colin Leroy [Fri, 28 Sep 2018 12:17:11 +0000 (14:17 +0200)]
Fix build on Debian 7

5 years agoFix Coverity warning (unsafe fscanf)
Colin Leroy [Fri, 28 Sep 2018 11:20:26 +0000 (13:20 +0200)]
Fix Coverity warning (unsafe fscanf)

5 years agoFix bug #3889, "Address and quoted message inconsistent in reply"
Colin Leroy [Fri, 28 Sep 2018 08:33:20 +0000 (10:33 +0200)]
Fix bug #3889, "Address and quoted message inconsistent in reply"
* Fix right-click replying to messages in summaryview
* Fix corner-case when selected and opened messages are different,
  and one of them is to a mailing-list.

5 years agoFix possible null-dereference (thanks Coverity)
Colin Leroy [Fri, 28 Sep 2018 08:29:27 +0000 (10:29 +0200)]
Fix possible null-dereference (thanks Coverity)

5 years agoFix Quicksearch eating keypresses it didn't handle.
Colin Leroy [Thu, 27 Sep 2018 06:55:10 +0000 (08:55 +0200)]
Fix Quicksearch eating keypresses it didn't handle.

5 years agoAdd a NULL check in summary_select_by_msg_list when selecting tree nodes.
Andrej Kacian [Sun, 23 Sep 2018 14:44:45 +0000 (16:44 +0200)]
Add a NULL check in summary_select_by_msg_list when selecting tree nodes.

This fixes an assertion failure when executing an action
which moves selected messages to a different folder. We
obviously cannot select previously selected messages if
they're not in current folder anymore.

5 years agoQuicksearch: expand extended symbols on "Edit", patch by Olivier Brunel.
wwp [Thu, 20 Sep 2018 20:16:33 +0000 (22:16 +0200)]
Quicksearch: expand extended symbols on "Edit", patch by Olivier Brunel.

5 years agoFix protocol part of some more URLs
Paul [Thu, 20 Sep 2018 09:00:47 +0000 (10:00 +0100)]
Fix protocol part of some more URLs

5 years agoFix protocol part of some URLs
Ricardo Mones [Wed, 19 Sep 2018 22:53:52 +0000 (00:53 +0200)]
Fix protocol part of some URLs

5 years agoSet missing pubdate/moddate in RSSyl items to the other one, if available.
Andrej Kacian [Tue, 18 Sep 2018 17:29:12 +0000 (19:29 +0200)]
Set missing pubdate/moddate in RSSyl items to the other one, if available.

5 years agoThe pubDate timestamp in RSS2.0 sets date_published.
Andrej Kacian [Tue, 18 Sep 2018 17:28:28 +0000 (19:28 +0200)]
The pubDate timestamp in RSS2.0 sets date_published.

5 years agoRemove dead code
Ricardo Mones [Wed, 12 Sep 2018 14:59:24 +0000 (16:59 +0200)]
Remove dead code

5 years agoRemove unused macro G_STRING_APPEND_ENCODED_URI.
Andrej Kacian [Tue, 11 Sep 2018 15:48:57 +0000 (17:48 +0200)]
Remove unused macro G_STRING_APPEND_ENCODED_URI.

5 years agofix warning dialogue when a re-edited draft compose window is closed after a send...
Paul [Mon, 10 Sep 2018 12:30:05 +0000 (13:30 +0100)]
fix warning dialogue when a re-edited draft compose window is closed after a send failure

prevents unexpected loss of drafted message

5 years agoRestore the hovering-over-link callback in Fancy viewer.
Andrej Kacian [Fri, 7 Sep 2018 20:19:43 +0000 (22:19 +0200)]
Restore the hovering-over-link callback in Fancy viewer.

We still need it to display the hovered-over link in statusbar.

5 years agoAdd new folder options: enable/disable per-folder signing and
wwp [Fri, 7 Sep 2018 06:05:22 +0000 (08:05 +0200)]
Add new folder options: enable/disable per-folder signing and
encrypting (by default: obey to applicable account preference).

5 years agoFix dangling pointer in proxy password handling.
Andrej Kacian [Thu, 6 Sep 2018 21:31:16 +0000 (23:31 +0200)]
Fix dangling pointer in proxy password handling.

Initialize proxy_info.proxy_pass to NULL, and reset it
back to NULL after use.

5 years agoShow correct address:port in SOCKS5 proxy connection failure message.
Andrej Kacian [Thu, 6 Sep 2018 21:13:41 +0000 (23:13 +0200)]
Show correct address:port in SOCKS5 proxy connection failure message.

The address and port contained in the server response
are what the proxy server has bound locally for the
connection, not the destination address and port.

5 years agoHandle corrupted decrypted passwords gracefully.
Andrej Kacian [Thu, 6 Sep 2018 20:11:05 +0000 (22:11 +0200)]
Handle corrupted decrypted passwords gracefully.

Check whether the decrypted password is a valid UTF-8
string, and return an empty string if not, instead of
returning garbage, probably not NULL-terminated data,
and causing problems down the road.

5 years agoAvoid an unnecessary string copy in xml_attr_new_int().
Andrej Kacian [Thu, 6 Sep 2018 16:43:35 +0000 (18:43 +0200)]
Avoid an unnecessary string copy in xml_attr_new_int().

5 years agoRename activate_privacy_system() to compose_activate_privacy_system().
wwp [Thu, 6 Sep 2018 14:21:15 +0000 (16:21 +0200)]
Rename activate_privacy_system() to compose_activate_privacy_system().

5 years agoBump up minimum required webkitgtk version to 1.10.0.
Andrej Kacian [Wed, 5 Sep 2018 16:35:47 +0000 (18:35 +0200)]
Bump up minimum required webkitgtk version to 1.10.0.

That's when WebKitWebView's "context-menu" signal was
added, we start using it in 288d3a708.

5 years agoFix links not being opened in browser when Fancy menu is opened with a keyboard.
Andrej Kacian [Wed, 5 Sep 2018 15:32:17 +0000 (17:32 +0200)]
Fix links not being opened in browser when Fancy menu is opened with a keyboard.

5 years agoRemove unused string copy from procmsg_msg_exist().
Andrej Kacian [Tue, 4 Sep 2018 22:17:59 +0000 (00:17 +0200)]
Remove unused string copy from procmsg_msg_exist().

5 years agoFix capitalization of a one Web[cC]al occurrence.
wwp [Mon, 3 Sep 2018 10:17:12 +0000 (12:17 +0200)]
Fix capitalization of a one Web[cC]al occurrence.

5 years agoFix bug #3418 ‘Building on a Cross Compiling toolchain doesn't work’
Ricardo Mones [Fri, 31 Aug 2018 18:36:54 +0000 (20:36 +0200)]
Fix bug #3418 ‘Building on a Cross Compiling toolchain doesn't work’

The bug is really fixed in commit 8eee2fd5ddb9d24d8f58bf88afdea8ca67daaea5
This only adds a slight modification of the remaining portion of the
patch checking the macro itself, from the original attached to the bug
by ridai.govinda@gmail.com.

5 years agoUpdated INSTALL file.
Andrej Kacian [Fri, 31 Aug 2018 12:39:41 +0000 (14:39 +0200)]
Updated INSTALL file.

Updated required GTK+ version, and removed the outdated
list of configure options. The existing reference to --help
should suffice there.

5 years agoAdded unit test framework, and some initial unit tests.
Andrej Kacian [Fri, 31 Aug 2018 11:48:30 +0000 (13:48 +0200)]
Added unit test framework, and some initial unit tests.

5 years agomd5.c doesn't need to include entire utils.h.
Andrej Kacian [Fri, 31 Aug 2018 11:43:59 +0000 (13:43 +0200)]
md5.c doesn't need to include entire utils.h.

5 years agoMoved codeconv.[ch] and unmime.[ch] to common/ subdir.
Andrej Kacian [Fri, 31 Aug 2018 11:39:04 +0000 (13:39 +0200)]
Moved codeconv.[ch] and unmime.[ch] to common/ subdir.

That's where they belong. This also clears up a few ugly
cases of other files in common including "../codeconv.h".

5 years agoDecouple codeconv.c from prefs_common.
Andrej Kacian [Fri, 31 Aug 2018 11:29:48 +0000 (13:29 +0200)]
Decouple codeconv.c from prefs_common.

5 years agoAdd parameter sanity checks to md5_hex_digest() and md5_hex_hmac().
Andrej Kacian [Fri, 31 Aug 2018 11:28:16 +0000 (13:28 +0200)]
Add parameter sanity checks to md5_hex_digest() and md5_hex_hmac().

5 years agoPreserve flags & tags when re-editing a message
Olivier Brunel [Wed, 27 Dec 2017 20:59:40 +0000 (21:59 +0100)]
Preserve flags & tags when re-editing a message

When re-editing a message, let's preserve its flags (color labels, etc)
and tags. Can be especially useful for those who use such things on queued
messages, and find themselves re-editing messages afterwards but before
actually sending them.

5 years agoaction: Keep selection set afterwards
Olivier Brunel [Wed, 27 Dec 2017 20:53:17 +0000 (21:53 +0100)]
action: Keep selection set afterwards

Upon running (filtering) actions, the current selection was lost (due to
refreshing the current folder); Let's restore it.

5 years agoSpeed-up searches in References via "x"
Olivier Brunel [Wed, 2 Aug 2017 18:48:58 +0000 (20:48 +0200)]
Speed-up searches in References via "x"

Since commit 5c9f9e47 (in 2001!) the header "References" is actually
cached in MsgInfo, so searching it can be substantially faster if "x"
expands to 'references' instead of 'header "References"', much like with
'i' (messageid) or 'I' (inreplyto).

5 years agoFix wrong logics leading to writing possibly broken config file,
wwp [Thu, 30 Aug 2018 06:29:30 +0000 (08:29 +0200)]
Fix wrong logics leading to writing possibly broken config file,
patch by Olivier Brunel.

5 years agoRestore Fancy entry in README, still in tarball ;)
Ricardo Mones [Tue, 28 Aug 2018 10:54:43 +0000 (12:54 +0200)]
Restore Fancy entry in README, still in tarball ;)

Thanks Woody for noticing.

5 years agofix lintian autotools-pkg-config-macro-not-cross-compilation-safe warning
Paul [Mon, 27 Aug 2018 17:42:44 +0000 (18:42 +0100)]
fix lintian autotools-pkg-config-macro-not-cross-compilation-safe warning

see
https://lintian.debian.org/tags/autotools-pkg-config-macro-not-cross-compilation-safe.html

5 years agoUpdate plugins in README
Ricardo Mones [Mon, 27 Aug 2018 16:43:08 +0000 (18:43 +0200)]
Update plugins in README

5 years agoFix wrong test leading to dead code (and dead func), CID 1438531.
wwp [Sun, 26 Aug 2018 16:01:02 +0000 (18:01 +0200)]
Fix wrong test leading to dead code (and dead func), CID 1438531.

5 years agoalways show the full version on the mainwindow regardless of --enable-maintainer...
Paul [Sun, 26 Aug 2018 13:36:51 +0000 (14:36 +0100)]
always show the full version on the mainwindow regardless of --enable-maintainer-mode

5 years agofor release 3.17.1
Paul [Sun, 26 Aug 2018 11:21:52 +0000 (12:21 +0100)]
for release 3.17.1

5 years agoUpdate vcalendar's claws.def file for Windows build after recent changes.
Andrej Kacian [Sat, 25 Aug 2018 09:00:56 +0000 (11:00 +0200)]
Update vcalendar's claws.def file for Windows build after recent changes.

Thanks to Abhay S. Kushwaha.

5 years agoImprove Left Arrow keypress handling for childless folders in folderview.
Andrej Kacian [Sat, 25 Aug 2018 08:58:49 +0000 (10:58 +0200)]
Improve Left Arrow keypress handling for childless folders in folderview.

Based on patch by Abhay S. Kushwaha.

5 years agoOptimize (for speed) and factorize code related to marking folders
wwp [Fri, 24 Aug 2018 12:59:13 +0000 (14:59 +0200)]
Optimize (for speed) and factorize code related to marking folders
as read/unread recursively. A bit of code format fixing too.

5 years agoFix building manual PDF and PS formats when building outside of source dir.
Andrej Kacian [Fri, 24 Aug 2018 12:38:52 +0000 (14:38 +0200)]
Fix building manual PDF and PS formats when building outside of source dir.

5 years agoFix various plugins including generated .h files when building outside of source...
Andrej Kacian [Fri, 24 Aug 2018 12:09:12 +0000 (14:09 +0200)]
Fix various plugins including generated .h files when building outside of source dir.

5 years agoFix configure version detection when building outside of srcdir.
Andrej Kacian [Fri, 24 Aug 2018 11:48:38 +0000 (13:48 +0200)]
Fix configure version detection when building outside of srcdir.

5 years agoBetter GUI (with calendar) for date filtering condition.
Colin Leroy [Fri, 24 Aug 2018 11:51:32 +0000 (13:51 +0200)]
Better GUI (with calendar) for date filtering condition.

5 years agoMove time selector from vCalendar to gtkutils
Colin Leroy [Fri, 24 Aug 2018 09:07:06 +0000 (11:07 +0200)]
Move time selector from vCalendar to gtkutils

5 years agoFiltering: simple GUI for date_after/before
Colin Leroy [Fri, 24 Aug 2018 08:17:27 +0000 (10:17 +0200)]
Filtering: simple GUI for date_after/before

5 years agoFiltering: add date_before and date_after
Colin Leroy [Fri, 24 Aug 2018 07:58:09 +0000 (09:58 +0200)]
Filtering: add date_before and date_after

5 years agoOnly handle GTK events when matcher test thread takes more than 0 seconds.
Colin Leroy [Thu, 23 Aug 2018 08:51:52 +0000 (10:51 +0200)]
Only handle GTK events when matcher test thread takes more than 0 seconds.

5 years agoAdd null pointer checks to pkcs5_pbkdf2().
Andrej Kacian [Wed, 22 Aug 2018 13:00:58 +0000 (15:00 +0200)]
Add null pointer checks to pkcs5_pbkdf2().

5 years agoAdded null parameter checks in codeconv.c where appropriate.
Andrej Kacian [Tue, 21 Aug 2018 17:52:33 +0000 (19:52 +0200)]
Added null parameter checks in codeconv.c where appropriate.

5 years agoMove the typedef for "u32" from utils.h to md5.h, since it is only used there.
Andrej Kacian [Tue, 21 Aug 2018 09:53:16 +0000 (11:53 +0200)]
Move the typedef for "u32" from utils.h to md5.h, since it is only used there.

5 years agoRemoved an unused #include from libfeed's parser.c.
Andrej Kacian [Tue, 21 Aug 2018 09:49:15 +0000 (11:49 +0200)]
Removed an unused #include from libfeed's parser.c.

5 years agoFix missing check for a retrieving interval minimum value in
wwp [Tue, 21 Aug 2018 08:21:11 +0000 (10:21 +0200)]
Fix missing check for a retrieving interval minimum value in
accounts prefs, don't use abbreviated units there and follow
the global prefs style.

5 years agoFix wrong time unit shown in offline-override dialog (IMAP), and
wwp [Tue, 21 Aug 2018 08:20:05 +0000 (10:20 +0200)]
Fix wrong time unit shown in offline-override dialog (IMAP), and
while we're at it, use the most appropriate reduced number+unit.

5 years agoRemove unneeded includes from entity.c.
Andrej Kacian [Sat, 18 Aug 2018 12:28:45 +0000 (14:28 +0200)]
Remove unneeded includes from entity.c.

5 years agoWarn and fail rather than miserably crashing when format string in
wwp [Sat, 18 Aug 2018 07:56:41 +0000 (09:56 +0200)]
Warn and fail rather than miserably crashing when format string in
faulty.

5 years agoFix for Bug 4072: Crash when clicking 'reply' or 'reply with quote'
wwp [Sat, 18 Aug 2018 07:34:09 +0000 (09:34 +0200)]
Fix for Bug 4072: Crash when clicking 'reply' or 'reply with quote'
Wrong '%\n' format causes a crash in g_strdup_printf.

5 years agoFix/normalize product name in few places in UI and in several source
wwp [Thu, 16 Aug 2018 06:45:55 +0000 (08:45 +0200)]
Fix/normalize product name in few places in UI and in several source
files.

5 years agoSucesfuly fix typos in LDAP log prints.
wwp [Thu, 16 Aug 2018 06:37:13 +0000 (08:37 +0200)]
Sucesfuly fix typos in LDAP log prints.

5 years agofor release 3.17.0 3.17.0
Paul [Wed, 15 Aug 2018 17:41:58 +0000 (18:41 +0100)]
for release 3.17.0

5 years agotranslations updates
Paul [Wed, 15 Aug 2018 15:41:40 +0000 (16:41 +0100)]
translations updates

submitted by David Medina, David Vachulka, Erik P. Olsen, Simon Legner,
Flammie Pirinen, Páder Rezső, Petter Adsen, Marcel Pol, Frederico
Goncalves Guimaraes, Cristian Secară, Mikhail Kurinnoi, Slavko, Andreas
Rönnquist, Numan Demirdöğen, and Mark Chang

5 years agoUpdate list of TLDs for release
Ricardo Mones [Tue, 14 Aug 2018 22:53:29 +0000 (00:53 +0200)]
Update list of TLDs for release

5 years agoSome fixes to Spanish translation
Ricardo Mones [Tue, 14 Aug 2018 22:50:57 +0000 (00:50 +0200)]
Some fixes to Spanish translation

5 years agoFrench translation: last fixes and updates.
wwp [Tue, 14 Aug 2018 22:02:00 +0000 (00:02 +0200)]
French translation: last fixes and updates.

5 years agoUpdate Spanish translation
Ricardo Mones [Tue, 14 Aug 2018 16:32:04 +0000 (18:32 +0200)]
Update Spanish translation

5 years agoFrench translation: introduce inclusive modern French forms (I guess we'll get
wwp [Tue, 14 Aug 2018 15:58:18 +0000 (17:58 +0200)]
French translation: introduce inclusive modern French forms (I guess we'll get
feedback about this), patch by Colin.

5 years agoFrench translation: fix few uses of ID and capitalization.
wwp [Tue, 14 Aug 2018 15:33:38 +0000 (17:33 +0200)]
French translation: fix few uses of ID and capitalization.

5 years agoFix French translation file.
wwp [Tue, 14 Aug 2018 15:21:57 +0000 (17:21 +0200)]
Fix French translation file.

5 years agoFrench translation: few fixes more.
wwp [Tue, 14 Aug 2018 15:02:24 +0000 (17:02 +0200)]
French translation: few fixes more.

5 years agoUpdate French translation (more to come).
wwp [Tue, 14 Aug 2018 14:25:14 +0000 (16:25 +0200)]
Update French translation (more to come).

5 years agoFix an embarrassing mistake in rssyl_strreplace().
Andrej Kacian [Mon, 13 Aug 2018 18:52:45 +0000 (20:52 +0200)]
Fix an embarrassing mistake in rssyl_strreplace().

Closes bug #4068: Claws Mail hangs when getting news from a certain feed

5 years agoAvoid a needless string copy in rssyl_replace_html_stuff().
Andrej Kacian [Mon, 13 Aug 2018 18:44:21 +0000 (20:44 +0200)]
Avoid a needless string copy in rssyl_replace_html_stuff().

5 years agoAdd <sub> and </sub> to list of HTML tags to remove from feed subjects.
Andrej Kacian [Mon, 13 Aug 2018 18:38:30 +0000 (20:38 +0200)]
Add <sub> and </sub> to list of HTML tags to remove from feed subjects.

5 years agoReturn a copy of the string also when sanity checks fail.
Andrej Kacian [Mon, 13 Aug 2018 18:32:49 +0000 (20:32 +0200)]
Return a copy of the string also when sanity checks fail.

Also, use GLib's g_return functions instead of ifs and
debug_prints.

5 years agoFix buffer clash (one already present, one added in 3.16.0-254-gb9c4e27),
wwp [Mon, 13 Aug 2018 10:54:08 +0000 (12:54 +0200)]
Fix buffer clash (one already present, one added in 3.16.0-254-gb9c4e27),
leading to broken To value in From column of message list.

5 years agoSome improvements upon translation
Ricardo Mones [Tue, 7 Aug 2018 09:06:39 +0000 (11:06 +0200)]
Some improvements upon translation

5 years agoFix a memory leak when saving last opened folder on exit.
Andrej Kacian [Fri, 3 Aug 2018 12:15:47 +0000 (14:15 +0200)]
Fix a memory leak when saving last opened folder on exit.

5 years agoFix a memory leak in sc_html_parse_tag().
Andrej Kacian [Fri, 3 Aug 2018 12:07:10 +0000 (14:07 +0200)]
Fix a memory leak in sc_html_parse_tag().

5 years agoFix a memory leak in summary_set_header().
Andrej Kacian [Fri, 3 Aug 2018 12:02:38 +0000 (14:02 +0200)]
Fix a memory leak in summary_set_header().

5 years agoFixed a memory leak in stock_pixmap_widget_with_overlay().
Andrej Kacian [Fri, 3 Aug 2018 11:40:57 +0000 (13:40 +0200)]
Fixed a memory leak in stock_pixmap_widget_with_overlay().