After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 201186 - ability to add custom headers in composer
ability to add custom headers in composer
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.10.x (obsolete)
Other All
: High enhancement
: Future
Assigned To: Ashish
Evolution QA team
evolution[composer]
: 219403 221940 222382 226453 252544 304460 347471 491665 539026 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-01-17 18:32 UTC by Dan Winship
Modified: 2011-02-24 12:13 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch file contains a partial fix. (30.48 KB, patch)
2007-11-02 06:57 UTC, Ashish
none Details | Review
Patch file contains a fix for custom header. (32.33 KB, patch)
2007-11-29 12:17 UTC, Ashish
needs-work Details | Review
Find a sample xml file for custom header. (1.37 KB, application/xml)
2007-11-29 12:21 UTC, Ashish
  Details
Patch Review Comments (30.74 KB, text/plain)
2007-12-06 09:14 UTC, Sankar P
  Details
Updated patch after review comments. (30.88 KB, patch)
2007-12-17 11:45 UTC, Ashish
rejected Details | Review
Review comments (25.79 KB, text/plain)
2008-01-08 11:10 UTC, Sankar P
  Details
Patch after review comments. (35.12 KB, patch)
2008-01-28 14:32 UTC, Ashish
needs-work Details | Review
Added translator comments and update for other review comments also. (33.53 KB, patch)
2008-02-03 19:27 UTC, Ashish
none Details | Review
Update patch with translator comments and new string. (33.76 KB, patch)
2008-02-06 09:06 UTC, Ashish
none Details | Review
Translator comment line are added to po files. (33.94 KB, patch)
2008-02-08 08:07 UTC, Ashish
rejected Details | Review
Removed Translator comment from one place and also removed global list. (32.48 KB, patch)
2008-02-12 16:27 UTC, Ashish
needs-work Details | Review
Update Translator Comment and added function for free data on composer destroy. (32.61 KB, patch)
2008-02-26 11:42 UTC, Ashish
none Details | Review
Patch for to provide support for configuring custom header. (24.18 KB, patch)
2008-06-24 10:02 UTC, Ashish
needs-work Details | Review
Update for translation strings. (24.31 KB, patch)
2008-06-25 06:56 UTC, Ashish
needs-work Details | Review
Updated patch for solving memory leaks issue. (24.27 KB, patch)
2008-07-03 08:43 UTC, Ashish
committed Details | Review

Description Dan Winship 2001-01-17 18:32:17 UTC
You should be able to add customer headers in the composer. This can be
sort of power-userish and hard to do.
Comment 1 Jeffrey Stedfast 2001-07-16 18:35:32 UTC
I don't think we should worry about this for 1.0, it'd take a rewrite
of the GUI and adding more functionality.
Comment 2 Christopher Masto 2001-11-08 18:21:40 UTC
Please worry about it immediately after 1.0, then.  I thought I had
"switched" to Evolution, but today I had to go back to mutt because I
can't add headers to, for example, control mailing list software.

It's not something you need every day, but when you find out you can't
do it, you start to feel like you're trapped in a Microsoft product.
Comment 3 Ken Guest 2001-11-15 09:14:13 UTC
Setting additional headers shouldn't be too difficult though.
Having this functionality would also be good for setting
X-Message, X-URL and X-image-url headers.

This type of thing is already in Mozilla mail, I believe, but not Evo.
http://bugzilla.mozilla.org/show_bug.cgi?id=16925
http://bugzilla.mozilla.org/show_bug.cgi?id=56273
Comment 4 Jeffrey Stedfast 2001-11-15 20:01:42 UTC
I didn't see this feature in Mozilla Mail either...

maybe I missed it though?
Comment 5 Gerardo Marin 2002-03-14 23:04:51 UTC
*** bug 219403 has been marked as a duplicate of this bug. ***
Comment 6 Gerardo Marin 2002-03-15 16:42:30 UTC
*** bug 221940 has been marked as a duplicate of this bug. ***
Comment 7 Gerardo Marin 2002-03-26 19:39:15 UTC
*** bug 222382 has been marked as a duplicate of this bug. ***
Comment 8 Jeffrey Stedfast 2003-08-30 21:08:41 UTC
*** bug 226453 has been marked as a duplicate of this bug. ***
Comment 9 Gerardo Marin 2004-01-06 06:33:25 UTC
This was a bounty and now it's fixed in HEAD (see
http://bugzilla.gnome.org/show_bug.cgi?id=127523)
Comment 10 noa 2004-01-06 10:28:00 UTC
The bounty is about displaying incoming custom email headers. This bug
however requests the ability to add custom headers to outgoing email.
Comment 11 Davyd 2004-03-11 10:15:19 UTC
*** bug 252544 has been marked as a duplicate of this bug. ***
Comment 12 Not Zed 2005-05-19 08:04:04 UTC
*** Bug 304460 has been marked as a duplicate of this bug. ***
Comment 13 Sankar P 2007-01-09 10:39:03 UTC
I am taking it up. 
Related to http://bugzilla.gnome.org/show_bug.cgi?id=347471
Comment 14 Karsten Bräckelmann 2007-02-23 16:10:36 UTC
*** Bug 347471 has been marked as a duplicate of this bug. ***
Comment 15 Karsten Bräckelmann 2007-02-23 16:11:33 UTC
Inheriting Priority High from duplicate bug 347471. Setting proper Target.

Please see bug 347471 for the reason this now becomes rather important to be implemented ASAP. Bug 347471 comment 5 provides some implementation details.
Comment 16 Karsten Bräckelmann 2007-02-23 16:36:13 UTC
Inheriting the Cc'd addresses manually... *sigh*
Comment 17 André Klapper 2007-10-31 19:58:17 UTC
*** Bug 491665 has been marked as a duplicate of this bug. ***
Comment 18 Ashish 2007-11-02 06:57:36 UTC
Created attachment 98359 [details] [review]
Patch file contains a partial fix.

This fix is provided as part of plugin. The plugin that embedding a Custom
Headers for security classification and category to the outgoing messages. This
is just a  first phase fix for that bug. In next phase of fix, the input dialog
options box for custom header will be created based on reading the contents
from an xml file.
Comment 19 Srinivasa Ragavan 2007-11-05 07:46:25 UTC
Ashish, unified diff first (diff -u). Ashish, no point attaching a partial fix. Complete and put the patch here.
Comment 20 André Klapper 2007-11-05 11:33:27 UTC
ashish: well, of course some kind of "draft patch" can be attached here, but please set the initial status to "needs-work" then.
Comment 21 Ashish 2007-11-29 12:17:25 UTC
Created attachment 99837 [details] [review]
Patch file contains a fix for custom header.

In this fix, the input dialog options box for custom header will be created based on reading the contents from an xml file. User can add different custom header dynamically, through an XML file. For adding custom header option values, user will have to add section for custom header value in XML file. XML's file section contains custom header value in terms of custom header name as major tag of XML file and its value as minor tag of XML file.
Comment 22 Ashish 2007-11-29 12:21:34 UTC
Created attachment 99838 [details]
Find a sample xml file for custom header.

It should be available in /home/user/.evolution/ directory.
Comment 23 André Klapper 2007-11-29 14:13:34 UTC
please fix the various mistakes in user-visible strings (punctuation vs no punctuation, missing whitespaces and redundant whitespaces, and grammar) before committing.
Comment 24 Srinivasa Ragavan 2007-12-03 16:57:13 UTC
Sankar, this need to be reviewed/reworked before 2.21.4. Can you take it with Ashish?

Comment 25 Sankar P 2007-12-06 09:14:20 UTC
Created attachment 100370 [details]
Patch Review Comments

the comments were so lengthy that I did not want to make a loooong comment.
Comment 26 Sankar P 2007-12-06 09:16:08 UTC
Please be informed that this plugin is more aligned with http://bugzilla.gnome.org/show_bug.cgi?id=347471 's requirements. Any features like: Always add these X headers to all outgoing messages is not supported in this yet. 
Comment 27 Ashish 2007-12-17 11:45:54 UTC
Created attachment 101117 [details] [review]
Updated patch after review comments.

Major changes are: 

1) Patch file contains the support of Gconf for configuraion. 
For adding custom header option values, user will have to add string in gconf configuraion file through gconf-editor. 

2) To removed xml file configuration for dynamically addition of custom headers optrions. Same configuration will provided through gconf.
Comment 28 André Klapper 2007-12-17 12:02:46 UTC
ashish,

_name="Custom Header" 
can we make this "Custom Header lines"? otherwise i expect wrong translations.
in general, you always talk about the "header" in all user-visible strings.
to me, the header is the ENTIRE non-body. so a "custom header" to me is a bit misleading. aren't you talking about "custom header lines" instead?!

[Security=Personal;Unclassified;Protected;InConfidence;Secret;Topsecret]
...i again expect that these values cannot be translated, like for the attachment-reminder plugin?

<short>List of subtype</short>
can we please use proper english language?

<_description>A plugin to help you attach Custom Headers to the outgoing messages. You can configure the custom header through the Custom Header dialog box.</_description>
can we remove the "A plugin to help you" blah and use proper spelling, please? like:
<_description>Adds custom header lines to outgoing messages.</_description>
Comment 29 Sankar P 2008-01-08 11:10:48 UTC
Created attachment 102386 [details]
Review comments
Comment 30 Ashish 2008-01-28 14:32:36 UTC
Created attachment 103883 [details] [review]
Patch after review comments.
Comment 31 Srinivasa Ragavan 2008-01-28 14:52:14 UTC
This need to be reviewed. But then, this shouldn't be a target for 2.21.x anymore. 
Comment 32 André Klapper 2008-01-28 16:53:59 UTC
if you insist on using "custom header" instead of "custom header lines", then i expect translator comments for this.
Comment 33 Srinivasa Ragavan 2008-02-01 08:39:58 UTC
It still needs some work. I have give Ashish in person. Please rework and attach.
Comment 34 Ashish 2008-02-03 19:27:58 UTC
Created attachment 104340 [details] [review]
Added translator comments and update for other review comments also.
Comment 35 André Klapper 2008-02-03 20:29:16 UTC
ashish, did you try the translator comments by creating a pot file and checking?
Comment 36 André Klapper 2008-02-03 20:31:11 UTC
+      <default>[Security=Personal;Unclassified;Protected;InConfidence;Secret;Topsecret]</default>
+      <locale name="C">
+         <short>Default list of headers for email custom header plugin</short>
+         <long>Default list of headers for email custom header plugin</long>

and you may want to use <long> to actually describe the format of the key. if it's empty no-one would know how to add something here. please enclose literal values in "".
Comment 37 Ashish 2008-02-06 09:06:57 UTC
Created attachment 104541 [details] [review]
Update patch with translator comments and new string.

Translator comments are tested by creating a pot file.
Add new description for describing the format of gconf key.
Comment 38 André Klapper 2008-02-06 13:44:11 UTC
> Translator comments are tested by creating a pot file.

aha. i'd love to see that pot file, including your

/* Translators: The following strings are used while adding a new message header to outgoing message, to specify what value for the message header would be added. */

line.
Comment 39 Ashish 2008-02-08 08:07:07 UTC
Created attachment 104692 [details] [review]
Translator comment line are added to po files.
Comment 40 Srinivasa Ragavan 2008-02-08 09:28:57 UTC
Ashish, Didnt I tell you not to do window management. Why do you manage the composer windows in a global list. How do you handle if the dialog is closed. Have the dialog part of composer' g_object_set_data and go ahead.

I hate see the review comments not being taken in to account.
Comment 41 André Klapper 2008-02-08 10:35:55 UTC
ashish, this still does not answer if

+        /* Translators: The following strings are used while adding a new message header to outgoing message, to specify what value for the message header would be added. */
+	epech_load_from_gconf (client, "/apps/evolution/eplugin/email_custom_header/customHeader", mch);

will be displayed anywhere. i assume it's completely useless there.
Comment 42 Ashish 2008-02-12 16:27:56 UTC
Created attachment 105067 [details] [review]
Removed Translator comment from one place and also removed global list.
Comment 43 André Klapper 2008-02-12 19:09:44 UTC
+                <!-- Translators: The following strings are used while adding a new message header to outgoing message, to specify what value for the message header would be added -->
+		<_description>Adds custom header to outgoing messages.</_description>

what's that? i'm quite pissed by writing for a *third* time that this is a completely useless comment, man. please read
http://live.gnome.org/TranslationProject/DevGuidelines/Use_comments again. and then again.
Comment 44 Ashish 2008-02-14 06:48:53 UTC
Hi Andre,

As per your old comments, 

> aha. i'd love to see that pot file, including your

>/* Translators: The following strings are used while adding a new message
>header to outgoing message, to specify what value for the message header would
>be added. */

>line.

I have added this line in pot file, which come from source files after compilation. Please find the same in one of the pot file.

********************************************************************************
#. Translators: The following strings are used while adding a new message header to outgoing message to specify what value for the message header would be added
#: ../plugins/email-custom-header/org-gnome-email-custom-header.eplug.xml.h:2

msgid "Adds custom header to outgoing messages."

msgstr ""


#: ../plugins/email-custom-header/org-gnome-email-custom-header.eplug.xml.h:3

msgid "Custom Header"

msgstr "Custom Header"


#: ../plugins/email-custom-header/org-gnome-email-custom-header-menu.xml.h:1

#, fuzzy

msgid "Custom Header"

msgstr "Custom Header"


#: ../plugins/email-custom-header/apps_evolution_email_custom_header.schemas.in.h:1

#, fuzzy

msgid "List of Custom Header"

msgstr "Custom Headers"


#: ../plugins/email-custom-header/apps_evolution_email_custom_header.schemas.in.h:2

msgid ""

"The key specifies the list of custom headers that you can add to an outgoing "

"message. The format for specifying a Header and Header value is: Name of the "

"custom header followed by \"=\" and the values separated by \";\""

msgstr ""

********************************************************************************
then you told me, remove this line from one place, I removed this lines where its look useless.

I have read “Translator Comments” guideline from mentioned url and I've also looked existing evo source code. I followed the same guideline.

I got confused, what you want exactly. Please explain me more.
Please let me know, if I missed something.

Thanks
Ashish
Comment 45 André Klapper 2008-02-14 09:03:41 UTC
#. Translators: The following strings are used while adding a new message
header to outgoing message to specify what value for the message header would
be added
#: ../plugins/email-custom-header/org-gnome-email-custom-header.eplug.xml.h:2

msgid "Adds custom header to outgoing messages."


that does not work. perhaps you had luck when creating the pot file that the order of the strings worked well for you. but this is not guaranteed at all. so "the following strings have bla" will not work. sorry, should have made this clearer before.
Comment 46 Ashish 2008-02-15 06:47:41 UTC
Thanks to explained me more.

> order of the strings worked well for you. but this is not guaranteed at all.so
"the following strings have bla" will not work.

I didn't get what does mean of "order of the string".

Do u want to any changes in string "Adds custom header to outgoing messages.", 
or something else?



Comment 47 André Klapper 2008-02-15 09:52:23 UTC
with "order of the string*S*" i mean that writing "The following strings" is crazy if there is only ONE following string and the rest of the strings might be somewhere TOTALLY else in the po file. it is not guaranteed that the other custom header strings are somewhere near that one string with the translator comment
Comment 48 Srinivasa Ragavan 2008-02-19 18:34:40 UTC
+        static gint ivariable=0;
...
...
+        if(ivariable != 0)
+		new_email_custom_header_window = g_object_get_data ((GObject *) t->target.widget, "compowindow");
+
+       	if(NULL == epech_check_existing_composer_window(new_email_custom_header_window,t->target.widget->window)) {
+		dialog = new_email_custom_header_window->epech_dialog;
+	} else {
+                dialog = epech_dialog_new ();
+                if(NULL != dialog) {
...
...
+                        ivariable++;
+                        g_object_set_data ((GObject *) t->target.widget, "compowindow", new_email_custom_header_window);
+                }        
+        }

Any reason you use the ivariable? I dont see why you need it. Except for the first instance, for the rest it is going to be non zero. Why can't you just get it directly from the object?

Also you need to destroy the data on composer destry. so use g_object_set_data_full.
Comment 49 Ashish 2008-02-26 11:42:13 UTC
Created attachment 105972 [details] [review]
Update Translator Comment and added function for free data on composer destroy.
Comment 50 Matthew Barnes 2008-03-11 00:33:00 UTC
Bumping version to a stable release.
Comment 51 Sankar P 2008-04-23 16:46:07 UTC
with the new composer this is not working. Also, there were some comments on coding style issues that I have conveyed offline. 
Comment 52 Akhil Laddha 2008-05-19 04:22:58 UTC
Committed in svn trunk 
http://svn.gnome.org/viewvc/evolution?view=revision&revision=35510
Comment 53 Matthew Barnes 2008-06-18 22:25:15 UTC
Reopening.

This thing is unusable in 2.23 and belongs in the experimental plugin group until someone finishes it.  Expecting users to modify GConf keys in order to utilize a feature is unacceptable.  We can't ship this in a stable release.

The plugin advertises the ability to add custom headers to outgoing messages.  Could we maybe have an Add button then for adding such headers?  Maybe a Delete button to round it out?  And just for kicks, maybe even display a list of the headers that have been added?

I won't even go into why I think this should not have been a plugin to begin with...
Comment 54 Matthew Barnes 2008-06-18 22:26:01 UTC
*** Bug 539026 has been marked as a duplicate of this bug. ***
Comment 55 Srinivasa Ragavan 2008-06-19 14:08:03 UTC
Matt, you are right. It lacks a plugin configuration dialog, where users add a list of header/values. It would be there in time. Ashish, who was doing this, is sick and undergoing an medical surgery and would be back next week or so. 
Comment 56 Ashish 2008-06-24 10:02:16 UTC
Created attachment 113321 [details] [review]
Patch for to provide support for configuring custom header.

Added Support for configuring gconf values.
User can Add/Edit/Remove custom header through Plugin configuration tab.
Comment 57 André Klapper 2008-06-24 12:26:21 UTC
two issues:


+              <!-- For Translators: 'Custom Header key value' string is used while adding a new message header to configuration, to specifying the format of the key values -->
+	      <property name="label" translatable="yes">The format for specifying a Custom Header key value is:
+Name of the Custom Header key values separated by &quot;;&quot;.</property>

this is wrong for glade files. please read
http://live.gnome.org/TranslationProject/DevGuidelines/Use comments


+ <property name="label" translatable="yes">window1

no, please use translatable="no"
Comment 58 André Klapper 2008-06-24 12:27:28 UTC
Bah, crappy Firefox 3. should have been
http://live.gnome.org/TranslationProject/DevGuidelines/Use%20comments
Comment 59 Ashish 2008-06-25 06:56:59 UTC
Created attachment 113382 [details] [review]
Update for translation strings.
Comment 60 Srinivasa Ragavan 2008-07-03 04:26:26 UTC
So memleaks now, all those g_strcontact give newly allocated. When you recursively append, free those already done.

Akhil will test the patch, independently
Comment 61 Akhil Laddha 2008-07-03 05:48:33 UTC
I tested the patch and configuration UI worked properly for me. 
Comment 62 Ashish 2008-07-03 08:43:09 UTC
Created attachment 113895 [details] [review]
Updated patch for solving memory leaks issue.
Comment 63 Akhil Laddha 2008-07-17 05:29:41 UTC
marking patch as 'accepted' on behalf of srag (had discussion on irc)
Comment 64 Bharath Acharya 2008-07-20 16:07:25 UTC
Committed to Trunk as r35774
http://svn.gnome.org/viewvc/evolution?view=revision&revision=35774
Comment 65 Bharath Acharya 2008-07-21 04:29:06 UTC
Missed the glade file since patch was named memory-leak-fixes. It also added a new glade file. Added the glade file in this commit to Trunk.
http://svn.gnome.org/viewvc/evolution?view=revision&revision=35798
Comment 66 Matthew Barnes 2008-12-12 03:53:15 UTC
Closing since we have a plugin for this now.
Comment 67 Yves-Alexis Perez 2009-10-05 05:48:58 UTC
(In reply to comment #66)
> Closing since we have a plugin for this now.

HMmh, though, “custom headers” have fixed, pre-defined values, while “custom” are likely to mean “editable at message creation time”.

That, would be nice.
Comment 68 André Klapper 2009-10-05 10:38:13 UTC
Can you provide a UI mockup that's not on steroids? :)
Comment 69 Yves-Alexis Perez 2009-10-05 11:47:24 UTC
Hmmh, in the “edit message” window, one could have a [+]  button under subject, which would open a line, where the user would be able to type free text?
Comment 70 André Klapper 2009-10-05 12:31:32 UTC
...and how many users will be totally confused by this?
Comment 71 Yves-Alexis Perez 2009-10-05 12:33:35 UTC
The [+] button could be added only if selected in the menu, like the CC/BCC/Reply-to ones?
Comment 72 Yves-Alexis Perez 2011-02-24 07:42:31 UTC
Any news on this?
Comment 73 Matthew Barnes 2011-02-24 11:58:26 UTC
No interest.  Bug lacks use cases other than "other mailers can do it".
Comment 74 Yves-Alexis Perez 2011-02-24 12:13:27 UTC
The Mail-Followup-To header comes to mind. Another are pseudo-headers for example for the Debian BTS (or the emacs one, for that matters).