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 70429 - Configurable message window title
Configurable message window title
Status: VERIFIED FIXED
Product: balsa
Classification: Other
Component: general
1.3.x
Other All
: Normal enhancement
: ---
Assigned To: Balsa Maintainers
Balsa Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-02-03 15:17 UTC by PeterBloomfield
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
patch (-p0) against current cvs (12.57 KB, patch)
2002-02-03 15:18 UTC, PeterBloomfield
none Details | Review

Description PeterBloomfield 2002-02-03 15:17:45 UTC
See http://mail.gnome.org/archives/balsa-list/2002-January/msg00295.html

The following patch allows the user to specify the title for the message
window, specifying whether to include any of:
 - the `From:' header;
 - the `From:' mailbox;
 - the subject.

Files:

 * help/C/balsa.sgml: documentation.

 * libbalsa/message.[hc]: new function
     gchar *libbalsa_message_title (LibBalsaMessage * message,
                                    const gchar * format);
     which makes up a title string for the message in the given format.

 * libbalsa/misc.[hc]: new function
     gchar *libbalsa_truncate_string(const gchar * str,
                                     gint length, gint dots);
     which truncates the string to at most length, and replaces the last 
     dots characters with '.' if the string was truncated.

 * src/balsa-app.h: new member balsa_app.message_title_format.

 * src/pref-manager.c: user interface to balsa_app.message_title_format.

 * src/save-restore.c: save and restore balsa_app.message_title_format.

 * src/message-window.c: use the new libbalsa_message_title()
Comment 1 PeterBloomfield 2002-02-03 15:18:41 UTC
Created attachment 6590 [details] [review]
patch (-p0) against current cvs
Comment 2 Pawel Salek 2002-02-03 22:41:55 UTC
Seems OK to me. I think we could change the defaults though to
something more reasonable.
What about 
Message from %F: %s
?
Comment 3 PeterBloomfield 2002-02-04 00:26:02 UTC
Yes, that's much more informative, and very reasonable (imho).
Comment 4 Pawel Salek 2002-02-04 08:49:08 UTC
Commited. I guess this closes the issue.
Comment 5 Pawel Salek 2002-04-25 09:20:15 UTC
balsa-1.3.5 and 2.0.0 released, closing this report for good