mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-04-04 21:13:31 +02:00
initial import
This commit is contained in:
3
mail-client/sylpheed/files/digest-sylpheed-1.0.6
Normal file
3
mail-client/sylpheed/files/digest-sylpheed-1.0.6
Normal file
@@ -0,0 +1,3 @@
|
||||
MD5 8bc978f173dc2c5a298b6bf59ede3891 sylpheed-1.0.6.tar.gz 3532006
|
||||
RMD160 be2dad0ea9ff2fafdf16efae4d22a903c2665f68 sylpheed-1.0.6.tar.gz 3532006
|
||||
SHA256 a35c0f49f7c595ea98b94fb7e1b1ca6f64e46e485e8b4eeb50fb9c10c050aef8 sylpheed-1.0.6.tar.gz 3532006
|
||||
3
mail-client/sylpheed/files/digest-sylpheed-2.4.2
Normal file
3
mail-client/sylpheed/files/digest-sylpheed-2.4.2
Normal file
@@ -0,0 +1,3 @@
|
||||
MD5 ac0aeeebc320f445beb36ff443ea903a sylpheed-2.4.2.tar.bz2 2726890
|
||||
RMD160 12f740c12b6811629ff90761a2820de0f55d907e sylpheed-2.4.2.tar.bz2 2726890
|
||||
SHA256 056318815de84ac38c0ff8efaae2d964d0750988a19982d69162e477019eba19 sylpheed-2.4.2.tar.bz2 2726890
|
||||
14
mail-client/sylpheed/files/sylpheed-1.0-namespace.diff
Normal file
14
mail-client/sylpheed/files/sylpheed-1.0-namespace.diff
Normal file
@@ -0,0 +1,14 @@
|
||||
--- sylpheed-1.0.6/src/imap.c.orig 2005-12-31 12:59:37.000000000 +0100
|
||||
+++ sylpheed-1.0.6/src/imap.c 2005-12-31 13:01:27.000000000 +0100
|
||||
@@ -2327,6 +2327,11 @@
|
||||
folder->ns_others != NULL ||
|
||||
folder->ns_shared != NULL)
|
||||
return;
|
||||
+
|
||||
+ if (!imap_has_capability(session, "NAMESPACE")) {
|
||||
+ imap_get_namespace_by_list(session, folder);
|
||||
+ return;
|
||||
+ }
|
||||
|
||||
if (imap_cmd_namespace(session, &ns_str) != IMAP_SUCCESS) {
|
||||
log_warning(_("can't get namespace\n"));
|
||||
39
mail-client/sylpheed/files/sylpheed-1.0-procmime.diff
Normal file
39
mail-client/sylpheed/files/sylpheed-1.0-procmime.diff
Normal file
@@ -0,0 +1,39 @@
|
||||
--- sylpheed-1.0.6/src/procmime.c.orig 2005-12-31 13:05:55.000000000 +0100
|
||||
+++ sylpheed-1.0.6/src/procmime.c 2005-12-31 13:06:54.000000000 +0100
|
||||
@@ -962,6 +962,9 @@
|
||||
g_free(dir);
|
||||
mime_type_list = g_list_concat(mime_type_list, list);
|
||||
|
||||
+ list = procmime_get_mime_type_list("/usr/share/mime/globs");
|
||||
+ mime_type_list = g_list_concat(mime_type_list, list);
|
||||
+
|
||||
if (!mime_type_list) {
|
||||
g_warning("mime.types not found\n");
|
||||
return NULL;
|
||||
@@ -1014,7 +1017,7 @@
|
||||
g_strstrip(buf);
|
||||
|
||||
p = buf;
|
||||
- while (*p && !isspace(*p)) p++;
|
||||
+ while (*p && !isspace(*p) && (*p != ':')) p++;
|
||||
if (*p) {
|
||||
*p = '\0';
|
||||
p++;
|
||||
@@ -1027,7 +1030,7 @@
|
||||
mime_type->type = g_strdup(buf);
|
||||
mime_type->sub_type = g_strdup(delim + 1);
|
||||
|
||||
- while (*p && isspace(*p)) p++;
|
||||
+ while (*p && (isspace(*p) || (*p == '*') || (*p == '.'))) p++;
|
||||
if (*p)
|
||||
mime_type->extension = g_strdup(p);
|
||||
else
|
||||
@@ -1039,7 +1042,7 @@
|
||||
fclose(fp);
|
||||
|
||||
if (!list)
|
||||
- g_warning("Can't read mime.types\n");
|
||||
+ g_warning("Can't read %s\n", file);
|
||||
|
||||
return list;
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
diff -urN sylpheed-2.1.3.orig/libsylph/Makefile.am sylpheed-2.1.3/libsylph/Makefile.am
|
||||
--- sylpheed-2.1.3.orig/libsylph/Makefile.am 2005-09-08 16:24:49.000000000 +0900
|
||||
+++ sylpheed-2.1.3/libsylph/Makefile.am 2005-10-02 20:56:56.940000000 +0900
|
||||
@@ -1,7 +1,8 @@
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-DG_LOG_DOMAIN=\"LibSylph\" \
|
||||
- -DSYSCONFDIR=\""$(sysconfdir)"\"
|
||||
+ -DSYSCONFDIR=\""$(sysconfdir)"\" \
|
||||
+ -DDATADIR=\""$(datadir)"\"
|
||||
|
||||
INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir) -I$(includedir)
|
||||
|
||||
diff -urN sylpheed-2.1.3.orig/libsylph/procmime.c sylpheed-2.1.3/libsylph/procmime.c
|
||||
--- sylpheed-2.1.3.orig/libsylph/procmime.c 2005-09-22 20:18:02.000000000 +0900
|
||||
+++ sylpheed-2.1.3/libsylph/procmime.c 2005-10-02 20:57:55.920000000 +0900
|
||||
@@ -1051,6 +1051,9 @@
|
||||
g_free(dir);
|
||||
mime_type_list = g_list_concat(mime_type_list, list);
|
||||
|
||||
+ list = procmime_get_mime_type_list(DATADIR "/mime/globs");
|
||||
+ mime_type_list = g_list_concat(mime_type_list, list);
|
||||
+
|
||||
if (!mime_type_list) {
|
||||
g_warning("mime.types not found\n");
|
||||
return NULL;
|
||||
@@ -1103,7 +1106,7 @@
|
||||
g_strstrip(buf);
|
||||
|
||||
p = buf;
|
||||
- while (*p && !g_ascii_isspace(*p)) p++;
|
||||
+ while (*p && !g_ascii_isspace(*p) && *p != ':') p++;
|
||||
if (*p) {
|
||||
*p = '\0';
|
||||
p++;
|
||||
@@ -1116,7 +1119,7 @@
|
||||
mime_type->type = g_strdup(buf);
|
||||
mime_type->sub_type = g_strdup(delim + 1);
|
||||
|
||||
- while (*p && g_ascii_isspace(*p)) p++;
|
||||
+ while (*p && (g_ascii_isspace(*p) || *p == '*' || *p == '.')) p++;
|
||||
if (*p)
|
||||
mime_type->extension = g_strdup(p);
|
||||
else
|
||||
@@ -1128,7 +1131,7 @@
|
||||
fclose(fp);
|
||||
|
||||
if (!list)
|
||||
- g_warning("Can't read mime.types\n");
|
||||
+ g_warning("Can't read %s\n", file);
|
||||
|
||||
return list;
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
diff -ur sylpheed-2.2.0.orig/src/compose.c sylpheed-2.2.0/src/compose.c
|
||||
--- sylpheed-2.2.0.orig/src/compose.c 2006-02-07 11:53:05.000000000 +0900
|
||||
+++ sylpheed-2.2.0/src/compose.c 2006-02-15 23:40:01.000000000 +0900
|
||||
@@ -64,7 +64,7 @@
|
||||
#if USE_GTKSPELL
|
||||
# include <gtk/gtkradiomenuitem.h>
|
||||
# include <gtkspell/gtkspell.h>
|
||||
-# include <aspell.h>
|
||||
+# include <enchant/enchant.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -459,6 +459,9 @@
|
||||
GtkWidget *widget);
|
||||
static void compose_set_spell_lang_cb (GtkWidget *widget,
|
||||
gpointer data);
|
||||
+static void compose_list_dicts_cb (const char *lang_tag,
|
||||
+ const char *provider_name, const char *provider_desc,
|
||||
+ const char *provider_file, void *user_data);
|
||||
#endif
|
||||
|
||||
static void compose_attach_drag_received_cb (GtkWidget *widget,
|
||||
@@ -4874,33 +4877,34 @@
|
||||
}
|
||||
|
||||
#if USE_GTKSPELL
|
||||
+static void compose_list_dicts_cb(const char *lang_tag,
|
||||
+ const char *provider_name, const char *provider_desc,
|
||||
+ const char *provider_file, void *user_data)
|
||||
+{
|
||||
+ GQueue *queue = (GQueue *)user_data;
|
||||
+
|
||||
+ if (g_queue_index(queue, (gconstpointer)lang_tag) == -1) {
|
||||
+ g_queue_push_tail(queue, g_strdup(lang_tag));
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
static void compose_set_spell_lang_menu(Compose *compose)
|
||||
{
|
||||
- AspellConfig *config;
|
||||
- AspellDictInfoList *dlist;
|
||||
- AspellDictInfoEnumeration *dels;
|
||||
- const AspellDictInfo *entry;
|
||||
+ EnchantBroker *broker;
|
||||
+ GQueue *langs;
|
||||
GSList *dict_list = NULL, *menu_list = NULL, *cur;
|
||||
GtkWidget *menu;
|
||||
gboolean lang_set = FALSE;
|
||||
|
||||
- config = new_aspell_config();
|
||||
- dlist = get_aspell_dict_info_list(config);
|
||||
- delete_aspell_config(config);
|
||||
-
|
||||
- dels = aspell_dict_info_list_elements(dlist);
|
||||
- while ((entry = aspell_dict_info_enumeration_next(dels)) != 0) {
|
||||
- dict_list = g_slist_append(dict_list, (gchar *)entry->name);
|
||||
- if (compose->spell_lang != NULL &&
|
||||
- g_ascii_strcasecmp(compose->spell_lang, entry->name) == 0)
|
||||
- lang_set = TRUE;
|
||||
- }
|
||||
- delete_aspell_dict_info_enumeration(dels);
|
||||
+ broker = enchant_broker_init();
|
||||
+ langs = g_queue_new();
|
||||
+ enchant_broker_list_dicts(broker, compose_list_dicts_cb, langs);
|
||||
+ enchant_broker_free(broker);
|
||||
|
||||
menu = gtk_menu_new();
|
||||
|
||||
- for (cur = dict_list; cur != NULL; cur = cur->next) {
|
||||
- gchar *dict = (gchar *)cur->data;
|
||||
+ while (g_queue_get_length(langs) > 0) {
|
||||
+ gchar *dict = g_queue_pop_head(langs);
|
||||
GtkWidget *item;
|
||||
|
||||
if (dict == NULL) continue;
|
||||
@@ -4910,13 +4914,16 @@
|
||||
(GTK_RADIO_MENU_ITEM(item));
|
||||
if (compose->spell_lang != NULL &&
|
||||
g_ascii_strcasecmp(compose->spell_lang, dict) == 0)
|
||||
+ {
|
||||
gtk_check_menu_item_set_active
|
||||
(GTK_CHECK_MENU_ITEM(item), TRUE);
|
||||
+ lang_set = TRUE;
|
||||
+ }
|
||||
gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
|
||||
g_signal_connect(G_OBJECT(item), "activate",
|
||||
G_CALLBACK(compose_set_spell_lang_cb),
|
||||
compose);
|
||||
- g_object_set_data(G_OBJECT(item), "spell-lang", dict);
|
||||
+ g_object_set_data_full(G_OBJECT(item), "spell-lang", dict, g_free);
|
||||
gtk_widget_show(item);
|
||||
|
||||
if (!lang_set && g_ascii_strcasecmp("en", dict) == 0)
|
||||
@@ -4924,6 +4931,8 @@
|
||||
(GTK_CHECK_MENU_ITEM(item), TRUE);
|
||||
}
|
||||
|
||||
+ g_queue_free(langs);
|
||||
+
|
||||
gtk_widget_show(menu);
|
||||
gtk_menu_item_set_submenu(GTK_MENU_ITEM(compose->spell_menu), menu);
|
||||
}
|
||||
12
mail-client/sylpheed/files/sylpheed-2.4-firefox.diff
Normal file
12
mail-client/sylpheed/files/sylpheed-2.4-firefox.diff
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -Naur sylpheed-2.4.1.orig/libsylph/defs.h sylpheed-2.4.1/libsylph/defs.h
|
||||
--- sylpheed-2.4.1.orig/libsylph/defs.h 2006-09-22 11:58:56.000000000 +0900
|
||||
+++ sylpheed-2.4.1/libsylph/defs.h 2007-05-07 17:25:18.000000000 +0900
|
||||
@@ -92,7 +92,7 @@
|
||||
/* #define DEFAULT_INC_PATH "/usr/bin/imget" */
|
||||
/* #define DEFAULT_INC_PROGRAM "imget" */
|
||||
#define DEFAULT_SENDMAIL_CMD "/usr/sbin/sendmail -t -i"
|
||||
-#define DEFAULT_BROWSER_CMD "mozilla-firefox -remote 'openURL(%s,new-window)'"
|
||||
+#define DEFAULT_BROWSER_CMD "firefox -remote 'openURL(%s,new-window)'"
|
||||
|
||||
#ifdef _PATH_MAILDIR
|
||||
# define DEFAULT_SPOOL_PATH _PATH_MAILDIR
|
||||
Reference in New Issue
Block a user