From: Sergey Vlasov <vsu@mivlgu.murom.ru>
To: mandrake-russian@linuxteam.iplabs.ru
Subject: Re: [mdk-re] charset in sylpheed
Date: Thu Mar 15 23:59:12 2001
Message-ID: <20010316000258.15974974.vsu@mivlgu.murom.ru> (raw)
In-Reply-To: <20010315233705.5d8a0c23.vsu@mivlgu.murom.ru>
[-- Attachment #1: Type: text/plain, Size: 864 bytes --]
On Thu, 15 Mar 2001 23:37:05 +0300
Sergey Vlasov <vsu@mivlgu.murom.ru> wrote:
> On Thu, 15 Mar 2001 14:53:24 +0300
> Vyt <vyt@vzljot.ru> wrote:
>
> > Hello, All
> >
> > Получил тут письмо (заголовок в аттаче). При просмотре показывается
> > читаемое имя отправителя. При ответе (кнопка "ответить") на
> > него sylpheed вместо читаемого имени показывает закодированное.
> > Это баг или мои настройки? Кстати, кодировка выбрана
> "автоопределение".
>
> Похоже, баг: поле Reply-To не раскодируется. Если его нет, адрес берется
> из From, и все на месте.
Да, кстати, помимо Reply-To еще не декодировались Cc, Bcc, Followup-To. Проявлялось, например, при сохранении письма с русскими буквами в этих полях в черновиках.
В общем, берите патч и пробуйте. Если у кого-то, кроме меня, это заработает, надо бы и автору послать. Патч относительно sylpheed-0.4.62-ipl2.
[-- Attachment #2: sylpheed-0.4.62-mimedecode.patch --]
[-- Type: text/plain, Size: 1473 bytes --]
--- sylpheed-0.4.62/src/compose.c.mimedecode Tue Mar 13 23:19:55 2001
+++ sylpheed-0.4.62/src/compose.c Thu Mar 15 23:46:30 2001
@@ -640,6 +640,15 @@
gtk_entry_append_text(entry, address);
}
+static gchar *unmime_and_free(gchar *str)
+{
+ gchar tmp[BUFFSIZE];
+
+ conv_unmime_header(tmp, sizeof(tmp), str, NULL);
+ g_free(str);
+ return g_strdup(tmp);
+}
+
static gint compose_parse_header(Compose *compose, MsgInfo *msginfo)
{
static HeaderEntry hentry[] = {{"Reply-To:", NULL, TRUE},
@@ -669,11 +678,11 @@
fclose(fp);
if (hentry[H_REPLY_TO].body != NULL) {
- compose->replyto = hentry[H_REPLY_TO].body;
+ compose->replyto = unmime_and_free(hentry[H_REPLY_TO].body);
hentry[H_REPLY_TO].body = NULL;
}
if (hentry[H_CC].body != NULL) {
- compose->cc = hentry[H_CC].body;
+ compose->cc = unmime_and_free(hentry[H_CC].body);
hentry[H_CC].body = NULL;
}
if (hentry[H_REFERENCES].body != NULL) {
@@ -696,7 +705,7 @@
}
if (hentry[H_BCC].body != NULL) {
if (compose->mode == COMPOSE_REEDIT_DRAFT)
- compose->bcc = hentry[H_BCC].body;
+ compose->bcc = unmime_and_free(hentry[H_BCC].body);
else
g_free(hentry[H_BCC].body);
hentry[H_BCC].body = NULL;
@@ -706,7 +715,8 @@
hentry[H_NEWSGROUPS].body = NULL;
}
if (hentry[H_FOLLOWUP_TO].body != NULL) {
- compose->followup_to = hentry[H_FOLLOWUP_TO].body;
+ compose->followup_to =
+ unmime_and_free(hentry[H_FOLLOWUP_TO].body);
hentry[H_FOLLOWUP_TO].body = NULL;
}
prev parent reply other threads:[~2001-03-15 23:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-15 14:52 Vyt
2001-03-15 23:33 ` Sergey Vlasov
2001-03-15 23:59 ` Sergey Vlasov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010316000258.15974974.vsu@mivlgu.murom.ru \
--to=vsu@mivlgu.murom.ru \
--cc=mandrake-russian@linuxteam.iplabs.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git