claws.git
7 years agoFix bug #3573: Out of bounds read in macro LBREAK_IF_REQUIRED
Ricardo Mones [Thu, 14 Jul 2016 09:52:43 +0000 (11:52 +0200)]
Fix bug #3573: Out of bounds read in macro LBREAK_IF_REQUIRED

Thanks Hanno Boeck for the patch!

7 years agoWhen generating a PGP keypair, only ask for passphrase with gpg1.
Andrej Kacian [Wed, 13 Jul 2016 19:50:52 +0000 (21:50 +0200)]
When generating a PGP keypair, only ask for passphrase with gpg1.

Also erase all copies of an entered passphrase from memory
when done. Closes bug #3658.

7 years agoSimplify handling of gpg_ask_create_key pref.
Andrej Kacian [Mon, 11 Jul 2016 22:13:21 +0000 (00:13 +0200)]
Simplify handling of gpg_ask_create_key pref.

7 years agoFix filesel dialog with filter for Win32.
Andrej Kacian [Mon, 11 Jul 2016 21:53:34 +0000 (23:53 +0200)]
Fix filesel dialog with filter for Win32.

g_utf8_to_utf16() always stops on first null byte,
so we have to construct the "filter\0filter\0\0"
string for GetOpenFileName() manually.

7 years agoAdded --batch option to manual gpg executable calls.
Andrej Kacian [Sun, 10 Jul 2016 12:57:16 +0000 (14:57 +0200)]
Added --batch option to manual gpg executable calls.

This, together with --no-tty, is to make these calls
really non-interactive, and helps against the calls
hanging on Windows occasionally.

7 years agoMade exporting GPG key to keyserver work on Windows.
Andrej Kacian [Sun, 10 Jul 2016 12:55:48 +0000 (14:55 +0200)]
Made exporting GPG key to keyserver work on Windows.

7 years agoUpdated claws.def file for win32 build of notification plugin.
Andrej Kacian [Thu, 7 Jul 2016 16:24:41 +0000 (18:24 +0200)]
Updated claws.def file for win32 build of notification plugin.

7 years agoSync Spanish manual
Ricardo Mones [Tue, 5 Jul 2016 18:58:26 +0000 (20:58 +0200)]
Sync Spanish manual

7 years agoFix #3653: document plugin path configuration
Ricardo Mones [Tue, 5 Jul 2016 13:01:46 +0000 (15:01 +0200)]
Fix #3653: document plugin path configuration

7 years agoUpdate Spanish manual
Ricardo Mones [Mon, 4 Jul 2016 20:22:56 +0000 (22:22 +0200)]
Update Spanish manual

7 years agoAdd forgotten block delimiters
Ricardo Mones [Mon, 4 Jul 2016 16:45:48 +0000 (18:45 +0200)]
Add forgotten block delimiters

Thanks Paul for noticing!

7 years agofix bug 2518, ' "Reply-All" message from NNTP-account does not contain CC'ed correspo...
Paul [Mon, 4 Jul 2016 14:58:06 +0000 (15:58 +0100)]
fix bug 2518, ' "Reply-All" message from NNTP-account does not contain CC'ed correspondents'

7 years agoinclude Reply-To value when using 'reply to all'
Paul [Mon, 4 Jul 2016 11:21:29 +0000 (12:21 +0100)]
include Reply-To value when using 'reply to all'

7 years agomake 'next_on_delete' hidden pref apply after trashing or moving a msg in addition...
Paul [Mon, 4 Jul 2016 10:02:58 +0000 (11:02 +0100)]
make 'next_on_delete' hidden pref apply after trashing or moving a msg in addition to deleting a msg

fixes bug #3600.
document this hidden pref also

7 years agoWarn on unsuccessful gpgme_set_engine_info calls
Ricardo Mones [Mon, 4 Jul 2016 09:00:35 +0000 (11:00 +0200)]
Warn on unsuccessful gpgme_set_engine_info calls

7 years agomodify 61f7c3c5e to catch another hardcoded gpg call
Paul [Mon, 4 Jul 2016 08:25:46 +0000 (09:25 +0100)]
modify 61f7c3c5e to catch another hardcoded gpg call

7 years agonotification plug-in: skip SMTP-only accounts when building the
wwp [Sun, 3 Jul 2016 08:40:32 +0000 (10:40 +0200)]
notification plug-in: skip SMTP-only accounts when building the
'Get mail from account' menu.

7 years agoRevert "Place dialogs on center of main window."
Pawel Pekala [Sat, 2 Jul 2016 18:12:02 +0000 (20:12 +0200)]
Revert "Place dialogs on center of main window."

This reverts commit cb67730a260a491ae380fd928d8ca673200972b0.

7 years agoPlace dialogs on center of main window. Most window managers place
Pawel Pekala [Sat, 2 Jul 2016 16:05:14 +0000 (18:05 +0200)]
Place dialogs on center of main window. Most window managers place
these dialogs in some weird positions making interacting with
them unwieldy. Windows is biggest offender here putting things
around left top corner of the screen.

7 years agoAdd 'Get mail from account..' to notification plugin's trayicon menu.
wwp [Thu, 30 Jun 2016 10:01:54 +0000 (12:01 +0200)]
Add  'Get mail from account..' to notification plugin's trayicon menu.

7 years agoAllocate quoted-printable output buffer on heap
Charles Lehner [Mon, 27 Jun 2016 17:52:57 +0000 (13:52 -0400)]
Allocate quoted-printable output buffer on heap

7 years agoHandle ical lines longer than 256 bytes
Charles Lehner [Mon, 27 Jun 2016 14:28:41 +0000 (10:28 -0400)]
Handle ical lines longer than 256 bytes

7 years agoIndent html in blockquotes
Charles Lehner [Fri, 24 Jun 2016 22:42:05 +0000 (18:42 -0400)]
Indent html in blockquotes

7 years agoLine break after <dd>
Charles Lehner [Tue, 14 Jun 2016 16:52:54 +0000 (12:52 -0400)]
Line break after <dd>

7 years agoFix bug #3652 “warning: ordered comparison of pointer…”
Ricardo Mones [Thu, 16 Jun 2016 14:28:54 +0000 (16:28 +0200)]
Fix bug #3652 “warning: ordered comparison of pointer…”

7 years agoImplement focused widget saving between iconify/deiconify events in
Pawel Pekala [Thu, 9 Jun 2016 18:59:37 +0000 (20:59 +0200)]
Implement focused widget saving between iconify/deiconify events in
trayicon notification. Without this focus is lost on deiconify and this
can be painful to keyboard users. This is similar to my old work on
trayicon plugin I've done in the past.

7 years agoFix python plugin test for BSD family, dlopen(3) on those
Pawel Pekala [Wed, 8 Jun 2016 20:16:13 +0000 (22:16 +0200)]
Fix python plugin test for BSD family, dlopen(3) on those
systems is part of libc library and linking to nonexistent
libdl will fail.

Tested on FreeBSD 11-Current, Debian 8

7 years agoInstall new script also
Ricardo Mones [Tue, 7 Jun 2016 14:20:20 +0000 (16:20 +0200)]
Install new script also

7 years agoAnd more documentation
Ricardo Mones [Tue, 7 Jun 2016 12:21:58 +0000 (14:21 +0200)]
And more documentation

7 years agoImprove script documentation
Ricardo Mones [Tue, 7 Jun 2016 11:54:29 +0000 (13:54 +0200)]
Improve script documentation

7 years agoFix phrasing, terminology and typos
Ricardo Mones [Tue, 7 Jun 2016 11:18:27 +0000 (13:18 +0200)]
Fix phrasing, terminology and typos

7 years agoAdd new action script for fixing threads
Ricardo Mones [Tue, 7 Jun 2016 10:59:43 +0000 (12:59 +0200)]
Add new action script for fixing threads

Many thanks to H.Merijn Brand for contributing it!

7 years agoUse Unicode, don't restrict ourselves to ASCII
Ricardo Mones [Thu, 2 Jun 2016 09:17:49 +0000 (11:17 +0200)]
Use Unicode, don't restrict ourselves to ASCII

7 years agoIndicate list items in html
Charles Lehner [Thu, 2 Jun 2016 00:37:02 +0000 (20:37 -0400)]
Indicate list items in html

7 years agoFixed calculation of timing.h timer for Windows.
Andrej Kacian [Mon, 30 May 2016 10:26:17 +0000 (12:26 +0200)]
Fixed calculation of timing.h timer for Windows.

7 years agoFix --select CLI option on Windows when selecting a particular message.
Andrej Kacian [Sat, 28 May 2016 17:54:51 +0000 (19:54 +0200)]
Fix --select CLI option on Windows when selecting a particular message.

7 years agoUse PBKDF2 to derive encryption key for passwords.
Andrej Kacian [Tue, 24 May 2016 16:29:37 +0000 (18:29 +0200)]
Use PBKDF2 to derive encryption key for passwords.

...instead of my previous hash-then-xor nonsense.

7 years agofix crash introduced in c7e1e0bbdf72269708a53075a4accecb61ebebe2
Paul [Tue, 24 May 2016 13:20:52 +0000 (14:20 +0100)]
fix crash introduced in c7e1e0bbdf72269708a53075a4accecb61ebebe2

7 years agoMoved getting random bytes into a separate get_random_bytes() function.
Andrej Kacian [Fri, 20 May 2016 09:38:32 +0000 (11:38 +0200)]
Moved getting random bytes into a separate get_random_bytes() function.

7 years agoRemove imap_use_trash account preference.
Andrej Kacian [Thu, 12 May 2016 08:03:39 +0000 (10:03 +0200)]
Remove imap_use_trash account preference.

Disabling this preference made deleting messages behave
incorrectly - they were marked for deletion regardless
of whether "delete" or "move to trash" was used, and
these actions were not executed immediately, regardless
of "immediate_execution" common preference.

7 years agoremove matcherrc.pre_names migration. 10 years later, we'll assume everyone has been...
Paul [Mon, 16 May 2016 16:02:53 +0000 (17:02 +0100)]
remove matcherrc.pre_names migration. 10 years later, we'll assume everyone has been migrated

7 years agoImprove plural handling for "Delete message" dialog.
Andrej Kacian [Fri, 6 May 2016 17:43:16 +0000 (19:43 +0200)]
Improve plural handling for "Delete message" dialog.

7 years agoFix typo in manual
Ricardo Mones [Tue, 3 May 2016 10:50:21 +0000 (12:50 +0200)]
Fix typo in manual

Thanks Charles Curley for noticing

7 years agoMade manual GPG key import work on Windows.
Andrej Kacian [Mon, 2 May 2016 19:29:12 +0000 (21:29 +0200)]
Made manual GPG key import work on Windows.

7 years agoAsk GpgME for path to gpg executable for manual key import.
Andrej Kacian [Mon, 2 May 2016 18:54:19 +0000 (20:54 +0200)]
Ask GpgME for path to gpg executable for manual key import.

7 years agoFix frequently ocurring typos :)
Ricardo Mones [Sun, 1 May 2016 14:56:18 +0000 (16:56 +0200)]
Fix frequently ocurring typos :)

7 years agoFix some typos in perl plugin's manpage
Ricardo Mones [Sun, 1 May 2016 14:51:10 +0000 (16:51 +0200)]
Fix some typos in perl plugin's manpage

7 years agoFix behavior in selecting PGP MIME signature on Windows.
Andrej Kacian [Thu, 28 Apr 2016 10:01:10 +0000 (12:01 +0200)]
Fix behavior in selecting PGP MIME signature on Windows.

With old argument order, gpgme_op_verify() returned "empty signature"
error on Windows, for reasons unknown.

7 years agoUse correct dir separator for "Scanning folder ..." in statusbar.
Andrej Kacian [Tue, 26 Apr 2016 08:21:22 +0000 (10:21 +0200)]
Use correct dir separator for "Scanning folder ..." in statusbar.

7 years agoMore fixes for the Windows native file choosers.
Andrej Kacian [Fri, 22 Apr 2016 18:04:02 +0000 (20:04 +0200)]
More fixes for the Windows native file choosers.

Filter string should be terminated with two nuls.
Save dialog did not show for message parts which have no
attachment name.

7 years agoDisallow folder names ending with a space on Windows.
Andrej Kacian [Fri, 22 Apr 2016 11:31:41 +0000 (13:31 +0200)]
Disallow folder names ending with a space on Windows.

Closes bug #2781.

7 years agoMake Windows native file/dir choosers work with non-ASCII characters.
Andrej Kacian [Fri, 22 Apr 2016 08:05:57 +0000 (10:05 +0200)]
Make Windows native file/dir choosers work with non-ASCII characters.

Also, make the save chooser supply the correct attachment
file name by default, just like the GTK+ one does.

8 years agoFix closing tag placement
Ricardo Mones [Mon, 18 Apr 2016 15:23:52 +0000 (17:23 +0200)]
Fix closing tag placement

Thanks Paul for noticing ;-)

8 years agoFix semantic error
Ricardo Mones [Mon, 18 Apr 2016 12:55:16 +0000 (14:55 +0200)]
Fix semantic error

Thanks Andrej for the quick review!

8 years agoSynchronize Spanish manual
Ricardo Mones [Mon, 18 Apr 2016 12:46:23 +0000 (14:46 +0200)]
Synchronize Spanish manual

8 years agoKeep current order and add the default value
Ricardo Mones [Mon, 18 Apr 2016 12:45:34 +0000 (14:45 +0200)]
Keep current order and add the default value

8 years agoDocument 'master_passphrase_pbkdf2_rounds' hidden preference.
Andrej Kacian [Mon, 18 Apr 2016 12:15:34 +0000 (14:15 +0200)]
Document 'master_passphrase_pbkdf2_rounds' hidden preference.

8 years agoUse native file and folder selection dialogs on Windows.
Andrej Kacian [Sat, 16 Apr 2016 16:04:31 +0000 (18:04 +0200)]
Use native file and folder selection dialogs on Windows.

This is done by compiling in src/gtk/w32_filesel.c instead of
filesel.c on Windows. The Makefile.am logic mirrors the one from
src/common/.

8 years agoShow duration of PBKDF2 computation in debug output.
Andrej Kacian [Mon, 11 Apr 2016 16:30:18 +0000 (18:30 +0200)]
Show duration of PBKDF2 computation in debug output.

8 years agoMake double-click open edit dialog also for addressbook datasources.
Andrej Kacian [Sat, 9 Apr 2016 22:57:15 +0000 (00:57 +0200)]
Make double-click open edit dialog also for addressbook datasources.

For example, LDAP servers.

8 years agoPrevent an unlikely crash during RSSyl feed properties save.
Andrej Kacian [Sat, 9 Apr 2016 16:06:26 +0000 (18:06 +0200)]
Prevent an unlikely crash during RSSyl feed properties save.

This is just to shut Coverity up, I don't think it could
ever crash this way.

8 years agoAddressbook now uses password store for LDAP passwords.
Andrej Kacian [Sat, 9 Apr 2016 16:03:01 +0000 (18:03 +0200)]
Addressbook now uses password store for LDAP passwords.

8 years agoRemove password from passwordstore when deleting a RSSyl feed.
Andrej Kacian [Sat, 9 Apr 2016 13:43:02 +0000 (15:43 +0200)]
Remove password from passwordstore when deleting a RSSyl feed.

8 years agoUpdate passwordstore if RSSyl feed's URL gets changed.
Andrej Kacian [Sat, 9 Apr 2016 13:28:06 +0000 (15:28 +0200)]
Update passwordstore if RSSyl feed's URL gets changed.

8 years agoFix crash on deleting password from passwordstore.
Andrej Kacian [Sat, 9 Apr 2016 13:21:13 +0000 (15:21 +0200)]
Fix crash on deleting password from passwordstore.

8 years agoRemove obsolete comment in RSSyl's OPML import.
Andrej Kacian [Sat, 9 Apr 2016 10:01:54 +0000 (12:01 +0200)]
Remove obsolete comment in RSSyl's OPML import.

8 years agoFix parsing logic in RSSyl OPML import.
Andrej Kacian [Sat, 9 Apr 2016 08:57:48 +0000 (10:57 +0200)]
Fix parsing logic in RSSyl OPML import.

Possibly closes bug #3623.

8 years agoClose PRNG source after reading our PBKDF2 salt from it.
Andrej Kacian [Fri, 8 Apr 2016 12:50:45 +0000 (14:50 +0200)]
Close PRNG source after reading our PBKDF2 salt from it.

8 years agoUse PBKDF2 with HMAC-SHA1 for master passphrase in clawsrc.
Andrej Kacian [Thu, 7 Apr 2016 12:56:48 +0000 (14:56 +0200)]
Use PBKDF2 with HMAC-SHA1 for master passphrase in clawsrc.

The 64 bytes long key derivation is stored in 'master_passphrase'
pref, together with number of rounds used in its computation.

Introducing also two new common prefs:
master_passphrase_salt - holds a randomly generated 64 bytes
  for use as salt with PBKDF2. Base64-encoded.
master_passphrase_pbkdf2_rounds - number of rounds (or
  iterations) for next passphrase key derivation

The latter can be tweaked by user in case they want to use more
or less rounds, e.g. if they're running on weaker hardware and
KD with default number of rounds takes too long.

8 years agoAdded PBKDF2 implementation, copied from OpenBSD.
Andrej Kacian [Thu, 7 Apr 2016 12:49:37 +0000 (14:49 +0200)]
Added PBKDF2 implementation, copied from OpenBSD.

8 years agoUpdate plugins' claws.def filess for Windows build.
Andrej Kacian [Wed, 6 Apr 2016 12:53:57 +0000 (14:53 +0200)]
Update plugins' claws.def filess for Windows build.

8 years agoRemove unneeded plugin_master_passphrase_change().
Andrej Kacian [Wed, 6 Apr 2016 12:53:37 +0000 (14:53 +0200)]
Remove unneeded plugin_master_passphrase_change().

8 years agoPython plugin: Add set_header_list() function for ComposeWindow objects
Holger Berndt [Tue, 5 Apr 2016 19:16:04 +0000 (21:16 +0200)]
Python plugin: Add set_header_list() function for ComposeWindow objects

8 years agopay attention there!
Paul [Sun, 3 Apr 2016 10:22:43 +0000 (11:22 +0100)]
pay attention there!

8 years agoa handful of documentation updates
Paul [Sun, 3 Apr 2016 10:21:14 +0000 (11:21 +0100)]
a handful of documentation updates

8 years agoRSSyl: zero out password variables after migration to password store
Andrej Kacian [Sat, 2 Apr 2016 15:07:35 +0000 (17:07 +0200)]
RSSyl: zero out password variables after migration to password store

8 years agoMake RSSyl plugin use the password store.
Andrej Kacian [Sat, 2 Apr 2016 15:00:43 +0000 (17:00 +0200)]
Make RSSyl plugin use the password store.

8 years agoMove RSSyl plugin name to a macro.
Andrej Kacian [Sat, 2 Apr 2016 13:57:50 +0000 (15:57 +0200)]
Move RSSyl plugin name to a macro.

8 years agoFix some odd debug outputs
Ricardo Mones [Sat, 2 Apr 2016 13:41:04 +0000 (15:41 +0200)]
Fix some odd debug outputs

8 years agoRequire GnuTLS version 3.0 for password encryption.
Andrej Kacian [Sat, 2 Apr 2016 11:58:48 +0000 (13:58 +0200)]
Require GnuTLS version 3.0 for password encryption.

8 years agoMake use of GNUTLS_CFLAGS to compile.
wwp [Fri, 1 Apr 2016 11:49:26 +0000 (13:49 +0200)]
Make use of GNUTLS_CFLAGS to compile.

8 years agoFix cast issue
Colin Leroy [Thu, 31 Mar 2016 17:55:49 +0000 (19:55 +0200)]
Fix cast issue

8 years agoMigrate GData plugin refresh token to password store correctly.
Andrej Kacian [Thu, 31 Mar 2016 13:18:40 +0000 (15:18 +0200)]
Migrate GData plugin refresh token to password store correctly.

8 years agoMigrate SpamReport passwords to password store correctly.
Andrej Kacian [Wed, 30 Mar 2016 21:02:14 +0000 (23:02 +0200)]
Migrate SpamReport passwords to password store correctly.

8 years agoMake vCalendar plugin use the password store.
Andrej Kacian [Wed, 30 Mar 2016 20:59:09 +0000 (22:59 +0200)]
Make vCalendar plugin use the password store.

8 years agoRewrite unfold_line() to handle UTF8 line breaks.
Andrej Kacian [Wed, 30 Mar 2016 16:21:08 +0000 (18:21 +0200)]
Rewrite unfold_line() to handle UTF8 line breaks.

This closes bug #3629 - Invalid subject can distort
message list view

8 years agoMerge branch 'master' of ssh://git.claws-mail.org/home/git/claws
Colin Leroy [Sun, 27 Mar 2016 22:00:41 +0000 (00:00 +0200)]
Merge branch 'master' of ssh://git.claws-mail.org/home/git/claws

8 years agoFix bug #3628: Typo in zh_TW.po
Ricardo Mones [Fri, 25 Mar 2016 18:26:33 +0000 (19:26 +0100)]
Fix bug #3628: Typo in zh_TW.po

Patch by rypervenche <sub@ryper.org> (thanks!)

8 years agoFix incorporation dialog focus with master passphrase dialog.
Andrej Kacian [Fri, 25 Mar 2016 11:15:23 +0000 (12:15 +0100)]
Fix incorporation dialog focus with master passphrase dialog.

8 years agoRemove dead code when the #ifndef is true
Ricardo Mones [Fri, 25 Mar 2016 00:23:18 +0000 (01:23 +0100)]
Remove dead code when the #ifndef is true

8 years agoSet empty block->entries to NULL in passwd_store_delete_block().
Andrej Kacian [Thu, 24 Mar 2016 20:40:39 +0000 (21:40 +0100)]
Set empty block->entries to NULL in passwd_store_delete_block().

8 years agoEmpty account block in password store when deleting an account.
Andrej Kacian [Thu, 24 Mar 2016 19:39:26 +0000 (20:39 +0100)]
Empty account block in password store when deleting an account.

This effectively deletes it, as empty password blocks are
not saved to disk.

8 years agoFix crash in rare corner case in password en/decryption.
Andrej Kacian [Thu, 24 Mar 2016 07:43:58 +0000 (08:43 +0100)]
Fix crash in rare corner case in password en/decryption.

8 years agoUse a hardcoded IV length in password encryption.
Andrej Kacian [Wed, 23 Mar 2016 16:13:43 +0000 (17:13 +0100)]
Use a hardcoded IV length in password encryption.

...since we can't count on having GnuTLS new enough to have
gnutls_cipher_get_iv_size().

8 years agoUse SHA-256 for master_passphrase_hash, since SHA-512 is too new.
Andrej Kacian [Wed, 23 Mar 2016 14:17:04 +0000 (15:17 +0100)]
Use SHA-256 for master_passphrase_hash, since SHA-512 is too new.

8 years agoMake gnutls password encryption the default if gnutls is available.
Andrej Kacian [Tue, 22 Mar 2016 12:23:41 +0000 (13:23 +0100)]
Make gnutls password encryption the default if gnutls is available.

8 years agoWrite passwordstore into file also after account passwords migration.
Andrej Kacian [Sat, 19 Mar 2016 21:28:23 +0000 (22:28 +0100)]
Write passwordstore into file also after account passwords migration.

8 years agoTreat storing empty password same as storing NULL password.
Andrej Kacian [Sat, 19 Mar 2016 20:07:41 +0000 (21:07 +0100)]
Treat storing empty password same as storing NULL password.

(That means delete the password. This simplifies handling
scenario where user had a password set, but wants to delete
it by leaving corresponding GtkEntry empty.)

8 years agoWrite passwordstore into file more often, not just at exit.
Andrej Kacian [Sat, 19 Mar 2016 19:50:04 +0000 (20:50 +0100)]
Write passwordstore into file more often, not just at exit.

8 years agoMake SpamReport plugin use the password store.
Andrej Kacian [Sat, 19 Mar 2016 19:44:21 +0000 (20:44 +0100)]
Make SpamReport plugin use the password store.