talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 5286b61fa85f46ed353f68c65af30a187cbabaa1
parent 10f541696bab3a95ad21d84846518eb30b6a4c45
Author: Colin Leroy <colin@colino.net>
Date:   Sat,  9 Nov 2019 22:48:39 +0100

Merge branch 'master' of ssh://git.claws-mail.org/home/git/claws

Diffstat:
Mconfigure.ac | 84+++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------
Msrc/main.c | 6+++---
Msrc/prefs_msg_colors.c | 9+++++++--
3 files changed, 64 insertions(+), 35 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -908,38 +908,62 @@ fi dnl Libetpan AC_MSG_CHECKING([whether to use libetpan]) if test x"$enable_libetpan" = xyes; then - AC_MSG_RESULT(yes) - libetpan_result=no - AC_PATH_PROG(libetpanconfig, [libetpan-config]) - if test "x$libetpanconfig" != "x"; then - CPPFLAGS="$CPPFLAGS `$libetpanconfig --cflags 2>/dev/null`" - AC_CHECK_HEADER(libetpan/libetpan.h, [libetpan_result=yes]) - if test "x$libetpan_result" = "xyes"; then - AC_MSG_CHECKING([whether libetpan-config hints compiles and links fine]) - LIBS="$LIBS `$libetpanconfig --libs 2>/dev/null`" - AC_TRY_LINK([#include <libetpan/dbstorage.h>], [db_mailstorage_init(NULL, NULL);], [libetpan_result=yes], [libetpan_result=no]) - AC_MSG_RESULT([$libetpan_result]) - fi - fi - if test "x$libetpan_result" = "xyes"; then - LIBETPAN_CPPFLAGS="`$libetpanconfig --cflags`" - LIBETPAN_LIBS="`$libetpanconfig --libs`" - LIBETPAN_VERSION=`$libetpanconfig --version | $AWK -F. '{printf "%d", ($1 * 100) + $2}'` - if test "$LIBETPAN_VERSION" -lt "57"; then - AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/]) - AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.]) + AC_MSG_RESULT(yes) + + libetpan_config=no + libetpan_result=no + libetpan_versiontype=0 + + # since 1.9.4, libetpan uses pkg-config + PKG_CHECK_MODULES([LIBETPAN], [libetpan >= 1.9.4], + [ + LIBETPAN_VERSION=`pkg-config --modversion | $AWK -F. '{printf "%d", ($1 * 10000) + ($2 * 100) + $3}'` + libetpan_config=yes + ], + [ + # before 1.9.4, libetpan uses its own libetpan-config script + AC_PATH_PROG(libetpanconfig, [libetpan-config]) + if test "x$libetpanconfig" != "x"; then + LIBETPAN_CPPFLAGS="`$libetpanconfig --cflags`" + LIBETPAN_LIBS="`$libetpanconfig --libs`" + # support libetpan version like x.x and x.x.x + libetpan_versiontype=`$libetpanconfig --version | tr -dc . | wc -c` + if test $libetpan_versiontype -eq 1; then + LIBETPAN_VERSION=`$libetpanconfig --version | $AWK -F. '{printf "%d", ($1 * 100) + $2}'` + else + LIBETPAN_VERSION=`$libetpanconfig --version | $AWK -F. '{printf "%d", ($1 * 10000) + ($2 * 100) + $3}'` + fi + libetpan_config=yes + fi + ]) + if test "x$libetpan_config" = "xyes"; then + CPPFLAGS="$CPPFLAGS $LIBETPAN_FLAGS" + AC_CHECK_HEADER(libetpan/libetpan.h, [libetpan_result=yes]) + if test "x$libetpan_result" = "xyes"; then + AC_MSG_CHECKING([whether libetpan-config hints compiles and links fine]) + LIBS="$LIBS $LIBETPAN_LIBS" + AC_TRY_LINK([#include <libetpan/dbstorage.h>], [db_mailstorage_init(NULL, NULL);], [libetpan_result=yes], [libetpan_result=no]) + AC_MSG_RESULT([$libetpan_result]) + fi + fi + if test "x$libetpan_result" = "xyes"; then + if test $libetpan_versiontype -eq 1; then + if test "$LIBETPAN_VERSION" -lt "57"; then + AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/]) + AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.]) AC_MSG_ERROR([libetpan 0.57 not found]) - fi - AC_SUBST(LIBETPAN_FLAGS) - AC_SUBST(LIBETPAN_LIBS) - AC_DEFINE(HAVE_LIBETPAN, 1, Define if you want IMAP and/or NNTP support.) - else - AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/ ]) - AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.]) - AC_MSG_ERROR([libetpan 0.57 not found]) - fi + fi + fi + AC_SUBST(LIBETPAN_FLAGS) + AC_SUBST(LIBETPAN_LIBS) + AC_DEFINE(HAVE_LIBETPAN, 1, Define if you want IMAP and/or NNit TP support.) + else + AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/ ]) + AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.]) + AC_MSG_ERROR([libetpan 0.57 not found]) + fi else - AC_MSG_RESULT(no) + AC_MSG_RESULT(no) fi AM_CONDITIONAL(CLAWS_LIBETPAN, test "x$libetpan_result" = "xyes") diff --git a/src/main.c b/src/main.c @@ -2400,11 +2400,11 @@ static gint prohibit_duplicate_launch(void) } else if (cmd.send) { fd_write_all(uxsock, "send\n", 5); } else if (cmd.online_mode == ONLINE_MODE_ONLINE) { - fd_write(uxsock, "online\n", 6); + fd_write(uxsock, "online\n", 7); } else if (cmd.online_mode == ONLINE_MODE_OFFLINE) { - fd_write(uxsock, "offline\n", 7); + fd_write(uxsock, "offline\n", 8); } else if (cmd.debug) { - fd_write(uxsock, "debug\n", 7); + fd_write(uxsock, "debug\n", 6); } else if (cmd.status || cmd.status_full) { gchar buf[BUFFSIZE]; gint i; diff --git a/src/prefs_msg_colors.c b/src/prefs_msg_colors.c @@ -310,7 +310,10 @@ static void prefs_msg_colors_create_widget(PrefsPage *_page, GtkWindow *window, COLOR_LABEL_PACK_START(hbox, COL_SIGNATURE, _("Signatures")); SET_TOGGLE_SENSITIVITY(checkbtn_enable_colors, label[COL_SIGNATURE]); - vbox4 = gtkut_get_options_frame(vbox2, &frame_diff, _("Patch messages and attachments")); + vbox4 = gtkut_get_options_frame(vbox2, &frame_diff, + /* TRANSLATORS: A patch is a text file listing the differences between 2 or more different */ + /* versions of the same text file */ + _("Patch messages and attachments")); SET_TOGGLE_SENSITIVITY(checkbtn_enable_colors, frame_diff); hbox = gtk_hbox_new(FALSE, VBOX_BORDER); @@ -337,9 +340,11 @@ static void prefs_msg_colors_create_widget(PrefsPage *_page, GtkWindow *window, gtk_box_pack_start (GTK_BOX (vbox4), hbox, FALSE, FALSE, 0); COLOR_BUTTON_PACK_START(hbox, COL_DIFF_HUNK, - C_("Tooltip", "Pick color for hunk lines")); + /* TRANSLATORS: A hunk is a section of the patch indicating how the files differ */ + C_("Tooltip.", "Pick color for hunk lines")); COLOR_LABEL_PACK_START(hbox, COL_DIFF_HUNK, + /* TRANSLATORS: A hunk is a section of the patch indicating how the files differ */ _("Hunk lines")); vbox2 = gtkut_get_options_frame(vbox1, &frame_folder, _("Folder list"));