aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-identify.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't trust gnome-vfs when it says "text/plain" ifDan Winship2001-08-221-18/+31
| | | | | | | | | | | * 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
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-231-2/+2
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* If the message data is online, sniff the data for a MIME type first, andDan Winship2001-05-251-27/+41
| | | | | | | | | | | * 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
* Cleaned up #includes. Remove unneccesary includes of <gnome.h>,Kjartan Maraas2001-03-301-0/+2
| | | | | | | | | | | 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
* Fix an uninitialized variable use.Dan Winship2001-01-271-4/+3
| | | | | | | * mail-identify.c (mail_identify_mime_part): Fix an uninitialized variable use. svn path=/trunk/; revision=7838
* Check if a message part's content is available, and if it's not, queue aDan Winship2001-01-261-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* camel_mime_part_get_filename now deals with both Content-Disposition andDan Winship2000-09-061-12/+0
| | | | | | | | | | * 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
* Remove workaround for gnome-vfs 0.2 bug.Dan Winship2000-08-121-26/+0
| | | | | | | | | | * 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
* Merge with camel-async.Peter Williams2000-08-111-1/+1
| | | | svn path=/trunk/; revision=4687
* Add a workaround for a small gnome-vfs 0.2 bug so we don't need to requireDan Winship2000-07-071-0/+26
| | | | | | | * 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
* Oops. My gnome-vfs was out-of-date. Update for changed function name.Dan Winship2000-07-061-2/+4
| | | | | | | * 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
* Use the gnomevfs sniff buffer interface to try to identify the MIME typeDan Winship2000-07-061-4/+23
| | | | | | | | | | | | | | * 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
* consolidate mail-format.h, mail-identify.h, mail-ops.h, main.h andDan Winship2000-05-071-3/+1
| | | | | | | | * 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
* Improve the builtin vs bonobo selection code. (handle_mystery): IncludeDan Winship2000-04-301-0/+82
* 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