diff options
author | pat <pat@FreeBSD.org> | 2002-07-24 04:34:47 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-07-24 04:34:47 +0800 |
commit | 45971483e90141daafc9d5e77f4c5c4fb38ffb94 (patch) | |
tree | d2d0f47e5e189c341e444cc0dfeb3c2d12f79122 /mail | |
parent | 490b02e64b8799c00b177ecd7ba332db92af61d9 (diff) | |
download | freebsd-ports-gnome-45971483e90141daafc9d5e77f4c5c4fb38ffb94.tar.gz freebsd-ports-gnome-45971483e90141daafc9d5e77f4c5c4fb38ffb94.tar.zst freebsd-ports-gnome-45971483e90141daafc9d5e77f4c5c4fb38ffb94.zip |
Update to 0.8.0
PR: ports/40931
Submitted by: maintainer
Diffstat (limited to 'mail')
-rw-r--r-- | mail/claws-mail/Makefile | 8 | ||||
-rw-r--r-- | mail/claws-mail/distinfo | 2 | ||||
-rw-r--r-- | mail/claws-mail/files/patch-configure | 45 | ||||
-rw-r--r-- | mail/claws-mail/files/patch-src-summary_search.c | 126 | ||||
-rw-r--r-- | mail/claws-mail/pkg-plist | 2 | ||||
-rw-r--r-- | mail/sylpheed-claws/Makefile | 8 | ||||
-rw-r--r-- | mail/sylpheed-claws/distinfo | 2 | ||||
-rw-r--r-- | mail/sylpheed-claws/files/patch-configure | 45 | ||||
-rw-r--r-- | mail/sylpheed-claws/files/patch-src-summary_search.c | 126 | ||||
-rw-r--r-- | mail/sylpheed-claws/pkg-plist | 2 |
10 files changed, 302 insertions, 64 deletions
diff --git a/mail/claws-mail/Makefile b/mail/claws-mail/Makefile index 54b83d30bc0d..0b630119cbd9 100644 --- a/mail/claws-mail/Makefile +++ b/mail/claws-mail/Makefile @@ -6,7 +6,7 @@ # PORTNAME= sylpheed-claws -PORTVERSION= 0.7.8 +PORTVERSION= 0.8.0 CATEGORIES= mail news ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= sylpheed-claws @@ -29,6 +29,8 @@ USE_LIBTOOL= yes USE_GTK= yes USE_REINPLACE= yes +MAN1= sylpheed-claws.1 + CONFIGURE_ARGS= --program-suffix="-claws" --enable-ipv6 CONFIGURE_ENV= CFLAGS="${CFLAGS}" CPPFLAGS="-I${LOCALBASE}/include" \ @@ -107,7 +109,7 @@ post-extract: post-patch: @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \ ${WRKSRC}/tools/README.sylprint ${WRKSRC}/tools/sylprint.pl - @${REINPLACE_CMD} -e "s|po intl libkcc|po libkcc|" ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e "s|po intl src|po src|" ${WRKSRC}/Makefile.in .if defined(NOPORTDOCS) @${REINPLACE_CMD} -e 's|src manual faq tools|src tools|' ${WRKSRC}/Makefile.in .endif @@ -117,7 +119,7 @@ pre-build: post-install: .if !defined(NOPORTDOCS) -.for i in NEWS README README.jp README.claws ReleaseNotes.claws TODO TODO.jp tools/README.sylprint +.for i in NEWS README README.jp README.claws RELEASE_NOTES.claws TODO TODO.jp tools/README.sylprint @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} .endfor @${INSTALL_DATA} ${WRKSRC}/tools/README ${DOCSDIR}/README.tools diff --git a/mail/claws-mail/distinfo b/mail/claws-mail/distinfo index 7eac9153807f..8b4abf8a02b9 100644 --- a/mail/claws-mail/distinfo +++ b/mail/claws-mail/distinfo @@ -1,2 +1,2 @@ -MD5 (sylpheed-0.7.8claws.tar.bz2) = 94724f28b92a20297783aa29625b558c +MD5 (sylpheed-0.8.0claws.tar.bz2) = 17340f13eb02a9c01a54286727fbe8c0 MD5 (sylpheed-theme-pak2.tar.bz2) = e62d7a6188d1212e0ceac8ed7aaecd62 diff --git a/mail/claws-mail/files/patch-configure b/mail/claws-mail/files/patch-configure index 7fc71eab9637..8359397a893e 100644 --- a/mail/claws-mail/files/patch-configure +++ b/mail/claws-mail/files/patch-configure @@ -1,5 +1,5 @@ ---- configure.orig Sat Jun 15 10:50:09 2002 -+++ configure Sun Jun 16 18:02:59 2002 +--- configure.orig Tue Jul 23 10:51:33 2002 ++++ configure Tue Jul 23 15:46:26 2002 @@ -1172,7 +1172,7 @@ PATH_SEPARATOR="$ac_path_separator" rm -f conftest.sh @@ -8,8 +8,8 @@ +PACKAGE=sylpheed-claws MAJOR_VERSION=0 - MINOR_VERSION=7 -@@ -1612,7 +1612,7 @@ + MINOR_VERSION=8 +@@ -1653,7 +1653,7 @@ fi @@ -18,7 +18,7 @@ SYLPHEED_GNOME_TRUE= SYLPHEED_GNOME_FALSE='#' else -@@ -7019,7 +7019,7 @@ +@@ -7054,7 +7054,7 @@ fi # This can be used to rebuild libtool when needed @@ -27,7 +27,15 @@ # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' -@@ -9932,8 +9932,8 @@ +@@ -9862,6 +9862,7 @@ + #line 9862 "configure" + #include "confdefs.h" + #include <libintl.h> ++#define _nl_domain_bindings _nl_domain_bindings__ /* configure is retarded. */ + extern int _nl_msg_cat_cntr; + extern int *_nl_domain_bindings; + extern +@@ -9967,8 +9968,8 @@ INTLOBJS="\$(GETTOBJS)" BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes @@ -38,7 +46,7 @@ LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi -@@ -10019,9 +10019,9 @@ +@@ -10054,9 +10055,9 @@ localedir='${prefix}/${DATADIRNAME}/locale' @@ -50,29 +58,12 @@ if test "x${datadir}" = 'x${prefix}/share'; then if test "x${prefix}" = "xNONE"; then -@@ -11633,7 +11633,7 @@ - - if test "$ac_cv_enable_ldap" = yes; then - CFLAGS="$CFLAGS `$GLIB_CONFIG --cflags gthread`" -- LIBS="$LIBS -lldap -llber -lpthread -lresolv `$GLIB_CONFIG --libs gthread`" -+ LIBS="$LIBS -lldap -llber ${PTHREAD_LIBS} `$GLIB_CONFIG --libs gthread`" - fi - else - echo "$as_me:11639: result: no" >&5 -@@ -14194,7 +14194,7 @@ +@@ -14555,7 +14556,7 @@ fi done --ac_config_files="$ac_config_files Makefile sylpheed.spec ac/Makefile libkcc/Makefile src/version.h src/Makefile faq/Makefile faq/de/Makefile faq/en/Makefile faq/es/Makefile faq/fr/Makefile faq/it/Makefile manual/Makefile manual/de/Makefile manual/en/Makefile manual/es/Makefile manual/fr/Makefile manual/ja/Makefile tools/Makefile intl/Makefile po/Makefile.in" -+ac_config_files="$ac_config_files Makefile sylpheed.spec ac/Makefile libkcc/Makefile src/version.h src/Makefile faq/Makefile faq/de/Makefile faq/en/Makefile faq/es/Makefile faq/fr/Makefile faq/it/Makefile manual/Makefile manual/de/Makefile manual/en/Makefile manual/es/Makefile manual/fr/Makefile manual/ja/Makefile tools/Makefile po/Makefile.in" +-ac_config_files="$ac_config_files Makefile sylpheed.spec intl/Makefile ac/Makefile po/Makefile.in src/version.h src/Makefile faq/Makefile faq/de/Makefile faq/en/Makefile faq/es/Makefile faq/fr/Makefile faq/it/Makefile man/Makefile manual/Makefile manual/de/Makefile manual/en/Makefile manual/es/Makefile manual/fr/Makefile manual/ja/Makefile tools/Makefile" ++ac_config_files="$ac_config_files Makefile sylpheed.spec ac/Makefile po/Makefile.in src/version.h src/Makefile faq/Makefile faq/de/Makefile faq/en/Makefile faq/es/Makefile faq/fr/Makefile faq/it/Makefile man/Makefile manual/Makefile manual/de/Makefile manual/en/Makefile manual/es/Makefile manual/fr/Makefile manual/ja/Makefile tools/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure -@@ -14539,7 +14539,6 @@ - "manual/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES manual/fr/Makefile" ;; - "manual/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES manual/ja/Makefile" ;; - "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; -- "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; - "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; - "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; diff --git a/mail/claws-mail/files/patch-src-summary_search.c b/mail/claws-mail/files/patch-src-summary_search.c new file mode 100644 index 000000000000..99f184bdea36 --- /dev/null +++ b/mail/claws-mail/files/patch-src-summary_search.c @@ -0,0 +1,126 @@ +--- src/summary_search.c.orig Wed Jun 12 07:49:20 2002 ++++ src/summary_search.c Tue Jul 23 19:14:41 2002 +@@ -224,10 +224,6 @@ + gboolean backward; + gboolean search_all; + gboolean all_searched = FALSE; +- gboolean from_matched; +- gboolean to_matched; +- gboolean subj_matched; +- gboolean body_matched; + gchar *body_str; + wchar_t *wcs_hs, *fromwcs, *towcs, *subjwcs; + wchar_t *(* WCSFindFunc) (const wchar_t *haystack, +@@ -260,6 +256,7 @@ + towcs = (wchar_t *)GTK_ENTRY(to_entry)->text; + subjwcs = (wchar_t *)GTK_ENTRY(subject_entry)->text; + body_str = gtk_entry_get_text(GTK_ENTRY(body_entry)); ++ wcs_hs = NULL; + + if (search_all) { + gtk_clist_freeze(GTK_CLIST(ctree)); +@@ -285,7 +282,13 @@ + if (*body_str) + main_window_cursor_wait(summaryview->mainwin); + +- for (;;) { ++ for (;; node = backward ? GTK_CTREE_NODE_PREV(node) ++ : GTK_CTREE_NODE_NEXT(node)) { ++ if (wcs_hs) { ++ g_free(wcs_hs); ++ wcs_hs = NULL; ++ } ++ + if (!node) { + gchar *str; + AlertValue val; +@@ -324,58 +327,49 @@ + break; + } + +- from_matched = to_matched = subj_matched = body_matched = FALSE; +- + msginfo = gtk_ctree_node_get_row_data(ctree, node); + +- if (*fromwcs && msginfo->from) { ++ if (*fromwcs) { ++ if (msginfo->from == NULL) ++ continue; + wcs_hs = strdup_mbstowcs(msginfo->from); +- if (wcs_hs && WCSFindFunc(wcs_hs, fromwcs) != NULL) +- from_matched = TRUE; +- g_free(wcs_hs); ++ if (!(wcs_hs && WCSFindFunc(wcs_hs, fromwcs) != NULL)) ++ continue; + } +- if (*towcs && msginfo->to) { ++ if (*towcs) { ++ if (msginfo->to == NULL) ++ continue; + wcs_hs = strdup_mbstowcs(msginfo->to); +- if (wcs_hs && WCSFindFunc(wcs_hs, towcs) != NULL) +- to_matched = TRUE; +- g_free(wcs_hs); ++ if (!(wcs_hs && WCSFindFunc(wcs_hs, towcs) != NULL)) ++ continue; + } +- if (*subjwcs && msginfo->subject) { ++ if (*subjwcs) { ++ if (msginfo->subject == NULL) ++ continue; + wcs_hs = strdup_mbstowcs(msginfo->subject); +- if (wcs_hs && WCSFindFunc(wcs_hs, subjwcs) != NULL) +- subj_matched = TRUE; +- g_free(wcs_hs); ++ if (!(wcs_hs && WCSFindFunc(wcs_hs, subjwcs) != NULL)) ++ continue; + } + if (*body_str) { +- if (procmime_find_string(msginfo, body_str, case_sens)) +- body_matched = TRUE; ++ if (!procmime_find_string(msginfo, body_str, case_sens)) ++ continue; + } + +- if (from_matched || to_matched || subj_matched || body_matched) { +- if (search_all) +- gtk_ctree_select(ctree, node); +- else { +- if (messageview_is_visible +- (summaryview->messageview)) { +- summary_unlock(summaryview); +- summary_select_node +- (summaryview, node, TRUE, TRUE); +- summary_lock(summaryview); +- if (body_matched) { +- messageview_search_string +- (summaryview->messageview, +- body_str, case_sens); +- } +- } else { +- summary_select_node +- (summaryview, node, FALSE, TRUE); +- } +- break; +- } ++ if (search_all) ++ gtk_ctree_select(ctree, node); ++ else { ++ if (messageview_is_visible(summaryview->messageview)) { ++ summary_unlock(summaryview); ++ summary_select_node(summaryview, node, TRUE, TRUE); ++ summary_lock(summaryview); ++ if (*body_str) ++ messageview_search_string( ++ summaryview->messageview, ++ body_str, case_sens); ++ } else ++ summary_select_node(summaryview, node, FALSE, TRUE); ++ break; + } +- +- node = backward ? GTK_CTREE_NODE_PREV(node) +- : GTK_CTREE_NODE_NEXT(node); + } + + if (*body_str) diff --git a/mail/claws-mail/pkg-plist b/mail/claws-mail/pkg-plist index 0272d9975490..ff993c98ae78 100644 --- a/mail/claws-mail/pkg-plist +++ b/mail/claws-mail/pkg-plist @@ -8,7 +8,7 @@ etc/sylprint.rc.example %%PORTDOCS%%share/doc/sylpheed-claws/README.jp %%PORTDOCS%%share/doc/sylpheed-claws/README.sylprint %%PORTDOCS%%share/doc/sylpheed-claws/README.tools -%%PORTDOCS%%share/doc/sylpheed-claws/ReleaseNotes.claws +%%PORTDOCS%%share/doc/sylpheed-claws/RELEASE_NOTES.claws %%PORTDOCS%%share/doc/sylpheed-claws/TODO %%PORTDOCS%%share/doc/sylpheed-claws/TODO.jp %%PORTDOCS%%share/doc/sylpheed-claws/faq/de/sylpheed-faq-1.html diff --git a/mail/sylpheed-claws/Makefile b/mail/sylpheed-claws/Makefile index 54b83d30bc0d..0b630119cbd9 100644 --- a/mail/sylpheed-claws/Makefile +++ b/mail/sylpheed-claws/Makefile @@ -6,7 +6,7 @@ # PORTNAME= sylpheed-claws -PORTVERSION= 0.7.8 +PORTVERSION= 0.8.0 CATEGORIES= mail news ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= sylpheed-claws @@ -29,6 +29,8 @@ USE_LIBTOOL= yes USE_GTK= yes USE_REINPLACE= yes +MAN1= sylpheed-claws.1 + CONFIGURE_ARGS= --program-suffix="-claws" --enable-ipv6 CONFIGURE_ENV= CFLAGS="${CFLAGS}" CPPFLAGS="-I${LOCALBASE}/include" \ @@ -107,7 +109,7 @@ post-extract: post-patch: @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \ ${WRKSRC}/tools/README.sylprint ${WRKSRC}/tools/sylprint.pl - @${REINPLACE_CMD} -e "s|po intl libkcc|po libkcc|" ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e "s|po intl src|po src|" ${WRKSRC}/Makefile.in .if defined(NOPORTDOCS) @${REINPLACE_CMD} -e 's|src manual faq tools|src tools|' ${WRKSRC}/Makefile.in .endif @@ -117,7 +119,7 @@ pre-build: post-install: .if !defined(NOPORTDOCS) -.for i in NEWS README README.jp README.claws ReleaseNotes.claws TODO TODO.jp tools/README.sylprint +.for i in NEWS README README.jp README.claws RELEASE_NOTES.claws TODO TODO.jp tools/README.sylprint @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} .endfor @${INSTALL_DATA} ${WRKSRC}/tools/README ${DOCSDIR}/README.tools diff --git a/mail/sylpheed-claws/distinfo b/mail/sylpheed-claws/distinfo index 7eac9153807f..8b4abf8a02b9 100644 --- a/mail/sylpheed-claws/distinfo +++ b/mail/sylpheed-claws/distinfo @@ -1,2 +1,2 @@ -MD5 (sylpheed-0.7.8claws.tar.bz2) = 94724f28b92a20297783aa29625b558c +MD5 (sylpheed-0.8.0claws.tar.bz2) = 17340f13eb02a9c01a54286727fbe8c0 MD5 (sylpheed-theme-pak2.tar.bz2) = e62d7a6188d1212e0ceac8ed7aaecd62 diff --git a/mail/sylpheed-claws/files/patch-configure b/mail/sylpheed-claws/files/patch-configure index 7fc71eab9637..8359397a893e 100644 --- a/mail/sylpheed-claws/files/patch-configure +++ b/mail/sylpheed-claws/files/patch-configure @@ -1,5 +1,5 @@ ---- configure.orig Sat Jun 15 10:50:09 2002 -+++ configure Sun Jun 16 18:02:59 2002 +--- configure.orig Tue Jul 23 10:51:33 2002 ++++ configure Tue Jul 23 15:46:26 2002 @@ -1172,7 +1172,7 @@ PATH_SEPARATOR="$ac_path_separator" rm -f conftest.sh @@ -8,8 +8,8 @@ +PACKAGE=sylpheed-claws MAJOR_VERSION=0 - MINOR_VERSION=7 -@@ -1612,7 +1612,7 @@ + MINOR_VERSION=8 +@@ -1653,7 +1653,7 @@ fi @@ -18,7 +18,7 @@ SYLPHEED_GNOME_TRUE= SYLPHEED_GNOME_FALSE='#' else -@@ -7019,7 +7019,7 @@ +@@ -7054,7 +7054,7 @@ fi # This can be used to rebuild libtool when needed @@ -27,7 +27,15 @@ # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' -@@ -9932,8 +9932,8 @@ +@@ -9862,6 +9862,7 @@ + #line 9862 "configure" + #include "confdefs.h" + #include <libintl.h> ++#define _nl_domain_bindings _nl_domain_bindings__ /* configure is retarded. */ + extern int _nl_msg_cat_cntr; + extern int *_nl_domain_bindings; + extern +@@ -9967,8 +9968,8 @@ INTLOBJS="\$(GETTOBJS)" BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes @@ -38,7 +46,7 @@ LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi -@@ -10019,9 +10019,9 @@ +@@ -10054,9 +10055,9 @@ localedir='${prefix}/${DATADIRNAME}/locale' @@ -50,29 +58,12 @@ if test "x${datadir}" = 'x${prefix}/share'; then if test "x${prefix}" = "xNONE"; then -@@ -11633,7 +11633,7 @@ - - if test "$ac_cv_enable_ldap" = yes; then - CFLAGS="$CFLAGS `$GLIB_CONFIG --cflags gthread`" -- LIBS="$LIBS -lldap -llber -lpthread -lresolv `$GLIB_CONFIG --libs gthread`" -+ LIBS="$LIBS -lldap -llber ${PTHREAD_LIBS} `$GLIB_CONFIG --libs gthread`" - fi - else - echo "$as_me:11639: result: no" >&5 -@@ -14194,7 +14194,7 @@ +@@ -14555,7 +14556,7 @@ fi done --ac_config_files="$ac_config_files Makefile sylpheed.spec ac/Makefile libkcc/Makefile src/version.h src/Makefile faq/Makefile faq/de/Makefile faq/en/Makefile faq/es/Makefile faq/fr/Makefile faq/it/Makefile manual/Makefile manual/de/Makefile manual/en/Makefile manual/es/Makefile manual/fr/Makefile manual/ja/Makefile tools/Makefile intl/Makefile po/Makefile.in" -+ac_config_files="$ac_config_files Makefile sylpheed.spec ac/Makefile libkcc/Makefile src/version.h src/Makefile faq/Makefile faq/de/Makefile faq/en/Makefile faq/es/Makefile faq/fr/Makefile faq/it/Makefile manual/Makefile manual/de/Makefile manual/en/Makefile manual/es/Makefile manual/fr/Makefile manual/ja/Makefile tools/Makefile po/Makefile.in" +-ac_config_files="$ac_config_files Makefile sylpheed.spec intl/Makefile ac/Makefile po/Makefile.in src/version.h src/Makefile faq/Makefile faq/de/Makefile faq/en/Makefile faq/es/Makefile faq/fr/Makefile faq/it/Makefile man/Makefile manual/Makefile manual/de/Makefile manual/en/Makefile manual/es/Makefile manual/fr/Makefile manual/ja/Makefile tools/Makefile" ++ac_config_files="$ac_config_files Makefile sylpheed.spec ac/Makefile po/Makefile.in src/version.h src/Makefile faq/Makefile faq/de/Makefile faq/en/Makefile faq/es/Makefile faq/fr/Makefile faq/it/Makefile man/Makefile manual/Makefile manual/de/Makefile manual/en/Makefile manual/es/Makefile manual/fr/Makefile manual/ja/Makefile tools/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure -@@ -14539,7 +14539,6 @@ - "manual/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES manual/fr/Makefile" ;; - "manual/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES manual/ja/Makefile" ;; - "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; -- "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; - "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; - "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; diff --git a/mail/sylpheed-claws/files/patch-src-summary_search.c b/mail/sylpheed-claws/files/patch-src-summary_search.c new file mode 100644 index 000000000000..99f184bdea36 --- /dev/null +++ b/mail/sylpheed-claws/files/patch-src-summary_search.c @@ -0,0 +1,126 @@ +--- src/summary_search.c.orig Wed Jun 12 07:49:20 2002 ++++ src/summary_search.c Tue Jul 23 19:14:41 2002 +@@ -224,10 +224,6 @@ + gboolean backward; + gboolean search_all; + gboolean all_searched = FALSE; +- gboolean from_matched; +- gboolean to_matched; +- gboolean subj_matched; +- gboolean body_matched; + gchar *body_str; + wchar_t *wcs_hs, *fromwcs, *towcs, *subjwcs; + wchar_t *(* WCSFindFunc) (const wchar_t *haystack, +@@ -260,6 +256,7 @@ + towcs = (wchar_t *)GTK_ENTRY(to_entry)->text; + subjwcs = (wchar_t *)GTK_ENTRY(subject_entry)->text; + body_str = gtk_entry_get_text(GTK_ENTRY(body_entry)); ++ wcs_hs = NULL; + + if (search_all) { + gtk_clist_freeze(GTK_CLIST(ctree)); +@@ -285,7 +282,13 @@ + if (*body_str) + main_window_cursor_wait(summaryview->mainwin); + +- for (;;) { ++ for (;; node = backward ? GTK_CTREE_NODE_PREV(node) ++ : GTK_CTREE_NODE_NEXT(node)) { ++ if (wcs_hs) { ++ g_free(wcs_hs); ++ wcs_hs = NULL; ++ } ++ + if (!node) { + gchar *str; + AlertValue val; +@@ -324,58 +327,49 @@ + break; + } + +- from_matched = to_matched = subj_matched = body_matched = FALSE; +- + msginfo = gtk_ctree_node_get_row_data(ctree, node); + +- if (*fromwcs && msginfo->from) { ++ if (*fromwcs) { ++ if (msginfo->from == NULL) ++ continue; + wcs_hs = strdup_mbstowcs(msginfo->from); +- if (wcs_hs && WCSFindFunc(wcs_hs, fromwcs) != NULL) +- from_matched = TRUE; +- g_free(wcs_hs); ++ if (!(wcs_hs && WCSFindFunc(wcs_hs, fromwcs) != NULL)) ++ continue; + } +- if (*towcs && msginfo->to) { ++ if (*towcs) { ++ if (msginfo->to == NULL) ++ continue; + wcs_hs = strdup_mbstowcs(msginfo->to); +- if (wcs_hs && WCSFindFunc(wcs_hs, towcs) != NULL) +- to_matched = TRUE; +- g_free(wcs_hs); ++ if (!(wcs_hs && WCSFindFunc(wcs_hs, towcs) != NULL)) ++ continue; + } +- if (*subjwcs && msginfo->subject) { ++ if (*subjwcs) { ++ if (msginfo->subject == NULL) ++ continue; + wcs_hs = strdup_mbstowcs(msginfo->subject); +- if (wcs_hs && WCSFindFunc(wcs_hs, subjwcs) != NULL) +- subj_matched = TRUE; +- g_free(wcs_hs); ++ if (!(wcs_hs && WCSFindFunc(wcs_hs, subjwcs) != NULL)) ++ continue; + } + if (*body_str) { +- if (procmime_find_string(msginfo, body_str, case_sens)) +- body_matched = TRUE; ++ if (!procmime_find_string(msginfo, body_str, case_sens)) ++ continue; + } + +- if (from_matched || to_matched || subj_matched || body_matched) { +- if (search_all) +- gtk_ctree_select(ctree, node); +- else { +- if (messageview_is_visible +- (summaryview->messageview)) { +- summary_unlock(summaryview); +- summary_select_node +- (summaryview, node, TRUE, TRUE); +- summary_lock(summaryview); +- if (body_matched) { +- messageview_search_string +- (summaryview->messageview, +- body_str, case_sens); +- } +- } else { +- summary_select_node +- (summaryview, node, FALSE, TRUE); +- } +- break; +- } ++ if (search_all) ++ gtk_ctree_select(ctree, node); ++ else { ++ if (messageview_is_visible(summaryview->messageview)) { ++ summary_unlock(summaryview); ++ summary_select_node(summaryview, node, TRUE, TRUE); ++ summary_lock(summaryview); ++ if (*body_str) ++ messageview_search_string( ++ summaryview->messageview, ++ body_str, case_sens); ++ } else ++ summary_select_node(summaryview, node, FALSE, TRUE); ++ break; + } +- +- node = backward ? GTK_CTREE_NODE_PREV(node) +- : GTK_CTREE_NODE_NEXT(node); + } + + if (*body_str) diff --git a/mail/sylpheed-claws/pkg-plist b/mail/sylpheed-claws/pkg-plist index 0272d9975490..ff993c98ae78 100644 --- a/mail/sylpheed-claws/pkg-plist +++ b/mail/sylpheed-claws/pkg-plist @@ -8,7 +8,7 @@ etc/sylprint.rc.example %%PORTDOCS%%share/doc/sylpheed-claws/README.jp %%PORTDOCS%%share/doc/sylpheed-claws/README.sylprint %%PORTDOCS%%share/doc/sylpheed-claws/README.tools -%%PORTDOCS%%share/doc/sylpheed-claws/ReleaseNotes.claws +%%PORTDOCS%%share/doc/sylpheed-claws/RELEASE_NOTES.claws %%PORTDOCS%%share/doc/sylpheed-claws/TODO %%PORTDOCS%%share/doc/sylpheed-claws/TODO.jp %%PORTDOCS%%share/doc/sylpheed-claws/faq/de/sylpheed-faq-1.html |