Re: [evolution-patches] Could you review my new patch for bug #44065
- From: Jeffrey Stedfast <fejj ximian com>
- To: Antonio Xu <antonio xu sun com>
- Cc: evolution-patches ximian com
- Subject: Re: [evolution-patches] Could you review my new patch for bug #44065
- Date: 25 Jun 2003 22:18:08 -0400
sure, but can you get rid of the extra whitespace between:
CamelURL * url;
and
url = camel_url_new (content, NULL);
thanks
Jeff
On Wed, 2003-06-25 at 23:04, Antonio Xu wrote:
> Hello All,
> Could you review my new patch for bug #44065? I have change
> some codes according to NotZed's advice, bI use CamelURL to
> extract file path, and use g_ascii_strncasecmp instead of using
> g_strncasecmp
> Bug Summary:evolution mailto: commandline is better also to accept
> attachments with file:// URL I just remove "file:" form file url for
> fixing this bug.
> Thanks
> Antonio Xu
>
> ______________________________________________________________________
> Index: composer/ChangeLog
> ===================================================================
> RCS file: /cvs/gnome/evolution/composer/ChangeLog,v
> retrieving revision 1.542
> diff -u -r1.542 ChangeLog
> --- composer/ChangeLog 17 Jun 2003 19:47:53 -0000 1.542
> +++ composer/ChangeLog 25 Jun 2003 14:08:08 -0000
> @@ -1,3 +1,9 @@
> +2003-06-25 Antonio Xu <antonio xu sun com>
> +
> + Fixes bug #44065
> +
> + * e-msg-composer.c(handle_mailto):Change file url to absolute path
> +
> 2003-06-16 Jeffrey Stedfast <fejj ximian com>
>
> Fixes bug #44139.
> Index: composer/e-msg-composer.c
> ===================================================================
> RCS file: /cvs/gnome/evolution/composer/e-msg-composer.c,v
> retrieving revision 1.394
> diff -u -r1.394 e-msg-composer.c
> --- composer/e-msg-composer.c 17 Jun 2003 19:47:53 -0000 1.394
> +++ composer/e-msg-composer.c 25 Jun 2003 14:13:32 -0000
> @@ -3819,6 +3819,7 @@
> size_t nread, nwritten;
> char *content;
> int len, clen;
> + CamelURL * url;
>
> /* Parse recipients (everything after ':' until '?' or eos). */
> p = mailto + 7;
> @@ -3882,7 +3883,13 @@
> }
> }
> } else if (!strncasecmp (header, "attach", len)) {
> - e_msg_composer_attachment_bar_attach (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar), content);
> + /*Change file url to absolute path*/
> + if (!g_ascii_strncasecmp(content, "file:", 5)) {
> + url = camel_url_new (content, NULL);
> + e_msg_composer_attachment_bar_attach (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar), url->path);
> + camel_url_free (url);
> + } else
> + e_msg_composer_attachment_bar_attach (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar), content);
> } else {
> /* add an arbitrary header? */
> e_msg_composer_add_header (composer, header, content);
--
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com - www.ximian.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]