Commit Graph

18 Commits

Author SHA1 Message Date
d91cf08981 Fixed for mail_content_loaded's new signature.
2001-12-11  Jon Trowbridge  <trow@ximian.com>

	* mail-identify.c (mail_identify_mime_part): Fixed for
	mail_content_loaded's new signature.

	* mail-format.c (attachment_header): Don't convert URLs, etc. if
	we are printing.
	(write_address): Don't convert addresses to mailto: links if we
	are printing.
	(write_one_text_plain_chunk): Add a printing flag, that we pass
	along to mail_text_write.
	(handle_text_plain): Pass our printing flag to
	write_one_text_plain_chunk.
	(mail_get_message_rfc822): Don't unneccesarily convert URLs.
	(mail_content_loaded): Add a GtkHTML parameter.

	* mail-display.c (mail_display_initialize_gtkhtml): Added.  Breaks
	all of the signal hookups out of mail_display_new.
	(mail_display_new): Call mail_display_initialize_gtkhtml.
	(mail_text_write): Don't convert URLs, etc., if we are printing.
	Lots of other changes to pass around GtkHTML/GtkHTMLStream objects.

	* mail-callbacks.c (do_mail_print): Call
	mail_display_initialize_gtkhtml on our GtkHTML object.

	* folder-browser.c (update_status_bar): Make the status bar more
	useful when you have a large number of hidden messages.

svn path=/trunk/; revision=14997
2001-12-11 23:07:22 +00:00
4ca07463a0 More fixing of the license texts.
svn path=/trunk/; revision=14217
2001-10-27 18:21:05 +00:00
da449e4dac if gnome-vfs returns application/octet-stream with the magic check, use
2001-10-01  Larry Ewing  <lewing@ximian.com>

	* mail-identify.c (mail_identify_mime_part): if gnome-vfs returns
	application/octet-stream with the magic check, use the filename
	check instead since it at least has a chance of being useful.

svn path=/trunk/; revision=13265
2001-10-01 18:23:05 +00:00
0320961855 This patch should avoid flashing when loading images into mail view, credits
go to Dan, Larry and me ;)
(fixes ximian #6680)

2001-09-06  Radek Doulik  <rodo@ximian.com>

	* everywhere updated for new mail_content_loaded definition
	(prototype)

2001-09-05  Radek Doulik  <rodo@ximian.com>

	* mail-display.c (mail_display_redisplay): increase
	redisplay_counter
	(try_part_urls): new helper function
	(try_data_urls): ditto
	(load_content_loaded): if it has stream handle available and if
	it's still valid, it writes to this stream instead of
	redisplaying, uses try_part_urls and try_data_urls

	* mail-display.h: added redisplay_counter to MailDisplay, I use
	it in load_content_loaded to be sure that there wasn't any
	redisplay and that remembered handle is still valid

	* mail-display.c (on_url_requested): don't end stream with error
	if part is not loaded yet
	(on_url_requested): don't end stream in cases when we are going to
	load image using http
	(stream_write_or_redisplay_when_loaded): new helper function,
	which is extracted from mail_display_redisplay_when_loaded. it's
	extended to handle gtkhtml stream writting
	(mail_display_redisplay_when_loaded): use
	stream_write_or_redisplay_when_loaded
	(mail_display_stream_write_when_loaded): new function, uses
	stream_write_or_redisplay_when_loaded
	struct _load_content_msg: added handle, url and redisplay_counter
	fields

	* mail-format.c (mail_content_loaded): added redisplay, url and
	handle parameter for case when we are loading image content and
	want it write to stream instead of redisplaying

svn path=/trunk/; revision=12633
2001-09-05 22:13:05 +00:00
c8f90c67cb Don't trust gnome-vfs when it says "text/plain" if
* mail-identify.c (mail_identify_mime_part): Don't trust gnome-vfs
	when it says "text/plain" if gnome_vfs_mime_type_from_name says
	something different. Fixes a problem with recognizing icalendar
	attachments labeled "application/octet-stream". Also, don't bother
	asking gnome-vfs about winmail.dat attachments, since it will
	often claim that they're MPEGs due to some mis-magic.

svn path=/trunk/; revision=12357
2001-08-21 20:27:30 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
6181a8992c If the message data is online, sniff the data for a MIME type first, and
* mail-identify.c (mail_identify_mime_part): If the message data
	is online, sniff the data for a MIME type first, and use the
	filename second. Makes it more reliable, and deals with the
	specific case of "application/octet-stream; name=foo.vcf" which
	gnome-vfs will identify as vcalendar, but which can also be a
	vcard.

svn path=/trunk/; revision=9968
2001-05-24 21:44:40 +00:00
57574f0be3 Cleaned up #includes. Remove unneccesary includes of <gnome.h>,
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* *.*: Cleaned up #includes. Remove unneccesary includes of
	<gnome.h>, <gtk/gtk.h>, <bonobo.h> and replaced with more
	fine grained headers where needed. Also marked a bunch of
	strings for translations and added some missing prototypes.

svn path=/trunk/; revision=9025
2001-03-29 20:53:17 +00:00
061393816b Fix an uninitialized variable use.
* mail-identify.c (mail_identify_mime_part): Fix an uninitialized
	variable use.

svn path=/trunk/; revision=7838
2001-01-26 17:00:05 +00:00
54a2910f89 Check if a message part's content is available, and if it's not, queue a
* mail-format.c (mail_content_loaded): Check if a message part's
	content is available, and if it's not, queue a thread that will
	load it and then queue an idle-handler redisplay of the message.
	(call_handler_function): Call mail_content_loaded() on the part
	and don't try to display it if it's currently offline.
	(get_data_wrapper_text): Simplify a bit

	* mail-display.c (mail_display_queue_redisplay): rename and make
	non-static.
	(mail_display_redisplay): Use a "new and improved" way of
	preserving the GtkHTML scroll location. ("new and improved" is
	code for "gross and hackish", but there should be a real interface
	for this eventually.)
	(on_url_requested): Use mail_content_loaded() and don't write out
	offline cid: URLs

	* mail-identify.c (mail_identify_mime_part): Use
	mail_content_loaded and don't try to identify the data if it's
	offline.

svn path=/trunk/; revision=7813
2001-01-25 17:07:23 +00:00
d9da6499c0 camel_mime_part_get_filename now deals with both Content-Disposition and
* mail-display.c (make_safe_filename):
	* mail-format.c (handle_mystery):
	* mail-identify.c (mail_identify_mime_part):
	camel_mime_part_get_filename now deals with both
	Content-Disposition and Content-Type.

svn path=/trunk/; revision=5215
2000-09-05 23:12:27 +00:00
fa3aea8519 Remove workaround for gnome-vfs 0.2 bug.
* mail-identify.c: Remove workaround for gnome-vfs 0.2 bug.

	* mail-format.c (lookup_handler): Remove workaround for function
	introduced between gnome-vfs 0.2 and 0.3, since we depend on 0.3
	now.

svn path=/trunk/; revision=4777
2000-08-12 15:15:51 +00:00
8cb514d6dd Merge with camel-async.
svn path=/trunk/; revision=4687
2000-08-10 17:30:50 +00:00
7ce3b0a729 Add a workaround for a small gnome-vfs 0.2 bug so we don't need to require
* mail-identify.c: Add a workaround for a small gnome-vfs 0.2 bug
	so we don't need to require CVS gnome-vfs.

svn path=/trunk/; revision=3924
2000-07-06 17:05:56 +00:00
1e54340d72 Oops. My gnome-vfs was out-of-date. Update for changed function name.
* mail-identify.c (mail_identify_mime_part): Oops. My gnome-vfs
	was out-of-date. Update for changed function name.

svn path=/trunk/; revision=3898
2000-07-05 21:04:20 +00:00
53faeaabcc Use the gnomevfs sniff buffer interface to try to identify the MIME type
* mail-identify.c (mail_identify_mime_part): Use the gnomevfs
	sniff buffer interface to try to identify the MIME type when
	everything else fails.

	* mail-display.c (on_object_requested):
	* mail-format.c (lookup_handler, handle_undisplayable,
	handle_audio): s/gnome_mime/gnome_vfs_mime/

	* Makefile.am: Add gnomevfs stuff

svn path=/trunk/; revision=3893
2000-07-05 19:47:35 +00:00
2ef945c6e2 consolidate mail-format.h, mail-identify.h, mail-ops.h, main.h and
* mail.h: consolidate mail-format.h, mail-identify.h, mail-ops.h,
	main.h and session.h into this new file. There's no reason to have
	a .h for every .c.

svn path=/trunk/; revision=2830
2000-05-06 17:16:22 +00:00
6942830c98 Improve the builtin vs bonobo selection code. (handle_mystery): Include
* mail-format.c (lookup_handler, etc): Improve the builtin vs
	bonobo selection code.
	(handle_mystery): Include name and Content-Description in the
	"mystery data" info, when available
	(handle_unknown_type): Call mail_identify_mime_part before
	giving up.
	(handle_undisplayable): Split out of handle_unknown_type now
	that handle_unknown_type can try alternate viewers.
	(handle_via_bonobo): Fall back to handle_undisplayable if the
	bonobo control fails.

	* mail-identify.c (mail_identify_mime_part): New function to
	attempt to identify a MIME part that we can't identify based on
	Content-Type alone.

	* mail-display.c (on_url_requested): redo the mystery data icon
	display stuff less kludgily.

svn path=/trunk/; revision=2684
2000-04-29 19:17:46 +00:00