[Commits] [SCM] claws branch, master, updated. 3.9.0-183-g0f3a48d

mones at claws-mail.org mones at claws-mail.org
Tue Apr 16 00:39:26 CEST 2013


The branch master of project "claws" (Claws Mail) has been updated
       via  0f3a48d7db4a051e11fb8c56d25356d42b8643d8 (commit)
      from  8528776ec96ecb6abbfc1c5a1fcc923fd89fcf4d (commit)


- Log -----------------------------------------------------------------
commit 0f3a48d7db4a051e11fb8c56d25356d42b8643d8
Author: Ricardo Mones <ricardo at mones.org>
Date:   Tue Apr 16 00:33:49 2013 +0200

    Fix bug #2905 "Include the signature timestamp in the 'full signature information'"
    
    Format used is the same shown in summary view date column.
    Original patch by Fabian Keil, thanks! ;-)

diff --git a/src/plugins/pgpcore/sgpgme.c b/src/plugins/pgpcore/sgpgme.c
index df769f4..71ec5eb 100644
--- a/src/plugins/pgpcore/sgpgme.c
+++ b/src/plugins/pgpcore/sgpgme.c
@@ -265,6 +265,8 @@ gchar *sgpgme_sigstat_info_full(gpgme_ctx_t ctx, gpgme_verify_result_t status)
 	sig = status->signatures;
 	
 	while (sig) {
+		char buf[100];
+		struct tm lt;
 		gpgme_user_id_t user = NULL;
 		gpgme_key_t key;
 		gpgme_error_t err;
@@ -290,9 +292,12 @@ gchar *sgpgme_sigstat_info_full(gpgme_ctx_t ctx, gpgme_verify_result_t status)
 			keyid = "?";
 			uid = "?";
 		}
+
+		memset(buf, 0, sizeof(buf));
+		fast_strftime(buf, sizeof(buf)-1, prefs_common.date_format, localtime_r(&sig->timestamp, &lt));
 		g_string_append_printf(siginfo,
-			_("Signature made using %s key ID %s\n"),
-			keytype, keyid);
+			_("Signature made on %s using %s key ID %s\n"),
+			buf, keytype, keyid);
 		
 		switch (gpg_err_code(sig->status)) {
 		case GPG_ERR_NO_ERROR:

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/pgpcore/sgpgme.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list