claws.git
8 years agomanagesieve: read literals in chunks, not line-by-line
Charles Lehner [Wed, 22 Jul 2015 01:18:33 +0000 (21:18 -0400)]
managesieve: read literals in chunks, not line-by-line

This adds a way to read data chunks with a known length from a Session, rather
than until a newline or terminator string is reached. It is used to let Sieve
scripts be loaded faster.

8 years agomanagesieve: count script length in bytes, not characters
Charles Lehner [Wed, 22 Jul 2015 01:11:15 +0000 (21:11 -0400)]
managesieve: count script length in bytes, not characters

8 years agomanagesieve: fix memory leak
Charles Lehner [Wed, 22 Jul 2015 00:43:44 +0000 (20:43 -0400)]
managesieve: fix memory leak

8 years agoFix a small (copy&paste ?) typo in time zone parsing.
Andrej Kacian [Tue, 21 Jul 2015 12:33:48 +0000 (14:33 +0200)]
Fix a small (copy&paste ?) typo in time zone parsing.

8 years agoMinor fixes to es.po
Ricardo Mones [Tue, 21 Jul 2015 08:29:22 +0000 (10:29 +0200)]
Minor fixes to es.po

8 years agoAdd Libravatar also to README
Ricardo Mones [Tue, 21 Jul 2015 08:19:53 +0000 (10:19 +0200)]
Add Libravatar also to README

8 years agoUpdate statement wording for GPLv3
Ricardo Mones [Tue, 21 Jul 2015 08:06:02 +0000 (10:06 +0200)]
Update statement wording for GPLv3

From http://www.gnu.org/licenses/gpl-howto.en.html

8 years agomanagesieve: ensure space above Refresh button
Charles Lehner [Tue, 21 Jul 2015 02:39:54 +0000 (22:39 -0400)]
managesieve: ensure space above Refresh button

8 years agomanagesieve: close windows when unloading
Charles Lehner [Tue, 21 Jul 2015 02:23:15 +0000 (22:23 -0400)]
managesieve: close windows when unloading

fixes crash on plugin unload

8 years agomanagesieve: fix list header tooltip
Charles Lehner [Mon, 20 Jul 2015 20:13:21 +0000 (16:13 -0400)]
managesieve: fix list header tooltip

8 years agoFix building on GLib older than 2.25.
Andrej Kacian [Mon, 20 Jul 2015 17:57:05 +0000 (19:57 +0200)]
Fix building on GLib older than 2.25.

8 years agoupdate Andreas' email address
Paul [Mon, 20 Jul 2015 10:59:31 +0000 (11:59 +0100)]
update Andreas' email address

8 years agoadd missing NL, sorry Marcel
Paul [Mon, 20 Jul 2015 09:20:42 +0000 (10:20 +0100)]
add missing NL, sorry Marcel

8 years agoupdated
Paul [Mon, 20 Jul 2015 09:20:14 +0000 (10:20 +0100)]
updated

8 years agoFix typo in email address
Charles Lehner [Sun, 19 Jul 2015 15:17:39 +0000 (11:17 -0400)]
Fix typo in email address

8 years agoready for release 3.12.0 3.12.0
Paul [Sun, 19 Jul 2015 11:17:32 +0000 (12:17 +0100)]
ready for release 3.12.0

8 years agoupdated French translation from wwp
Paul [Sun, 19 Jul 2015 11:07:50 +0000 (12:07 +0100)]
updated French translation from wwp

8 years agoupdate translators info
Paul [Sun, 19 Jul 2015 10:26:52 +0000 (11:26 +0100)]
update translators info

8 years agoupdated Spanish translation
Paul [Sun, 19 Jul 2015 10:14:19 +0000 (11:14 +0100)]
updated Spanish translation

hail RA MONES III

8 years agoremove translations that have been unmaintained for 3 releases
Paul [Sun, 19 Jul 2015 10:07:28 +0000 (11:07 +0100)]
remove translations that have been unmaintained for 3 releases

8 years agoadd Charles to list of team members
Paul [Sun, 19 Jul 2015 09:42:31 +0000 (10:42 +0100)]
add Charles to list of team members

8 years agoupdate translators list
Paul [Sun, 19 Jul 2015 09:39:36 +0000 (10:39 +0100)]
update translators list

8 years agoupdated translations
Paul [Sun, 19 Jul 2015 07:23:53 +0000 (08:23 +0100)]
updated translations

ca Carles Tubio Terrón
cs David Vachulka
de Thomas Bellmann
he Isratine Citizen
hu Páder Rezső
nb Petter Adsen
nl Marcel Pol
pt_BR Frederico Goncalves Guimaraes
sk Slavko
sv Andreas Rönnquist

8 years agomanagesieve: prevent session list corruption
Charles Lehner [Sun, 19 Jul 2015 01:58:03 +0000 (21:58 -0400)]
managesieve: prevent session list corruption

This fixes a crash on plugin unload with a connected session

8 years agomanagesieve: Localize Rename button. Fix bug 3469
Charles Lehner [Fri, 17 Jul 2015 14:49:15 +0000 (10:49 -0400)]
managesieve: Localize Rename button. Fix bug 3469

not breaking string freeze because the string is already translated and in use

8 years agomanagesieve: add back dialog hint
Charles Lehner [Fri, 17 Jul 2015 14:21:06 +0000 (10:21 -0400)]
managesieve: add back dialog hint

This makes the manager window appear floating in tiling window managers

This reverts commit e2d116a25f8aa0105c1319b7669af7e9723eff16.

8 years agomanagesieve: show warnings received when setting active script
Charles Lehner [Fri, 17 Jul 2015 14:07:44 +0000 (10:07 -0400)]
managesieve: show warnings received when setting active script

8 years agomanagesieve: handle putting/checking empty scripts
Charles Lehner [Fri, 17 Jul 2015 13:24:11 +0000 (09:24 -0400)]
managesieve: handle putting/checking empty scripts

8 years agoFix missing null pointer check
Colin Leroy [Fri, 17 Jul 2015 06:51:36 +0000 (08:51 +0200)]
Fix missing null pointer check

8 years agomanagesieve: add newly created scripts to manager window list
Charles Lehner [Fri, 17 Jul 2015 05:04:38 +0000 (01:04 -0400)]
managesieve: add newly created scripts to manager window list

8 years agomanagesieve: if new script name is in use, open existing script
Charles Lehner [Fri, 17 Jul 2015 04:01:15 +0000 (00:01 -0400)]
managesieve: if new script name is in use, open existing script

This is better than opening a blank script which will overwrite the existing
one when it is saved

8 years agomanagesieve: let refresh button always be sensitive
Charles Lehner [Fri, 17 Jul 2015 04:41:00 +0000 (00:41 -0400)]
managesieve: let refresh button always be sensitive

When the session is disconnected, refresh can be clicked to try to reconnect.

This partially reverts commit 7c2dd3d976388c353632ea0c3199ccdd3e214530.

8 years agomanagesieve: remove unused function sieve_session_add_script
Charles Lehner [Fri, 17 Jul 2015 04:00:53 +0000 (00:00 -0400)]
managesieve: remove unused function sieve_session_add_script

8 years agomanagesieve: don't reset status while appending text
Charles Lehner [Fri, 17 Jul 2015 03:51:00 +0000 (23:51 -0400)]
managesieve: don't reset status while appending text

8 years agomanagesieve: discard manager window's callbacks when it closes
Charles Lehner [Fri, 17 Jul 2015 01:34:02 +0000 (21:34 -0400)]
managesieve: discard manager window's callbacks when it closes

8 years agomanagesieve: consolidate popping send queue
Charles Lehner [Fri, 17 Jul 2015 01:16:26 +0000 (21:16 -0400)]
managesieve: consolidate popping send queue

- send a queued command when the ready state is entered
- always free a command when it is done

8 years agomanagesieve: fix connecting with TLS not available
Charles Lehner [Fri, 17 Jul 2015 01:15:45 +0000 (21:15 -0400)]
managesieve: fix connecting with TLS not available

8 years agomanagesieve: allow script loading to be interrupted
Charles Lehner [Thu, 9 Jul 2015 07:24:02 +0000 (03:24 -0400)]
managesieve: allow script loading to be interrupted

Prevent use after free when an editor window is closed while loading

Uses string "Loading..." which is already translated

8 years agomanagesieve: fix command aborting and discarding
Charles Lehner [Fri, 17 Jul 2015 00:06:47 +0000 (20:06 -0400)]
managesieve: fix command aborting and discarding

- Add "aborted" callback argument to indicate command is cancelled
- Add helper function for issuing command callbacks

8 years agomanagesieve: Fix string memory leaks
Charles Lehner [Thu, 16 Jul 2015 22:55:12 +0000 (18:55 -0400)]
managesieve: Fix string memory leaks

8 years agomanagesieve: handle lines starting with "OK"
Charles Lehner [Thu, 16 Jul 2015 21:58:47 +0000 (17:58 -0400)]
managesieve: handle lines starting with "OK"

Count octets instead of waiting for OK

8 years agorevert the revert
Paul [Thu, 16 Jul 2015 17:46:49 +0000 (18:46 +0100)]
revert the revert

because, as Charles pointed out, this string is already present in
compose.c, therefore, technically, it's not a new string

8 years agoRemove extravagant debug message
Charles Lehner [Thu, 16 Jul 2015 12:39:47 +0000 (08:39 -0400)]
Remove extravagant debug message

8 years agorevert without breaking stuff
Paul [Thu, 16 Jul 2015 11:55:24 +0000 (12:55 +0100)]
revert without breaking stuff

(fix for last commit)

8 years agorevert, it's string-freeze right now
Paul [Thu, 16 Jul 2015 11:53:23 +0000 (12:53 +0100)]
revert, it's string-freeze right now

8 years agoFix address autocompletion popup not displaying on Plasma5.
Andrej Kacian [Thu, 16 Jul 2015 11:36:26 +0000 (13:36 +0200)]
Fix address autocompletion popup not displaying on Plasma5.

Closes bug #3466.

8 years agomanagesieve: remove dialog hint
Charles Lehner [Thu, 16 Jul 2015 02:24:15 +0000 (22:24 -0400)]
managesieve: remove dialog hint

8 years agoManageSieve: fix manager window button spacing
Charles Lehner [Thu, 16 Jul 2015 02:14:59 +0000 (22:14 -0400)]
ManageSieve: fix manager window button spacing

- Remove unused vbox
- Move refresh button to bottom, since it is semantically different
  from the other action buttons

8 years agoManageSieve: remove Activate button
Charles Lehner [Thu, 16 Jul 2015 01:57:32 +0000 (21:57 -0400)]
ManageSieve: remove Activate button

A filter can be activated by selecting its radio button in the list,
so the activate button is not needed.

Bug #3469 progress

8 years agoManageSieve: save manager window size (bug #2923)
Charles Lehner [Thu, 16 Jul 2015 01:47:45 +0000 (21:47 -0400)]
ManageSieve: save manager window size (bug #2923)

8 years agoManageSieve: use stock refresh button (bug #2923 progress)
Charles Lehner [Thu, 16 Jul 2015 00:31:51 +0000 (20:31 -0400)]
ManageSieve: use stock refresh button (bug #2923 progress)

8 years agoMark string for translation which is already translated
Charles Lehner [Wed, 15 Jul 2015 20:53:37 +0000 (16:53 -0400)]
Mark string for translation which is already translated

8 years agofix bug 2435, ' Infinite loop+crash when refreshing folders from dovecot mbox based...
Paul [Wed, 15 Jul 2015 18:23:05 +0000 (19:23 +0100)]
fix bug 2435, ' Infinite loop+crash when refreshing folders from dovecot mbox based mailbox'

Patch by Oliver Schneider

8 years agoAdded FreeBSD patch, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=167460...
Michael Rasmussen [Tue, 14 Jul 2015 18:57:00 +0000 (20:57 +0200)]
Added FreeBSD patch, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=167460. Fixes claws-mail bug #3457

8 years agoFix two more issues with modal dialog focus on Windows.
Andrej Kacian [Fri, 10 Jul 2015 09:15:11 +0000 (11:15 +0200)]
Fix two more issues with modal dialog focus on Windows.

Date format information dialog in /Display/Summaries.
Icon chooser dialog in /Toolbars/*.

8 years agoFix Escape key closing color dialogs in /Display/Color common prefs.
Andrej Kacian [Fri, 10 Jul 2015 08:44:13 +0000 (10:44 +0200)]
Fix Escape key closing color dialogs in /Display/Color common prefs.

8 years agoFix folder selection dialog modality and focus on Windows.
Andrej Kacian [Thu, 9 Jul 2015 19:58:25 +0000 (21:58 +0200)]
Fix folder selection dialog modality and focus on Windows.

Again, first set transient_for, then modal.

8 years agoUse g_win32_getlocale() in manual availability detection on Windows.
Andrej Kacian [Thu, 9 Jul 2015 10:38:50 +0000 (12:38 +0200)]
Use g_win32_getlocale() in manual availability detection on Windows.

8 years agoMake right-click behavior more intuitive in compose attachment list.
Andrej Kacian [Wed, 8 Jul 2015 19:32:07 +0000 (21:32 +0200)]
Make right-click behavior more intuitive in compose attachment list.

8 years agoremove unneeded and crash-causing g_free()
Paul [Thu, 9 Jul 2015 06:12:55 +0000 (07:12 +0100)]
remove unneeded and crash-causing g_free()

8 years agodon't offer an empty string for translation
Paul [Thu, 9 Jul 2015 06:12:24 +0000 (07:12 +0100)]
don't offer an empty string for translation

8 years agoadd managesieve plugin files
Paul [Thu, 9 Jul 2015 05:59:31 +0000 (06:59 +0100)]
add managesieve plugin files

8 years agoFix build with hardened compiler flags
Ricardo Mones [Thu, 9 Jul 2015 01:14:56 +0000 (03:14 +0200)]
Fix build with hardened compiler flags

Error was:
compose.c: In function 'compose_write_to_file':
compose.c:5782:5: error: format not a string literal and no format
arguments [-Werror=format-security]
     alertpanel_error(msg);
     ^
cc1: some warnings being treated as errors
Makefile:1430: recipe for target 'compose.o' failed
make[6]: *** [compose.o] Error 1

8 years agoFix filtering action configuration dialog modality on Windows.
Andrej Kacian [Wed, 8 Jul 2015 15:37:44 +0000 (17:37 +0200)]
Fix filtering action configuration dialog modality on Windows.

First set transient_for, then show dialog, then set modal,
just like other dialogs.

8 years agomake 'mark all as read' dialogue button style match that in folderview
Paul [Wed, 8 Jul 2015 04:12:55 +0000 (05:12 +0100)]
make 'mark all as read' dialogue button style match that in folderview

8 years agofix dialogue question when recursively marking all as read
Paul [Wed, 8 Jul 2015 04:11:43 +0000 (05:11 +0100)]
fix dialogue question when recursively marking all as read

8 years agoRSSyl: add a missing symbol to claws.def for Windows build.
Andrej Kacian [Tue, 7 Jul 2015 19:47:52 +0000 (21:47 +0200)]
RSSyl: add a missing symbol to claws.def for Windows build.

8 years agoFix another win32 specific syntax error.
Andrej Kacian [Tue, 7 Jul 2015 19:31:19 +0000 (21:31 +0200)]
Fix another win32 specific syntax error.

8 years agoAvoid some unnecessary foldertree redraws.
Andrej Kacian [Tue, 7 Jul 2015 16:45:55 +0000 (18:45 +0200)]
Avoid some unnecessary foldertree redraws.

In particular, there were some redraws before moving a folder
and before moving to a next unread message in different folder.
This slowed these actions perceptibly on Windows.

8 years agoUse accessor for common preferences in all plugins.
Andrej Kacian [Tue, 7 Jul 2015 16:44:34 +0000 (18:44 +0200)]
Use accessor for common preferences in all plugins.

8 years agoFix a Win32-specific syntax error.
Andrej Kacian [Wed, 1 Jul 2015 19:47:57 +0000 (21:47 +0200)]
Fix a Win32-specific syntax error.

8 years agoFix a logic error introduced in previous commit.
Andrej Kacian [Wed, 1 Jul 2015 19:30:50 +0000 (21:30 +0200)]
Fix a logic error introduced in previous commit.

8 years agoDisallow folder names to begin or end with a dot on Windows.
Andrej Kacian [Wed, 1 Jul 2015 18:37:00 +0000 (20:37 +0200)]
Disallow folder names to begin or end with a dot on Windows.

I fixed the most obvious locations - MH, RSSyl, mbox. There
may be more.

8 years agoReenable transient windows for win32. Fixes bug #2866.
Andrej Kacian [Wed, 1 Jul 2015 17:00:02 +0000 (19:00 +0200)]
Reenable transient windows for win32. Fixes bug #2866.

This effectively reverts older commit ed483d5f.

8 years agoManagesieve: Fix parsing config string on Windows
Andrej Kacian [Wed, 1 Jul 2015 16:45:36 +0000 (18:45 +0200)]
Managesieve: Fix parsing config string on Windows

Windows sscanf() does not understand the %ms format yet, so we
have to do the allocation of target buffer ourselves before
calling sscanf(), and copy the host string to config->host.

Also fix some off-by-one bugs in other sscanf() parameters - the
field width format modifier does not include trailing NUL byte,
which is added.

8 years agoManagesieve: use accessor for common preferences
Andrej Kacian [Wed, 1 Jul 2015 10:25:32 +0000 (12:25 +0200)]
Managesieve: use accessor for common preferences

Fixes crash on Windows when opening the script editor window.

8 years agoDo not use GStatBuf with non-Glib *stat() functions.
Andrej Kacian [Tue, 30 Jun 2015 21:38:31 +0000 (23:38 +0200)]
Do not use GStatBuf with non-Glib *stat() functions.

Also fix up on forgotten stat() to g_stat().

8 years agoRSSyl: Variable typo fix in Windows-specific code.
Andrej Kacian [Tue, 30 Jun 2015 12:46:32 +0000 (14:46 +0200)]
RSSyl: Variable typo fix in Windows-specific code.

8 years agoUpdated plugins' claws.def files as needed for Windows build.
Andrej Kacian [Tue, 30 Jun 2015 12:40:41 +0000 (14:40 +0200)]
Updated plugins' claws.def files as needed for Windows build.

8 years agomake filtering action 'mark_as_unread' set the unread flag AND remove the new flag
Paul [Tue, 30 Jun 2015 16:49:17 +0000 (17:49 +0100)]
make filtering action 'mark_as_unread' set the unread flag AND remove the new flag

8 years agoWindows build needs to link against pthread, not pthreadGC2.
Andrej Kacian [Tue, 30 Jun 2015 12:04:43 +0000 (14:04 +0200)]
Windows build needs to link against pthread, not pthreadGC2.

We dropped the pthreadGC2 library, and are using Mingw's
pthreads instead.

8 years agoGet rid of last remaining "struct stat" variables.
Andrej Kacian [Mon, 29 Jun 2015 09:44:13 +0000 (11:44 +0200)]
Get rid of last remaining "struct stat" variables.

GStatBuf is used instead.

8 years agoUse g_dir_open() and friends instead of opendir() and friends.
Andrej Kacian [Thu, 18 Jun 2015 11:22:06 +0000 (13:22 +0200)]
Use g_dir_open() and friends instead of opendir() and friends.

This makes more things work on Windows, since Mingw
opendir() is kind of flakey, and breaks e.g. vcalendar or rssyl
being able to read contents of their folders.

I only left opendir() in archive plugin, since it is only found
in unused part of code (excluded by #ifdef _TEST, which is never
true for claws-mail compilations).

8 years agoGData plugin: Make it possible to compile with libgdata 0.17.1
Holger Berndt [Thu, 25 Jun 2015 22:08:33 +0000 (00:08 +0200)]
GData plugin: Make it possible to compile with libgdata 0.17.1

This version of libgdata does not yet support cold start, but
has the advantage that it's already released. For an acceptable
user experience, it's still required to have a more recent
libgdata version.

8 years agoLibravatar: clean cache button
Ricardo Mones [Sun, 28 Jun 2015 07:54:04 +0000 (09:54 +0200)]
Libravatar: clean cache button

8 years agoLibravatar: cache usage info label
Ricardo Mones [Sun, 28 Jun 2015 07:53:19 +0000 (09:53 +0200)]
Libravatar: cache usage info label

8 years agoHandle an unlikely fopen failure in compose_write_to_file()
Andrej Kacian [Thu, 25 Jun 2015 15:58:50 +0000 (17:58 +0200)]
Handle an unlikely fopen failure in compose_write_to_file()

8 years agoDo not use MsgInfo's plaintext_file for message file.
Andrej Kacian [Thu, 25 Jun 2015 12:00:31 +0000 (14:00 +0200)]
Do not use MsgInfo's plaintext_file for message file.

It is no longer needed, as we no longer write unencrypted
version of an encrypted message anywhere.
Keep the struct member for now, since att_remover plugin is
still (mis)using it.

8 years agoRevert "Remove plaintext_file member of struct MsgInfo."
Andrej Kacian [Thu, 25 Jun 2015 11:58:21 +0000 (13:58 +0200)]
Revert "Remove plaintext_file member of struct MsgInfo."

This reverts commit 4e7e4f922c52439c1212cd1de813a0a9ca9d3691.
Looks like plaintext_file has been misappropriated by
att_remover plugin, and it can't be trivially changed.

8 years agoRemove plaintext_file member of struct MsgInfo.
Andrej Kacian [Sun, 21 Jun 2015 20:22:12 +0000 (22:22 +0200)]
Remove plaintext_file member of struct MsgInfo.

It is no longer needed, as we no longer write unencrypted
version of an encrypted message anywhere.

8 years agoEncrypt message just before writing it to queue dir.
Andrej Kacian [Thu, 18 Jun 2015 11:07:47 +0000 (13:07 +0200)]
Encrypt message just before writing it to queue dir.

This fixes bug #2965.
As a side effect, if "Save sent encrypted messages as clear text" is
enabled, a copy will be saved to outbox when queuing, not when sending.

8 years agoLibravatar: this is rootdir, not subdir
Christian Hesse [Wed, 24 Jun 2015 08:32:54 +0000 (10:32 +0200)]
Libravatar: this is rootdir, not subdir

8 years agoSet focus row to top item if marking a message above previous
Andreas Rönnquist [Thu, 13 Nov 2014 23:51:47 +0000 (00:51 +0100)]
Set focus row to top item if marking a message above previous

8 years agoAttachWarner: fix copyright and g_warning string
Ricardo Mones [Tue, 23 Jun 2015 23:54:09 +0000 (01:54 +0200)]
AttachWarner: fix copyright and g_warning string

8 years agoAddressKeeper: fix copyright and g_warning strings
Ricardo Mones [Tue, 23 Jun 2015 23:53:12 +0000 (01:53 +0200)]
AddressKeeper: fix copyright and g_warning strings

8 years agoLibravatar: fix g_warning strings
Ricardo Mones [Tue, 23 Jun 2015 23:50:16 +0000 (01:50 +0200)]
Libravatar: fix g_warning strings

8 years agoLibravatar: fix copyright headers
Ricardo Mones [Tue, 23 Jun 2015 08:29:34 +0000 (10:29 +0200)]
Libravatar: fix copyright headers

As quickly noted by Paul an Andrej, Hiroyuki had nothing
to do with plugin system. Thanks! ;-)

8 years agoFix bug #3438 ‘Filter to add address to Addressbook duplicates address in Name field’
Ricardo Mones [Mon, 22 Jun 2015 20:56:44 +0000 (22:56 +0200)]
Fix bug #3438 ‘Filter to add address to Addressbook duplicates address in Name field’

Also included some cleanup:
  • Remove unused function strlen_with_check
  • Remove unused macro STRLEN_WITH_CHECK
  • Update copyright header

8 years agoLibravatar: refactor and fix leak on corner case
Ricardo Mones [Mon, 22 Jun 2015 22:38:31 +0000 (00:38 +0200)]
Libravatar: refactor and fix leak on corner case

 • Move cache initialization to its own file
 • Fix leaked cache_dir path when initialization failed

8 years agoUpdate year for incoming release
Ricardo Mones [Mon, 22 Jun 2015 21:09:20 +0000 (23:09 +0200)]
Update year for incoming release