claws.git
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.

8 years agoRemoved a forgotten debug line.
Andrej Kacian [Sat, 19 Mar 2016 19:14:40 +0000 (20:14 +0100)]
Removed a forgotten debug line.

8 years agoDo not create password block when deleting a password from store.
Andrej Kacian [Sat, 19 Mar 2016 19:00:57 +0000 (20:00 +0100)]
Do not create password block when deleting a password from store.

8 years agoFix crash when unloading GData plugin when it's not configured.
Andrej Kacian [Sat, 19 Mar 2016 18:54:40 +0000 (19:54 +0100)]
Fix crash when unloading GData plugin when it's not configured.

8 years agoMake GData plugin use the password store.
Andrej Kacian [Sat, 19 Mar 2016 17:10:02 +0000 (18:10 +0100)]
Make GData plugin use the password store.

Untested, as I have no Google accounts to test with.

8 years agoUpdate manual regarding new show/hide menu shortcut.
Andrej Kacian [Sat, 19 Mar 2016 10:15:21 +0000 (11:15 +0100)]
Update manual regarding new show/hide menu shortcut.

8 years agoChange default show/hide shortcut to Ctrl+F12.
Andrej Kacian [Sat, 19 Mar 2016 10:09:18 +0000 (11:09 +0100)]
Change default show/hide shortcut to Ctrl+F12.

8 years agoUse account ID instead of name in passwordstorerc.
Andrej Kacian [Mon, 14 Mar 2016 19:46:59 +0000 (20:46 +0100)]
Use account ID instead of name in passwordstorerc.

8 years agoMigrate managesieve to passwordstore
Charles Lehner [Mon, 14 Mar 2016 04:55:49 +0000 (00:55 -0400)]
Migrate managesieve to passwordstore

8 years agoFix unitialised access
Colin Leroy [Thu, 3 Mar 2016 20:14:59 +0000 (21:14 +0100)]
Fix unitialised access

8 years ago"Master password" is now called "master passphrase".
Andrej Kacian [Thu, 3 Mar 2016 10:17:41 +0000 (11:17 +0100)]
"Master password" is now called "master passphrase".

This is to help diferentiate between passwords coming from
accounts, plugins, etc., and the master passphrase used in
an AES encryption key for encrypting these passwords.

8 years agoMake POP3 use password store too.
Andrej Kacian [Wed, 2 Mar 2016 12:59:35 +0000 (13:59 +0100)]
Make POP3 use password store too.

8 years agoFix previous fix ;-)
Andrej Kacian [Wed, 2 Mar 2016 12:36:29 +0000 (13:36 +0100)]
Fix previous fix ;-)

8 years agoFix a Coverity warning caused by previous commits.
Andrej Kacian [Wed, 2 Mar 2016 06:35:25 +0000 (07:35 +0100)]
Fix a Coverity warning caused by previous commits.

8 years agoFix SMTP password use with password store.
Andrej Kacian [Tue, 1 Mar 2016 20:11:09 +0000 (21:11 +0100)]
Fix SMTP password use with password store.

8 years agoMake accounts use new password store for their passwords.
Andrej Kacian [Sun, 28 Feb 2016 22:42:56 +0000 (23:42 +0100)]
Make accounts use new password store for their passwords.

8 years agoImplement a password store.
Andrej Kacian [Thu, 18 Feb 2016 21:25:55 +0000 (22:25 +0100)]
Implement a password store.

8 years agoUpon master password change, ask for old password immediately.
Andrej Kacian [Tue, 1 Mar 2016 18:44:25 +0000 (19:44 +0100)]
Upon master password change, ask for old password immediately.

8 years agofix typos in function name
Paul [Thu, 25 Feb 2016 08:22:02 +0000 (08:22 +0000)]
fix typos in function name

8 years agoremove the whole unncessary if block, completing the last commit
Paul [Wed, 24 Feb 2016 20:19:08 +0000 (20:19 +0000)]
remove the whole unncessary if block, completing the last commit

8 years agoremove spurious single quotes in mailcap_get_command_in_file()
Paul [Wed, 24 Feb 2016 20:02:46 +0000 (20:02 +0000)]
remove spurious single quotes in mailcap_get_command_in_file()

8 years agoadd missing include
Paul [Wed, 24 Feb 2016 12:45:22 +0000 (12:45 +0000)]
add missing include

8 years agoAdd warning about missing LOGIN SASL plugin for IMAP.
Andrej Kacian [Sat, 20 Feb 2016 11:07:01 +0000 (12:07 +0100)]
Add warning about missing LOGIN SASL plugin for IMAP.

8 years agoprevent always selecting html part in multipart/alternative
Paul [Sat, 20 Feb 2016 10:10:21 +0000 (10:10 +0000)]
prevent always selecting html part in multipart/alternative

this bug was introduced in 4745b80528426498b9e4f61d0f1a812e94ce1a6e

8 years agoMade the gnutls password encryption work on Win32.
Andrej Kacian [Fri, 19 Feb 2016 23:27:47 +0000 (00:27 +0100)]
Made the gnutls password encryption work on Win32.

8 years agoRevert "Made the gnutls password encryption work on Win32."
Andrej Kacian [Fri, 19 Feb 2016 23:27:24 +0000 (00:27 +0100)]
Revert "Made the gnutls password encryption work on Win32."

This reverts commit 18ccbd586fec890cab70ce34c94c580d69fffdd0.
I committed more than I expected, files in po/ snuck in, sorry!

8 years agoMade the gnutls password encryption work on Win32.
Andrej Kacian [Fri, 19 Feb 2016 23:21:40 +0000 (00:21 +0100)]
Made the gnutls password encryption work on Win32.

8 years agoFix a compile error on Win32.
Andrej Kacian [Fri, 19 Feb 2016 22:18:28 +0000 (23:18 +0100)]
Fix a compile error on Win32.

8 years agoAdd scroll to SSL certificates list
Ricardo Mones [Fri, 19 Feb 2016 18:24:09 +0000 (19:24 +0100)]
Add scroll to SSL certificates list

Avoids window growing out of screen height when there's a large
amount of certificates on the list.

8 years agoFix leak on error and error reporting
Ricardo Mones [Fri, 19 Feb 2016 18:23:00 +0000 (19:23 +0100)]
Fix leak on error and error reporting

8 years agoFix a couple of typos
Ricardo Mones [Fri, 19 Feb 2016 18:21:50 +0000 (19:21 +0100)]
Fix a couple of typos

8 years agoFix bug #2604: Add support for -geometry
Ricardo Mones [Fri, 19 Feb 2016 18:15:12 +0000 (19:15 +0100)]
Fix bug #2604: Add support for -geometry

And document it too :-)

8 years agoFix bug #3578: Strings around MAILIMAP_ERROR…
Ricardo Mones [Fri, 19 Feb 2016 18:03:15 +0000 (19:03 +0100)]
Fix bug #3578: Strings around MAILIMAP_ERROR…

…could use some whitespace fixes. Patch by Andreas Rönnquist (thanks!).

8 years agoFix bug #3581: sys:1: Warning: Source ID # was…
Ricardo Mones [Fri, 19 Feb 2016 17:58:34 +0000 (18:58 +0100)]
Fix bug #3581: sys:1: Warning: Source ID # was…

…not found when attempting to remove it, and remove unused logic.

8 years agoFix bug #3028: Claws doesn't select html part if attachments present
Ricardo Mones [Fri, 19 Feb 2016 17:50:04 +0000 (18:50 +0100)]
Fix bug #3028: Claws doesn't select html part if attachments present

Make HTML part search recursive maintaining current functionality:
• display first HTML part
• promotion of calendar attachments (if vCalendar is available)
• not promoting HTML attachments

8 years agoImplement real LOGIN auth method for IMAP.
Andrej Kacian [Fri, 19 Feb 2016 16:52:50 +0000 (17:52 +0100)]
Implement real LOGIN auth method for IMAP.

The "old LOGIN" was in fact just a basic plaintext login method,
using: "LOGIN username password", not the SASL LOGIN method.

8 years agoEnable SASL PLAIN auth mechanism for IMAP accounts.
Andrej Kacian [Fri, 19 Feb 2016 16:13:08 +0000 (17:13 +0100)]
Enable SASL PLAIN auth mechanism for IMAP accounts.

8 years agoAdd a plugin method to allow updating stored passwords on master password change.
Colin Leroy [Thu, 11 Feb 2016 13:32:44 +0000 (14:32 +0100)]
Add a plugin method to allow updating stored passwords on master password change.
GData is still untested.

8 years agoActually encrypt passwords before storing them
Colin Leroy [Thu, 11 Feb 2016 11:11:48 +0000 (12:11 +0100)]
Actually encrypt passwords before storing them

8 years agoRequire new password API
Colin Leroy [Thu, 11 Feb 2016 10:42:34 +0000 (11:42 +0100)]
Require new password API

8 years agoSpamReport: use new password API
Colin Leroy [Thu, 11 Feb 2016 10:33:19 +0000 (11:33 +0100)]
SpamReport: use new password API

8 years agoGData: use new password API. Completely untested as I don't have the dependancies...
Colin Leroy [Thu, 11 Feb 2016 10:28:07 +0000 (11:28 +0100)]
GData: use new password API. Completely untested as I don't have the dependancies available to build!

8 years agoForgot to memset. We should add an helper function for this.
Colin Leroy [Thu, 11 Feb 2016 10:22:47 +0000 (11:22 +0100)]
Forgot to memset. We should add an helper function for this.

8 years agovCalendar: Use new password API
Colin Leroy [Thu, 11 Feb 2016 10:21:52 +0000 (11:21 +0100)]
vCalendar: Use new password API

8 years agoFix another g_log warning
Colin Leroy [Thu, 11 Feb 2016 09:33:10 +0000 (10:33 +0100)]
Fix another g_log warning

8 years agoFix indentation, sorry
Colin Leroy [Thu, 11 Feb 2016 09:27:36 +0000 (10:27 +0100)]
Fix indentation, sorry

8 years agoFix a leak and g_log() in case of null passwords
Colin Leroy [Thu, 11 Feb 2016 09:25:06 +0000 (10:25 +0100)]
Fix a leak and g_log() in case of null passwords

8 years agoFix two crashes in IMAP introduced by the passwords change.
Andrej Kacian [Wed, 10 Feb 2016 23:52:49 +0000 (00:52 +0100)]
Fix two crashes in IMAP introduced by the passwords change.

8 years agoFix inputdialog modality and focus issue.
Andrej Kacian [Wed, 10 Feb 2016 23:47:07 +0000 (00:47 +0100)]
Fix inputdialog modality and focus issue.

8 years agoAnother logic fix for handling master password change dialog.
Andrej Kacian [Wed, 10 Feb 2016 18:46:11 +0000 (19:46 +0100)]
Another logic fix for handling master password change dialog.

8 years agoFix a logic error in handling results of master password change dialog.
Andrej Kacian [Wed, 10 Feb 2016 17:31:25 +0000 (18:31 +0100)]
Fix a logic error in handling results of master password change dialog.

8 years agoFix a segfault caused by freeing a string on incorrect place.
Andrej Kacian [Wed, 10 Feb 2016 17:30:20 +0000 (18:30 +0100)]
Fix a segfault caused by freeing a string on incorrect place.

Closes bug #3616.

8 years agoAddendum to 503cb50 (Fix build with --with-password-encryption=old)
Andrej Kacian [Tue, 9 Feb 2016 15:29:31 +0000 (16:29 +0100)]
Addendum to 503cb50 (Fix build with --with-password-encryption=old)

8 years agoAdd help text and change text of second label
Michael Rasmussen [Mon, 8 Feb 2016 19:58:04 +0000 (20:58 +0100)]
Add help text and change text of second label

8 years agoImproved master password change dialog a bit.
Andrej Kacian [Mon, 8 Feb 2016 19:19:19 +0000 (20:19 +0100)]
Improved master password change dialog a bit.

8 years agoRevert "Fix a teensy weensy memory leak in Action configuration dialog."
Andrej Kacian [Mon, 8 Feb 2016 18:23:00 +0000 (19:23 +0100)]
Revert "Fix a teensy weensy memory leak in Action configuration dialog."

This reverts commit 2d1d24e2dce8a0a3704ff28e5d2cc878316d0d84.

8 years agoFix a teensy weensy memory leak in Action configuration dialog.
Andrej Kacian [Mon, 8 Feb 2016 18:19:07 +0000 (19:19 +0100)]
Fix a teensy weensy memory leak in Action configuration dialog.

8 years agoFix a possible use-after-free for ContactData pointers in new addressbook.
Andrej Kacian [Mon, 8 Feb 2016 18:18:35 +0000 (19:18 +0100)]
Fix a possible use-after-free for ContactData pointers in new addressbook.

8 years agoReal fix for #3598. We were zeroing out wrong pointer.
Andrej Kacian [Mon, 8 Feb 2016 17:26:26 +0000 (18:26 +0100)]
Real fix for #3598. We were zeroing out wrong pointer.

8 years agoMake procmime_mimeinfo_free_all() zero the passed pointer.
Andrej Kacian [Mon, 8 Feb 2016 17:26:49 +0000 (18:26 +0100)]
Make procmime_mimeinfo_free_all() zero the passed pointer.

The function's argument type changes from MimeInfo* to MimeInfo**,
so that we can zero out the pointer.

This closes bug #3610, reported by Hanno Boeck.

8 years agoFix build with --with-password-encryption=old
Andrej Kacian [Mon, 8 Feb 2016 11:40:23 +0000 (12:40 +0100)]
Fix build with --with-password-encryption=old

8 years agoAdded "Forget master password" mainwindow menu entry.
Andrej Kacian [Sun, 7 Feb 2016 19:07:03 +0000 (20:07 +0100)]
Added "Forget master password" mainwindow menu entry.

8 years agoForget entered master password before trying to change it.
Andrej Kacian [Sun, 7 Feb 2016 18:51:20 +0000 (19:51 +0100)]
Forget entered master password before trying to change it.

This makes sure the user always has to input current master
password before he is allowed to change it.

8 years agoFix segfault when account password is not saved…
Ricardo Mones [Sat, 6 Feb 2016 22:49:51 +0000 (23:49 +0100)]
Fix segfault when account password is not saved…

…in account preferences, introduced also in 54adfb4.
In this case acc_pass is NULL, so it must be checked
before trying to dereference it.

8 years agoFix a null pointer dereference introduced by 54adfb4.
Andrej Kacian [Fri, 5 Feb 2016 09:43:15 +0000 (10:43 +0100)]
Fix a null pointer dereference introduced by 54adfb4.

acc_pass is pointing to same address as pass, and we are inside
an if block that includes "!pass" condition, so trying to zero
and free acc_pass is a wrong thing to do.

8 years agoAdded password_encryption.txt to docs/src.
Andrej Kacian [Thu, 4 Feb 2016 21:02:35 +0000 (22:02 +0100)]
Added password_encryption.txt to docs/src.

8 years agoRewritten account passwords handling.
Andrej Kacian [Sat, 16 Jan 2016 21:13:53 +0000 (22:13 +0100)]
Rewritten account passwords handling.

Passwords are only decrypted before their actual use, not
while loading from accountrc.
Passwords are stored as "{algorithm}base64encodedciphertext",
encrypted using AES-CBC cipher, with PASSCRYPT_KEY used as
and encryption key.
Optionally, the encryption key, also known as "master password"
can be changed by user.

8 years agoRemoved simple-gettext.c, as it is not being used at all.
Andrej Kacian [Wed, 3 Feb 2016 10:50:43 +0000 (11:50 +0100)]
Removed simple-gettext.c, as it is not being used at all.

8 years agofix Compose account selection when imap folder is selected
Paul [Tue, 2 Feb 2016 13:06:03 +0000 (13:06 +0000)]
fix Compose account selection when imap folder is selected

don't just select the imap account, ignoring default account et al

8 years agoautomatically use external editor on fwd-as-attachment if option is set
Paul [Fri, 29 Jan 2016 13:33:25 +0000 (13:33 +0000)]
automatically use external editor on fwd-as-attachment if option is set

8 years agoRemove the outer scrollbar from header area.
Andrej Kacian [Thu, 28 Jan 2016 19:13:45 +0000 (20:13 +0100)]
Remove the outer scrollbar from header area.

This means the sender address line, with account
selector is always visible.

8 years agoFix superfluous semicolons from 543c7d3.
Andrej Kacian [Wed, 27 Jan 2016 17:16:15 +0000 (18:16 +0100)]
Fix superfluous semicolons from 543c7d3.

8 years agoRSSyl: Handle XHTML content correctly for Atom feeds.
Andrej Kacian [Wed, 27 Jan 2016 15:54:07 +0000 (16:54 +0100)]
RSSyl: Handle XHTML content correctly for Atom feeds.

Fixes bug #3603.

8 years agoFix unused variable warning
Colin Leroy [Sun, 24 Jan 2016 19:11:41 +0000 (20:11 +0100)]
Fix unused variable warning