diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-03-06 02:18:52 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-03-06 02:18:52 +0800 |
commit | 4cbe9157a44c64ab7551dc839c20e1f838e807dc (patch) | |
tree | 7b0ef02792ce00aa216ef12259ab50a02ea191c7 /composer | |
parent | 84e0d8fd2e5ffaff169cd190435bd7db1fbfea9a (diff) | |
download | gsoc2013-evolution-4cbe9157a44c64ab7551dc839c20e1f838e807dc.tar gsoc2013-evolution-4cbe9157a44c64ab7551dc839c20e1f838e807dc.tar.gz gsoc2013-evolution-4cbe9157a44c64ab7551dc839c20e1f838e807dc.tar.bz2 gsoc2013-evolution-4cbe9157a44c64ab7551dc839c20e1f838e807dc.tar.lz gsoc2013-evolution-4cbe9157a44c64ab7551dc839c20e1f838e807dc.tar.xz gsoc2013-evolution-4cbe9157a44c64ab7551dc839c20e1f838e807dc.tar.zst gsoc2013-evolution-4cbe9157a44c64ab7551dc839c20e1f838e807dc.zip |
Fixes bug #55202
2004-03-05 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #55202
* e-msg-composer.c (add_recipients): No longer takes a decode
argument (handle_mailto is the only function that calls it, and
the decode value always has to be TRUE for mailto).
(handle_mailto): Updated.
svn path=/trunk/; revision=24975
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 9 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 17 |
2 files changed, 16 insertions, 10 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 201b395f50..b5daf624d1 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,12 @@ +2004-03-05 Jeffrey Stedfast <fejj@ximian.com> + + Fixes bug #55202 + + * e-msg-composer.c (add_recipients): No longer takes a decode + argument (handle_mailto is the only function that calls it, and + the decode value always has to be TRUE for mailto). + (handle_mailto): Updated. + 2004-02-27 Bruce Tao <bruce.tao@sun.com> * e-msg-composer-attachment-bar.c: add a key-press event handler, diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index a399b47b26..e9bdd6d50f 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -149,7 +149,7 @@ static GSList *all_composers = NULL; /* local prototypes */ -static GList *add_recipients (GList *list, const char *recips, gboolean decode); +static GList *add_recipients (GList *list, const char *recips); static void handle_mailto (EMsgComposer *composer, const char *mailto); @@ -3961,17 +3961,14 @@ e_msg_composer_new_redirect (CamelMimeMessage *message, const char *resent_from) static GList * -add_recipients (GList *list, const char *recips, gboolean decode) +add_recipients (GList *list, const char *recips) { CamelInternetAddress *cia; const char *name, *addr; int num, i; cia = camel_internet_address_new (); - if (decode) - num = camel_address_decode (CAMEL_ADDRESS (cia), recips); - else - num = camel_address_unformat (CAMEL_ADDRESS (cia), recips); + num = camel_address_decode (CAMEL_ADDRESS (cia), recips); for (i = 0; i < num; i++) { if (camel_internet_address_get (cia, i, &name, &addr)) { @@ -4007,7 +4004,7 @@ handle_mailto (EMsgComposer *composer, const char *mailto) if (len) { content = g_strndup (p, len); camel_url_decode (content); - to = add_recipients (to, content, FALSE); + to = add_recipients (to, content); g_free (content); } @@ -4032,11 +4029,11 @@ handle_mailto (EMsgComposer *composer, const char *mailto) camel_url_decode (content); if (!strcasecmp (header, "to")) { - to = add_recipients (to, content, FALSE); + to = add_recipients (to, content); } else if (!strcasecmp (header, "cc")) { - cc = add_recipients (cc, content, FALSE); + cc = add_recipients (cc, content); } else if (!strcasecmp (header, "bcc")) { - bcc = add_recipients (bcc, content, FALSE); + bcc = add_recipients (bcc, content); } else if (!strcasecmp (header, "subject")) { g_free (subject); if (g_utf8_validate (content, -1, NULL)) { |