More sync with sylpheed 0.5.0pre4
authorPaul Mangan <paul@claws-mail.org>
Tue, 3 Jul 2001 09:00:51 +0000 (09:00 +0000)
committerPaul Mangan <paul@claws-mail.org>
Tue, 3 Jul 2001 09:00:51 +0000 (09:00 +0000)
ChangeLog
ChangeLog.claws
ChangeLog.jp
src/alertpanel.c
src/codeconv.c
src/prefs_common.c
src/rfc2015.c

index bd79b6e9c4224d7443c173c2e670818978bf67ef..b39350bc7a76df3506e426e1b87ba0d53f28422e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-07-03
+
+       * src/alertpanel.c: alertpanel_create(): fixed truncated message.
+       * src/rfc2015.c: rfc2015_decrypt_message(): fixed the case problem
+         of content-type (thanks to René Rebe for the patch).
+       * src/codeconv.c: code_get_code_conv_func(): fixed the ISO-8859-1
+         detection.
+       * src/prefs_common.c: prefs_send_create(): made some more character
+         sets specifiable when not using libjconv.
+
 2001-07-02
 
        * updated gettext to 0.10.38.
 2001-07-02
 
        * updated gettext to 0.10.38.
index b8403dbd236358195eba48576a960b072d90f652..df5a6f37f339ad3062a2eb861022542e5dda7d1e 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-03 [paul]
+
+       more sync with sylpheed 0.5.0pre4
+
 2001-07-02 [match]
 
        * included address book patch for VCard, JPilot, LDAP
 2001-07-02 [match]
 
        * included address book patch for VCard, JPilot, LDAP
index 074e47e7252b4f104d415a82ae577e015841a8d7..8555f72a17dc7d7670bf9255d37753425a56c751 100644 (file)
@@ -1,3 +1,13 @@
+2001-07-03
+
+       * src/alertpanel.c: alertpanel_create(): ¥á¥Ã¥»¡¼¥¸¤¬ÅÓÀÚ¤ì¤ë¤Î¤ò½¤Àµ¡£
+       * src/rfc2015.c: rfc2015_decrypt_message(): content-type ¤ÎÂ羮ʸ»ú
+         ÌäÂê¤ò½¤Àµ(¤³¤Î patch ¤Ë´Ø¤·¤Æ Rene Rebe ¤µ¤ó thanks)¡£
+       * src/codeconv.c: code_get_code_conv_func(): ISO-8859-1 ¤Î¸¡½ÐÉô¤ò
+         ½¤Àµ¡£
+       * src/prefs_common.c: prefs_send_create(): libjconv Ì¤»ÈÍÑ»þ¤Ë
+         ÄɲäǤ¤¤¯¤Ä¤«¤Îʸ»ú¥³¡¼¥É¥»¥Ã¥È¤ò»ØÄê¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¡£
+
 2001-07-01
 
        * version 0.5.0pre3
 2001-07-01
 
        * version 0.5.0pre3
index 44b4f6c86ebaf3e225fc7b75cb2ad2d48fb4ecf3..d9039cf8ee5a7e76d90984cd8d6892f4481e91ae 100644 (file)
@@ -206,8 +206,8 @@ static void alertpanel_create(const gchar *title,
                           hbox, TRUE, TRUE, 16);
 
        /* title label */
                           hbox, TRUE, TRUE, 16);
 
        /* title label */
-       //pixmapwid = create_pixmapwid(dialog, GNUstep_xpm);
-       //gtk_box_pack_start(GTK_BOX(hbox), pixmapwid, FALSE, FALSE, 16);
+       /* pixmapwid = create_pixmapwid(dialog, GNUstep_xpm); */
+       /* gtk_box_pack_start(GTK_BOX(hbox), pixmapwid, FALSE, FALSE, 16); */
        label = gtk_label_new(title);
        gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 16);
        gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
        label = gtk_label_new(title);
        gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 16);
        gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
@@ -229,8 +229,8 @@ static void alertpanel_create(const gchar *title,
 
        /* message label */
        label = gtk_label_new(message);
 
        /* message label */
        label = gtk_label_new(message);
-       gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
        gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 32);
        gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 32);
+       gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
        gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
 
        /* for button(s) */
        gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
 
        /* for button(s) */
index 1cc342fc051aa4a5b20d2cd9fe77fd3073067a97..25dd5b7f8733600c1a731f2880060a167eabec9f 100644 (file)
@@ -414,10 +414,12 @@ CodeConvFunc conv_get_code_conv_func(const gchar *charset)
                code_conv = conv_jistodisp;
        else if (!strcasecmp(charset, CS_US_ASCII))
                code_conv = conv_ustodisp;
                code_conv = conv_jistodisp;
        else if (!strcasecmp(charset, CS_US_ASCII))
                code_conv = conv_ustodisp;
+       else if (!strncasecmp(charset, CS_ISO_8859_1, 10))
+               code_conv = conv_latintodisp;
 #if !HAVE_LIBJCONV
        else if (!strncasecmp(charset, "ISO-8859-", 9))
                code_conv = conv_latintodisp;
 #if !HAVE_LIBJCONV
        else if (!strncasecmp(charset, "ISO-8859-", 9))
                code_conv = conv_latintodisp;
-#endif /* !HAVE_LIBJCONV */
+#endif
        else if (!strcasecmp(charset, CS_SHIFT_JIS) ||
                 !strcasecmp(charset, "SHIFT-JIS")  ||
                 !strcasecmp(charset, "SJIS")       ||
        else if (!strcasecmp(charset, CS_SHIFT_JIS) ||
                 !strcasecmp(charset, "SHIFT-JIS")  ||
                 !strcasecmp(charset, "SJIS")       ||
@@ -877,23 +879,21 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
                                                        break;
                                                }
                                        }
                                                        break;
                                                }
                                        }
-                               } else {
-                                       if ((line_len + tlen + mbl +
-                                            (*(wtmpp + 1) ? 0 : nspc) +
-                                            (line_len > 1 ? 1 : 0))
-                                           > MAX_LINELEN) {
-                                               g_free(raw_new);
-                                               if (1 + tlen + mbl +
-                                                   (*(wtmpp + 1) ? 0 : nspc)
-                                                   >= MAX_LINELEN) {
-                                                       *tmpp = '\0';
-                                                       break;
-                                               }
-                                               *destp++ = '\n';
-                                               *destp++ = ' ';
-                                               line_len = 1;
-                                               continue;
+                               } else if ((line_len + tlen + mbl +
+                                           (*(wtmpp + 1) ? 0 : nspc) +
+                                           (line_len > 1 ? 1 : 0))
+                                          > MAX_LINELEN) {
+                                       g_free(raw_new);
+                                       if (1 + tlen + mbl +
+                                           (*(wtmpp + 1) ? 0 : nspc)
+                                           >= MAX_LINELEN) {
+                                               *tmpp = '\0';
+                                               break;
                                        }
                                        }
+                                       *destp++ = '\n';
+                                       *destp++ = ' ';
+                                       line_len = 1;
+                                       continue;
                                }
 
                                tmpp += mbl;
                                }
 
                                tmpp += mbl;
@@ -1073,22 +1073,20 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
                                                        break;
                                                }
                                        }
                                                        break;
                                                }
                                        }
-                               } else {
-                                       if ((line_len + tlen + mbl +
-                                            (*(wtmpp + 1) ? 0 : nspc) +
-                                            (line_len > 1 ? 1 : 0))
-                                           > MAX_LINELEN) {
-                                               if (1 + tlen + mbl +
-                                                   (*(wtmpp + 1) ? 0 : nspc)
-                                                   >= MAX_LINELEN) {
-                                                       *tmpp = '\0';
-                                                       break;
-                                               }
-                                               *destp++ = '\n';
-                                               *destp++ = ' ';
-                                               line_len = 1;
-                                               continue;
+                               } else if ((line_len + tlen + mbl +
+                                           (*(wtmpp + 1) ? 0 : nspc) +
+                                           (line_len > 1 ? 1 : 0))
+                                          > MAX_LINELEN) {
+                                       if (1 + tlen + mbl +
+                                           (*(wtmpp + 1) ? 0 : nspc)
+                                           >= MAX_LINELEN) {
+                                               *tmpp = '\0';
+                                               break;
                                        }
                                        }
+                                       *destp++ = '\n';
+                                       *destp++ = ' ';
+                                       line_len = 1;
+                                       continue;
                                }
 
                                tmpp += mbl;
                                }
 
                                tmpp += mbl;
index 01dd003aa8a01be7132d990ac12567c6ccff4de2..7f71e4719f2375314e1e3f4cc4885ed7467a2fda 100644 (file)
@@ -985,7 +985,7 @@ static void prefs_send_create(void)
        MENUITEM_ADD(optmenu_menu, menuitem, str, charset); \
 }
 
        MENUITEM_ADD(optmenu_menu, menuitem, str, charset); \
 }
 
-       SET_MENUITEM(_("Automatic"),                     CS_AUTO);
+       SET_MENUITEM(_("Automatic (Recommended)"),       CS_AUTO);
        SET_MENUITEM(_("7bit ascii (US-ASCII)"),         CS_US_ASCII);
 #if HAVE_LIBJCONV
        SET_MENUITEM(_("Unicode (UTF-8)"),               CS_UTF_8);
        SET_MENUITEM(_("7bit ascii (US-ASCII)"),         CS_US_ASCII);
 #if HAVE_LIBJCONV
        SET_MENUITEM(_("Unicode (UTF-8)"),               CS_UTF_8);
index 0939d3751c9d8dfc789eef665b0e389a536b9a59..ec7c2ed3a985c7e013c32513b058a9e28d240886 100644 (file)
@@ -500,7 +500,7 @@ int rfc2015_is_encrypted (MimeInfo *mimeinfo)
 {
     if (!mimeinfo)
         return 0;
 {
     if (!mimeinfo)
         return 0;
-    if (strcasecmp (mimeinfo->content_type, "multipart/encrypted"))
+    if (g_strcasecmp (mimeinfo->content_type, "multipart/encrypted"))
         return 0;
     /* fixme: we should schek the protocol parameter */
     return 1;
         return 0;
     /* fixme: we should schek the protocol parameter */
     return 1;
@@ -575,13 +575,13 @@ void rfc2015_decrypt_message (MsgInfo *msginfo, MimeInfo *mimeinfo, FILE *fp)
     /* check that we have the 2 parts */
     n = found = 0;
     for (partinfo = mimeinfo->children; partinfo; partinfo = partinfo->next) {
     /* check that we have the 2 parts */
     n = found = 0;
     for (partinfo = mimeinfo->children; partinfo; partinfo = partinfo->next) {
-        if (++n == 1 && !strcmp (partinfo->content_type,
-                                "application/pgp-encrypted")) {
+        if (++n == 1 && !g_strcasecmp (partinfo->content_type,
+                                      "application/pgp-encrypted")) {
             /* Fixme: check that the version is 1 */
             ver_okay = 1;
         }
             /* Fixme: check that the version is 1 */
             ver_okay = 1;
         }
-        else if (n == 2 && !strcmp (partinfo->content_type,
-                                   "application/octet-stream")) {
+        else if (n == 2 && !g_strcasecmp (partinfo->content_type,
+                                         "application/octet-stream")) {
             if (partinfo->next)
                 g_warning ("** oops: pgp_encrypted with more than 2 parts");
             break;
             if (partinfo->next)
                 g_warning ("** oops: pgp_encrypted with more than 2 parts");
             break;