diff options
Diffstat (limited to 'mail/balsa/files')
-rw-r--r-- | mail/balsa/files/patch-configure | 103 | ||||
-rw-r--r-- | mail/balsa/files/patch-doc_omf.make | 11 | ||||
-rw-r--r-- | mail/balsa/files/patch-libbalsa_imap_imap-handle.c | 10 | ||||
-rw-r--r-- | mail/balsa/files/patch-libbalsa_mailbox_local.c | 33 | ||||
-rw-r--r-- | mail/balsa/files/patch-libbalsa_mailbox_local.h | 11 | ||||
-rw-r--r-- | mail/balsa/files/patch-libbalsa_mailbox_maildir.c | 84 | ||||
-rw-r--r-- | mail/balsa/files/patch-libbalsa_mailbox_mbox.c | 19 | ||||
-rw-r--r-- | mail/balsa/files/patch-libbalsa_mailbox_mh.c | 248 | ||||
-rw-r--r-- | mail/balsa/files/patch-libbalsa_misc.c | 12 | ||||
-rw-r--r-- | mail/balsa/files/patch-src_print-gtk.c | 17 | ||||
-rw-r--r-- | mail/balsa/files/patch-src_threads.h | 12 |
11 files changed, 0 insertions, 560 deletions
diff --git a/mail/balsa/files/patch-configure b/mail/balsa/files/patch-configure deleted file mode 100644 index 19c4b448d..000000000 --- a/mail/balsa/files/patch-configure +++ /dev/null @@ -1,103 +0,0 @@ ---- configure.orig Sun Jul 8 16:14:31 2007 -+++ configure Sun Jul 8 16:18:30 2007 -@@ -6896,7 +6896,7 @@ cat >>confdefs.h <<\_ACEOF - #define HAVE_GTK_PRINT 1 - _ACEOF - -- gnome_print_extras="" -+ #gnome_print_extras="" - else - gnome_print_extras="libgnomeprint-2.2 >= 2.1.4 libgnomeprintui-2.2 >= 2.1.4" - fi -@@ -7525,7 +7525,7 @@ if { as_var=$as_ac_Lib; eval "test \"\${ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - ac_check_lib_save_LIBS=$LIBS --LIBS="-lgtkhtml-$i $LIBS" -+LIBS="-lgtkhtml-$i $HTML_LIBS $LIBS" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -7797,7 +7797,7 @@ if test "${ac_cv_lib_ldap_ldap_search+se - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - ac_check_lib_save_LIBS=$LIBS --LIBS="-lldap -llber -lresolv $LIBS" -+LIBS="-lldap -llber $LIBS" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -7858,7 +7858,7 @@ cat >>confdefs.h <<\_ACEOF - #define ENABLE_LDAP 1 - _ACEOF - -- LIBS="-lldap -llber -lresolv $LIBS" -+ LIBS="-lldap -llber $LIBS" - else - { { echo "$as_me:$LINENO: error: *** You enabled LDAP but ldap library is not found." >&5 - echo "$as_me: error: *** You enabled LDAP but ldap library is not found." >&2;} -@@ -9473,13 +9473,13 @@ _ACEOF - else - - --{ echo "$as_me:$LINENO: checking for new_pspell_manager in -lpspell" >&5 --echo $ECHO_N "checking for new_pspell_manager in -lpspell... $ECHO_C" >&6; } --if test "${ac_cv_lib_pspell_new_pspell_manager+set}" = set; then -+{ echo "$as_me:$LINENO: checking for new_aspell_manager in -laspell" >&5 -+echo $ECHO_N "checking for new_aspell_manager in -laspell... $ECHO_C" >&6; } -+if test "${ac_cv_lib_aspell_new_aspell_manager+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - ac_check_lib_save_LIBS=$LIBS --LIBS="-lpspell -lstdc++ -lpspell-modules $LIBS" -+LIBS="-laspell -lstdc++ $LIBS" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -9493,11 +9493,11 @@ cat >>conftest.$ac_ext <<_ACEOF - #ifdef __cplusplus - extern "C" - #endif --char new_pspell_manager (); -+char new_aspell_manager (); - int - main () - { --return new_pspell_manager (); -+return new_aspell_manager (); - ; - return 0; - } -@@ -9520,26 +9520,26 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then -- ac_cv_lib_pspell_new_pspell_manager=yes -+ ac_cv_lib_aspell_new_aspell_manager=yes - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - -- ac_cv_lib_pspell_new_pspell_manager=no -+ ac_cv_lib_aspell_new_aspell_manager=no - fi - - rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS=$ac_check_lib_save_LIBS - fi --{ echo "$as_me:$LINENO: result: $ac_cv_lib_pspell_new_pspell_manager" >&5 --echo "${ECHO_T}$ac_cv_lib_pspell_new_pspell_manager" >&6; } --if test $ac_cv_lib_pspell_new_pspell_manager = yes; then -+{ echo "$as_me:$LINENO: result: $ac_cv_lib_aspell_new_aspell_manager" >&5 -+echo "${ECHO_T}$ac_cv_lib_aspell_new_aspell_manager" >&6; } -+if test $ac_cv_lib_aspell_new_aspell_manager = yes; then - cat >>confdefs.h <<_ACEOF - #define HAVE_LIBPSPELL 1 - _ACEOF - -- LIBS="-lpspell $LIBS" -+ LIBS="-laspell $LIBS" - - else - diff --git a/mail/balsa/files/patch-doc_omf.make b/mail/balsa/files/patch-doc_omf.make deleted file mode 100644 index dcc67260e..000000000 --- a/mail/balsa/files/patch-doc_omf.make +++ /dev/null @@ -1,11 +0,0 @@ ---- doc/omf.make.orig Mon Sep 16 02:46:07 2002 -+++ doc/omf.make Mon Sep 16 02:46:37 2002 -@@ -27,7 +27,7 @@ - # - - omf_dest_dir=$(datadir)/omf/@PACKAGE@ --scrollkeeper_localstate_dir = $(localstatedir)/scrollkeeper -+scrollkeeper_localstate_dir = /var/db/scrollkeeper - - omf: omf_timestamp - diff --git a/mail/balsa/files/patch-libbalsa_imap_imap-handle.c b/mail/balsa/files/patch-libbalsa_imap_imap-handle.c deleted file mode 100644 index a7206c822..000000000 --- a/mail/balsa/files/patch-libbalsa_imap_imap-handle.c +++ /dev/null @@ -1,10 +0,0 @@ ---- libbalsa/imap/imap-handle.c.orig Sun May 1 17:37:58 2005 -+++ libbalsa/imap/imap-handle.c Tue May 3 01:39:13 2005 -@@ -23,6 +23,7 @@ - - #include <sys/types.h> - #include <sys/socket.h> -+#include <netinet/in.h> - #include <netdb.h> - #include <glib.h> - #include <glib-object.h> diff --git a/mail/balsa/files/patch-libbalsa_mailbox_local.c b/mail/balsa/files/patch-libbalsa_mailbox_local.c deleted file mode 100644 index 90d988400..000000000 --- a/mail/balsa/files/patch-libbalsa_mailbox_local.c +++ /dev/null @@ -1,33 +0,0 @@ ---- libbalsa/mailbox_local.c.orig Thu Dec 29 01:47:25 2005 -+++ libbalsa/mailbox_local.c Thu Dec 29 01:48:23 2005 -@@ -375,7 +375,7 @@ typedef struct { - #else /* GLIB_CHECK_VERSION(2, 8, 0) */ - int fd; - #endif /* GLIB_CHECK_VERSION(2, 8, 0) */ -- guint (*fileno)(LibBalsaMailboxLocal * local, guint msgno); -+ guint (*sti_fileno)(LibBalsaMailboxLocal * local, guint msgno); - LibBalsaMailboxLocal *local; - } LibBalsaMailboxLocalSaveTreeInfo; - -@@ -399,9 +399,9 @@ lbm_local_save_tree_item(guint msgno, gu - if (msgno == 0) { - info.msgno = msgno; - info.value.total = a; -- } else if (save_info->fileno) { -- info.msgno = save_info->fileno(save_info->local, msgno); -- info.value.parent = save_info->fileno(save_info->local, a); -+ } else if (save_info->sti_fileno) { -+ info.msgno = save_info->sti_fileno(save_info->local, msgno); -+ info.value.parent = save_info->sti_fileno(save_info->local, a); - } else { - info.msgno = msgno; - info.value.parent = a; -@@ -466,7 +466,7 @@ lbm_local_save_tree(LibBalsaMailboxLocal - return; - } - -- save_info.fileno = LIBBALSA_MAILBOX_LOCAL_GET_CLASS(local)->fileno; -+ save_info.sti_fileno = LIBBALSA_MAILBOX_LOCAL_GET_CLASS(local)->sti_fileno; - save_info.local = local; - #if GLIB_CHECK_VERSION(2, 8, 0) - save_info.array = diff --git a/mail/balsa/files/patch-libbalsa_mailbox_local.h b/mail/balsa/files/patch-libbalsa_mailbox_local.h deleted file mode 100644 index 7006f7f42..000000000 --- a/mail/balsa/files/patch-libbalsa_mailbox_local.h +++ /dev/null @@ -1,11 +0,0 @@ ---- libbalsa/mailbox_local.h.orig Sun May 6 13:57:53 2007 -+++ libbalsa/mailbox_local.h Thu May 31 01:04:10 2007 -@@ -79,7 +79,7 @@ struct _LibBalsaMailboxLocalClass { - gint (*check_files)(const gchar * path, gboolean create); - void (*set_path)(LibBalsaMailboxLocal * local, const gchar * path); - void (*remove_files)(LibBalsaMailboxLocal * local); -- guint (*fileno)(LibBalsaMailboxLocal * local, guint msgno); -+ guint (*sti_fileno)(LibBalsaMailboxLocal * local, guint msgno); - LibBalsaMailboxLocalMessageInfo *(*get_info)(LibBalsaMailboxLocal * local, - guint msgno); - }; diff --git a/mail/balsa/files/patch-libbalsa_mailbox_maildir.c b/mail/balsa/files/patch-libbalsa_mailbox_maildir.c deleted file mode 100644 index 5d2e19a24..000000000 --- a/mail/balsa/files/patch-libbalsa_mailbox_maildir.c +++ /dev/null @@ -1,84 +0,0 @@ ---- libbalsa/mailbox_maildir.c.orig Sun May 6 13:57:53 2007 -+++ libbalsa/mailbox_maildir.c Thu May 31 01:06:37 2007 -@@ -25,6 +25,8 @@ - #define _XOPEN_SOURCE 500 - #define _XOPEN_SOURCE_EXTENDED 1 - -+#include <sys/types.h> -+#include <sys/stat.h> - #include <unistd.h> - #include <fcntl.h> - #include <errno.h> -@@ -49,7 +51,7 @@ struct message_info { - /* The message's order when parsing; needed for saving the message - * tree in a form that will match the msgnos when the mailbox is - * reopened. */ -- guint fileno; -+ guint mi_fileno; - }; - #define REAL_FLAGS(flags) ((flags) & LIBBALSA_MESSAGE_FLAGS_REAL) - #define FLAGS_REALLY_DIFFER(orig_flags, flags) \ -@@ -174,7 +176,7 @@ libbalsa_mailbox_maildir_class_init(LibB - libbalsa_mailbox_local_class->check_files = lbm_maildir_check_files; - libbalsa_mailbox_local_class->set_path = lbm_maildir_set_path; - libbalsa_mailbox_local_class->remove_files = lbm_maildir_remove_files; -- libbalsa_mailbox_local_class->fileno = lbm_maildir_fileno; -+ libbalsa_mailbox_local_class->sti_fileno = lbm_maildir_fileno; - libbalsa_mailbox_local_class->get_info = lbm_maildir_get_info; - } - -@@ -389,7 +391,7 @@ static LibBalsaMessageFlag parse_filenam - } - - static void lbm_maildir_parse(LibBalsaMailboxMaildir * mdir, -- const gchar *subdir, guint * fileno) -+ const gchar *subdir, guint * md_fileno) - { - gchar *path; - GDir *dir; -@@ -442,12 +444,12 @@ static void lbm_maildir_parse(LibBalsaMa - msg_info->key=key; - msg_info->filename=g_strdup(filename); - msg_info->local_info.flags = msg_info->orig_flags = flags; -- msg_info->fileno = 0; -+ msg_info->mi_fileno = 0; - } - msg_info->subdir = subdir; -- if (!msg_info->fileno) -+ if (!msg_info->mi_fileno) - /* First time we saw this key. */ -- msg_info->fileno = ++*fileno; -+ msg_info->mi_fileno = ++*md_fileno; - } - g_dir_close(dir); - } -@@ -455,16 +457,16 @@ static void lbm_maildir_parse(LibBalsaMa - static void - lbm_maildir_parse_subdirs(LibBalsaMailboxMaildir * mdir) - { -- guint msgno, fileno = 0; -+ guint msgno, md_fileno = 0; - - for (msgno = mdir->msgno_2_msg_info->len; msgno > 0; --msgno) { - struct message_info *msg_info = - message_info_from_msgno(mdir, msgno); -- msg_info->fileno = 0; -+ msg_info->mi_fileno = 0; - } - -- lbm_maildir_parse(mdir, "cur", &fileno); -- lbm_maildir_parse(mdir, "new", &fileno); -+ lbm_maildir_parse(mdir, "cur", &md_fileno); -+ lbm_maildir_parse(mdir, "new", &md_fileno); - } - - static gboolean -@@ -864,7 +866,7 @@ lbm_maildir_fileno(LibBalsaMailboxLocal - msg_info = - message_info_from_msgno((LibBalsaMailboxMaildir *) local, msgno); - -- return msg_info->fileno; -+ return msg_info->mi_fileno; - } - - static LibBalsaMailboxLocalMessageInfo * diff --git a/mail/balsa/files/patch-libbalsa_mailbox_mbox.c b/mail/balsa/files/patch-libbalsa_mailbox_mbox.c deleted file mode 100644 index 2511938ff..000000000 --- a/mail/balsa/files/patch-libbalsa_mailbox_mbox.c +++ /dev/null @@ -1,19 +0,0 @@ ---- libbalsa/mailbox_mbox.c.orig Tue Dec 27 14:54:34 2005 -+++ libbalsa/mailbox_mbox.c Thu Dec 29 01:44:01 2005 -@@ -26,6 +26,7 @@ - - #include <gmime/gmime-stream-fs.h> - -+#include <sys/stat.h> - #include <stdlib.h> - #include <unistd.h> - #include <fcntl.h> -@@ -214,7 +215,7 @@ lbm_mbox_check_files(const gchar * path, - } else if (create) { - gint fd; - -- if ((fd = creat(path, S_IRUSR | S_IWUSR)) == -1) { -+ if ((fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR)) == -1) { - g_warning("An error:\n%s\n occurred while trying to " - "create the mailbox \"%s\"\n", - strerror(errno), path); diff --git a/mail/balsa/files/patch-libbalsa_mailbox_mh.c b/mail/balsa/files/patch-libbalsa_mailbox_mh.c deleted file mode 100644 index 36cd3b677..000000000 --- a/mail/balsa/files/patch-libbalsa_mailbox_mh.c +++ /dev/null @@ -1,248 +0,0 @@ ---- libbalsa/mailbox_mh.c.orig Wed May 16 13:49:05 2007 -+++ libbalsa/mailbox_mh.c Thu May 31 01:09:09 2007 -@@ -27,6 +27,8 @@ - /* to compile this on BSD/Darwin */ - #undef _POSIX_SOURCE - -+#include <sys/types.h> -+#include <sys/stat.h> - #include <unistd.h> - #include <fcntl.h> - #include <errno.h> -@@ -45,7 +47,7 @@ - struct message_info { - LibBalsaMailboxLocalMessageInfo local_info; - LibBalsaMessageFlag orig_flags; /* Has only real flags */ -- gint fileno; -+ gint mi_fileno; - }; - - #define REAL_FLAGS(flags) (flags & LIBBALSA_MESSAGE_FLAGS_REAL) -@@ -260,7 +262,7 @@ libbalsa_mailbox_mh_load_config(LibBalsa - - #define MH_BASENAME(msg_info) \ - g_strdup_printf((msg_info->orig_flags & LIBBALSA_MESSAGE_FLAG_DELETED) ? \ -- ",%d" : "%d", msg_info->fileno) -+ ",%d" : "%d", msg_info->mi_fileno) - - static GMimeStream * - libbalsa_mailbox_mh_get_message_stream(LibBalsaMailbox * mailbox, -@@ -335,7 +337,7 @@ static gint - lbm_mh_compare_fileno(const struct message_info ** a, - const struct message_info ** b) - { -- return (*a)->fileno - (*b)->fileno; -+ return (*a)->mi_fileno - (*b)->mi_fileno; - } - - static void -@@ -352,7 +354,7 @@ lbm_mh_parse_mailbox(LibBalsaMailboxMh * - - while ((filename = g_dir_read_name(dir)) != NULL) { - LibBalsaMessageFlag delete_flag = 0; -- guint fileno; -+ guint mh_fileno; - - if (filename[0] == ',') { - filename++; -@@ -361,22 +363,22 @@ lbm_mh_parse_mailbox(LibBalsaMailboxMh * - if (lbm_mh_check_filename(filename) == FALSE) - continue; - -- if (sscanf(filename, "%d", &fileno) != 1) -+ if (sscanf(filename, "%d", &mh_fileno) != 1) - break; /* FIXME report error? */ -- if (fileno > mh->last_fileno) -- mh->last_fileno = fileno; -+ if (mh_fileno > mh->last_fileno) -+ mh->last_fileno = mh_fileno; - - if (add_msg_info && mh->messages_info) { - struct message_info *msg_info = - g_hash_table_lookup(mh->messages_info, -- GINT_TO_POINTER(fileno)); -+ GINT_TO_POINTER(mh_fileno)); - if (!msg_info) { - msg_info = g_new0(struct message_info, 1); - msg_info->local_info.flags = INVALID_FLAG; - g_hash_table_insert(mh->messages_info, -- GINT_TO_POINTER(fileno), msg_info); -+ GINT_TO_POINTER(mh_fileno), msg_info); - g_ptr_array_add(mh->msgno_2_msg_info, msg_info); -- msg_info->fileno = fileno; -+ msg_info->mi_fileno = mh_fileno; - } - msg_info->orig_flags = delete_flag; - } -@@ -394,17 +396,17 @@ static const gchar *LibBalsaMailboxMhRep - static const gchar *LibBalsaMailboxMhRecent = "recent:"; - - static void --lbm_mh_set_flag(LibBalsaMailboxMh * mh, guint fileno, LibBalsaMessageFlag flag) -+lbm_mh_set_flag(LibBalsaMailboxMh * mh, guint mh_fileno, LibBalsaMessageFlag flag) - { - struct message_info *msg_info; - -- if (!fileno) -+ if (!mh_fileno) - return; - -- msg_info = g_hash_table_lookup(mh->messages_info, GINT_TO_POINTER(fileno)); -+ msg_info = g_hash_table_lookup(mh->messages_info, GINT_TO_POINTER(mh_fileno)); - - if (!msg_info) { -- g_print("MH sequence info for nonexistent message %d\n", fileno); -+ g_print("MH sequence info for nonexistent message %d\n", mh_fileno); - return; - } - -@@ -433,7 +435,7 @@ lbm_mh_handle_seq_line(LibBalsaMailboxMh - - for (seq = sequences; *seq; seq++) { - guint end = 0; -- guint fileno; -+ guint mh_fileno; - - if (!**seq) - continue; -@@ -444,11 +446,11 @@ lbm_mh_handle_seq_line(LibBalsaMailboxMh - if (sscanf(line, "%d", &end) != 1) - break; /* FIXME report error? */ - } -- if (sscanf(*seq, "%d", &fileno) != 1) -+ if (sscanf(*seq, "%d", &mh_fileno) != 1) - break; /* FIXME report error? */ - do -- lbm_mh_set_flag(mh, fileno, flag); -- while (++fileno <= end); -+ lbm_mh_set_flag(mh, mh_fileno, flag); -+ while (++mh_fileno <= end); - } - - g_strfreev(sequences); -@@ -580,7 +582,7 @@ lbm_mh_check(LibBalsaMailboxMh * mh, con - sequences = g_strsplit(p, " ", 0); - for (seq = sequences; *seq; seq++) { - guint end = 0; -- guint fileno; -+ guint mh_fileno; - - if (!**seq) - continue; -@@ -591,15 +593,15 @@ lbm_mh_check(LibBalsaMailboxMh * mh, con - if (sscanf(p, "%d", &end) != 1) - break; /* FIXME report error? */ - } -- if (sscanf(*seq, "%d", &fileno) != 1) -+ if (sscanf(*seq, "%d", &mh_fileno) != 1) - break; /* FIXME report error? */ - do { -- p = g_strdup_printf("%s/%d", path, fileno); -+ p = g_strdup_printf("%s/%d", path, mh_fileno); - if (access(p, F_OK) == 0) - retval = TRUE; - g_free(p); - /* One undeleted unread message is enough. */ -- } while (!retval && ++fileno <= end); -+ } while (!retval && ++mh_fileno <= end); - } - g_strfreev(sequences); - break; -@@ -686,7 +688,7 @@ libbalsa_mailbox_mh_check(LibBalsaMailbo - else { - g_ptr_array_remove(mh->msgno_2_msg_info, msg_info); - g_hash_table_remove(mh->messages_info, -- GINT_TO_POINTER(msg_info->fileno)); -+ GINT_TO_POINTER(msg_info->mi_fileno)); - libbalsa_mailbox_local_msgno_removed(mailbox, msgno); - if (renumber > msgno) - /* First message that needs renumbering. */ -@@ -763,11 +765,11 @@ lbm_mh_flag_line(struct message_info *ms - if (!(msg_info->local_info.flags & flag)) - return; - -- if (li->last < msg_info->fileno - 1) { -+ if (li->last < msg_info->mi_fileno - 1) { - lbm_mh_print_line(li); -- li->first = msg_info->fileno; -+ li->first = msg_info->mi_fileno; - } -- li->last = msg_info->fileno; -+ li->last = msg_info->mi_fileno; - } - - static gboolean -@@ -849,7 +851,7 @@ libbalsa_mailbox_mh_sync(LibBalsaMailbox - /* free old information */ - g_ptr_array_remove(mh->msgno_2_msg_info, msg_info); - g_hash_table_remove(mh->messages_info, -- GINT_TO_POINTER(msg_info->fileno)); -+ GINT_TO_POINTER(msg_info->mi_fileno)); - libbalsa_mailbox_local_msgno_removed(mailbox, msgno); - } else { - lbm_mh_flag_line(msg_info, LIBBALSA_MESSAGE_FLAG_NEW, &unseen); -@@ -1038,7 +1040,7 @@ libbalsa_mailbox_mh_fetch_message_struct - * we'll just add new lines and let the next sync merge them with any - * existing lines. */ - static void --lbm_mh_update_sequences(LibBalsaMailboxMh * mh, gint fileno, -+lbm_mh_update_sequences(LibBalsaMailboxMh * mh, gint mh_fileno, - LibBalsaMessageFlag flags) - { - FILE *fp; -@@ -1049,13 +1051,13 @@ lbm_mh_update_sequences(LibBalsaMailboxM - return; - - if (flags & LIBBALSA_MESSAGE_FLAG_NEW) -- fprintf(fp, "unseen: %d\n", fileno); -+ fprintf(fp, "unseen: %d\n", mh_fileno); - if (flags & LIBBALSA_MESSAGE_FLAG_FLAGGED) -- fprintf(fp, "flagged: %d\n", fileno); -+ fprintf(fp, "flagged: %d\n", mh_fileno); - if (flags & LIBBALSA_MESSAGE_FLAG_REPLIED) -- fprintf(fp, "replied: %d\n", fileno); -+ fprintf(fp, "replied: %d\n", mh_fileno); - if (flags & LIBBALSA_MESSAGE_FLAG_RECENT) -- fprintf(fp, "recent: %d\n", fileno); -+ fprintf(fp, "recent: %d\n", mh_fileno); - fclose(fp); - } - -@@ -1072,7 +1074,7 @@ libbalsa_mailbox_mh_add_message(LibBalsa - int fd; - GMimeStream *out_stream; - GMimeFilter *crlffilter; -- int fileno; -+ int mh_fileno; - int retries; - GMimeStream *in_stream; - -@@ -1115,14 +1117,14 @@ libbalsa_mailbox_mh_add_message(LibBalsa - libbalsa_mime_stream_shared_unlock(stream); - g_object_unref(in_stream); - -- fileno = mh->last_fileno; -+ mh_fileno = mh->last_fileno; - retries = 10; - do { - /* rename tempfile to message-number-name */ - char *new_filename; - gint rename_status; - -- new_filename = g_strdup_printf("%s/%d", path, ++fileno); -+ new_filename = g_strdup_printf("%s/%d", path, ++mh_fileno); - rename_status = libbalsa_safe_rename(tmp, new_filename); - g_free(new_filename); - if (rename_status != -1) -@@ -1145,9 +1147,9 @@ libbalsa_mailbox_mh_add_message(LibBalsa - "Too high activity?"); - return FALSE; - } -- mh->last_fileno = fileno; -+ mh->last_fileno = mh_fileno; - -- lbm_mh_update_sequences(mh, fileno, -+ lbm_mh_update_sequences(mh, mh_fileno, - flags | LIBBALSA_MESSAGE_FLAG_RECENT); - - return TRUE; diff --git a/mail/balsa/files/patch-libbalsa_misc.c b/mail/balsa/files/patch-libbalsa_misc.c deleted file mode 100644 index 22af56e0e..000000000 --- a/mail/balsa/files/patch-libbalsa_misc.c +++ /dev/null @@ -1,12 +0,0 @@ ---- libbalsa/misc.c.orig Fri Feb 18 18:05:54 2005 -+++ libbalsa/misc.c Sat Mar 19 14:44:04 2005 -@@ -23,7 +23,9 @@ - #include "config.h" - - #define _SVID_SOURCE 1 -+#ifndef __FreeBSD__ - #define _XOPEN_SOURCE 500 -+#endif - #include <ctype.h> - #include <dirent.h> - #include <errno.h> diff --git a/mail/balsa/files/patch-src_print-gtk.c b/mail/balsa/files/patch-src_print-gtk.c deleted file mode 100644 index 2e2d0ae70..000000000 --- a/mail/balsa/files/patch-src_print-gtk.c +++ /dev/null @@ -1,17 +0,0 @@ ---- src/print-gtk.c.orig Thu May 3 22:59:46 2007 -+++ src/print-gtk.c Thu May 3 23:01:30 2007 -@@ -378,12 +378,14 @@ get_default_user_units(void) - gchar *e = _("default:mm"); - - #ifdef HAVE_LANGINFO -+#ifdef _NL_MEASUREMENT_MEASUREMENT - gchar *imperial = NULL; - - imperial = nl_langinfo(_NL_MEASUREMENT_MEASUREMENT); - if (imperial && imperial[0] == 2 ) - return GTK_UNIT_INCH; /* imperial */ - if (imperial && imperial[0] == 1 ) -+#endif - return GTK_UNIT_MM; /* metric */ - #endif - diff --git a/mail/balsa/files/patch-src_threads.h b/mail/balsa/files/patch-src_threads.h deleted file mode 100644 index 62c60b878..000000000 --- a/mail/balsa/files/patch-src_threads.h +++ /dev/null @@ -1,12 +0,0 @@ ---- src/threads.h.orig Tue Dec 31 14:06:47 2002 -+++ src/threads.h Tue Dec 31 14:07:32 2002 -@@ -21,6 +21,9 @@ - - #ifndef __THREADS_H__ - #define __THREADS_H__ -+ -+#include <pthread.h> -+ - /* FIXME: mailbox_lock is really an internal libbalsa mutex. */ - extern pthread_mutex_t mailbox_lock; - |