aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
Commit message (Collapse)AuthorAgeFilesLines
* remove some debug.Not Zed2004-05-241-1/+3
| | | | | | | | | | | 2004-05-24 Not Zed <NotZed@Ximian.com> * em-folder-view.c (emfv_enable_menus): remove some debug. * em-format-html.c (efh_format_header): output commas between newsgroups, and also append_printf. svn path=/trunk/; revision=26060
* if we end up with an application/octet-stream part, pre-snoop it so we setNot Zed2004-05-191-27/+3
| | | | | | | | | | | | | | | | | | | 2004-05-19 Not Zed <NotZed@Ximian.com> * em-inline-filter.c (emif_add_part): if we end up with an application/octet-stream part, pre-snoop it so we set the right mime type to start with. Fixes #58554. * em-format.c (emf_snoop_part): removed, now in em-utils. * em-utils.c (em_utils_snoop_type): rah rah, snoop a mime part's type. * em-format-html.c (efh_text_plain): Revert jeff's fix for #56290. Ugh, we already have all the citation info in local data. Removed the need for gconf too. svn path=/trunk/; revision=25974
* make this match the efhd stuff.Not Zed2004-05-191-6/+11
| | | | | | | | | | | | | | | 2004-05-19 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_secure): make this match the efhd stuff. * em-format-html-display.c: removed stock_signature-nokey since it doesn't exist in gnome-icon-theme. (efhd_xpkcs7mime_button): if there is no signing, but encryption, use its icon. if there's no encryption too, use a broken icon (?). svn path=/trunk/; revision=25973
* Added header "X-Newsreader" for handle Outlook Express as Mailer.Cantona Su2004-05-191-1/+2
| | | | | | | | | 2004-05-18 Cantona Su <paradisetux@hotmail.com> * em-format-html.c: Added header "X-Newsreader" for handle Outlook Express as Mailer. svn path=/trunk/; revision=25965
* ** Quick fix for #57434Not Zed2004-05-181-1/+2
| | | | | | | | | | | | | | | | | | | | 2004-05-18 Not Zed <NotZed@Ximian.com> ** Quick fix for #57434 * em-format.c (emf_format_clone): fix the FIXME about cloning headers shown. * em-format-html.c (efh_format_headers): only show rupert if we're showing rupert. * em-format-html-print.c (efhp_init): default show_rupert to off. * em-format-html.c (efh_init): default show_rupert to on. * em-format-html.h: added show_rupert bit. svn path=/trunk/; revision=25953
* Same. Also changed the "Valid signature, cannot verify sender" string toJeffrey Stedfast2004-05-151-5/+9
| | | | | | | | | | | | | | 2004-05-14 Jeffrey Stedfast <fejj@novell.com> * em-format-html.c (efh_format_secure): Same. Also changed the "Valid signature, cannot verify sender" string to "Valid signature but cannot verify sender" as I think it reads nicer. * em-format-html-display.c (efhd_format_secure): Since signature status is a tri-state, use 3 different colours too (yellow for valid sig but unknown sender). svn path=/trunk/; revision=25906
* ** See bug #57720.Not Zed2004-05-051-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-05 Not Zed <NotZed@Ximian.com> ** See bug #57720. * em-folder-browser.c (emfb_create_view_menus): removed some stuff done in create_view_instance in the superclass. * em-folder-view.c (emfv_create_view_instance): moved here from em-folder-browser, setup the view instance for the folder. (emfv_set_folder): if the folder is set, create the view instance. * em-folder-browser.c: moved the galview instance and menu pointers to EMFolderView, since they're basically meta-data on the messagelist @ to fix issues. * em-folder-view.c (em_folder_view_open_selected): copy over the threaded list value when the message browser is brought up. ** some clean up * evolution-mail.schemas.in.in: removed xmailer_mask stuff. * em-migrate.c (mail_display_map[]): Removed xmailer_mask stuff. * em-folder-view.c (emfv_setting_notify): removed xmailer_mask stuff. * em-format-html.c (em_format_html_set_xmailer_mask): removed. This isn't used anymore. ** Fixes the double-draw on separate mail view. * message-list.c (on_cursor_activated_cmd): noop if the cursor and uid match for all cases (clearing uid). (on_selection_changed_cmd): noop if the cursor and new selection hasn't changed & fix a memleak. svn path=/trunk/; revision=25806
* set gtk_html_begin's flags to avoid scroll to top of the message andRadek Doulik2004-04-261-3/+3
| | | | | | | | | | | | | | | | 2004-04-26 Radek Doulik <rodo@ximian.com> * em-format-html.c (efh_format_timeout): set gtk_html_begin's flags to avoid scroll to top of the message and reloading+flickering of images * em-html-stream.c: added GtkHTMLBeginFlags flags field (em_html_stream_set_flags): new helper function to set new flags field (emhs_sync_write): use gtk_html_begin_full with new flags field (em_html_stream_new): zero flags field svn path=/trunk/; revision=25616
* fix the check to see if we've already loaded the images. #57450.Not Zed2004-04-231-1/+1
| | | | | | | | | 2004-04-23 Not Zed <NotZed@Ximian.com> * em-format-html.c (em_format_html_load_http): fix the check to see if we've already loaded the images. #57450. svn path=/trunk/; revision=25594
* Same.Jeffrey Stedfast2004-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-19 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (construct): Same. * message-list.c (message_list_init_images): Same. * mail-send-recv.c (build_dialog): Same. * mail-mt.c (do_op_status): Same. * mail-config-druid.c (evolution_mail_config_wizard_new): Same. * em-popup.c (em_popup_create_menu): Same. * em-format-html-display.c (efhd_format_prefix): Same. * em-format-html.c (efh_format_secure): Same as below. * em-folder-tree.c (render_pixbuf): Don't use absolute icon sizes, use the e-icon-factory enums. svn path=/trunk/; revision=25527
* Removed variables that got re-added with the icon-theme patch somehow.Jeffrey Stedfast2004-04-201-2/+2
| | | | | | | | | | | | 2004-04-19 Jeffrey Stedfast <fejj@ximian.com> * em-composer-prefs.h: Removed variables that got re-added with the icon-theme patch somehow. * em-account-prefs.c: Don't bother keeping global references to the enable_pixbuf anymore, since it's unnecessary. svn path=/trunk/; revision=25523
* mail-component.cMichael Terry2004-04-191-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-19 Michael Terry <mike@mterry.name> * GNOME_Evolution_Mail.server.in.in: * em-account-prefs.[ch]: * em-composer-prefs.[ch]: * em-folder-browser.c: * em-folder-tree.c: * em-folder-view.c: * em-format-html-display.c: * em-format-html.[ch]: * em-popup.c: * mail-component.c * mail-config-druid.c: * mail-config.glade: * mail-mt.c: * mail-send-recv.c: * message-list.c: * message-tag-followup.c: * message-tags.glade: Update the mailer to use icon themes through the EIconFactory object in e-util svn path=/trunk/; revision=25517
* reset load_http_now once we've done, should fix #56338 finally.Not Zed2004-04-131-0/+1
| | | | | | | | | | 2004-04-13 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_done): reset load_http_now once we've done, should fix #56338 finally. svn path=/trunk/; revision=25430
* use %% for %%.Not Zed2004-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2004-04-13 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_headers): use %% for %%. * em-folder-view.c (emfv_init, emfv_finalise, emfv_activate): revert dans' creatable items handler patch, moved to mail-component instead (which deals with the actual menu's). * mail-component.c (impl_createControls): setup a user creatable items handler on the view widget. (view_control_activate_cb): activate the user creatable items handler on the view widget. * em-folder-view.c (emfv_init): add a comment about jeff's last fix. * em-utils.c (forward_non_attached): Set attachments from forwardee before we set the body, otherwise images wont resolve properly. Related to #56566. svn path=/trunk/; revision=25428
* add width=16 height=16 to rupert's image so that it doesn't flicker/moveRadek Doulik2004-04-101-1/+1
| | | | | | | | | 2004-04-09 Radek Doulik <rodo@ximian.com> * em-format-html.c (efh_format_headers): add width=16 height=16 to rupert's image so that it doesn't flicker/move svn path=/trunk/; revision=25385
* add the monkey button if we're from evolution. See #52977. (emfh_gethttp):Not Zed2004-04-081-7/+25
| | | | | | | | | | 2004-04-08 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_headers): add the monkey button if we're from evolution. See #52977. (emfh_gethttp): cast away a warning. svn path=/trunk/; revision=25372
* ** See bug #56338.Not Zed2004-04-021-6/+6
| | | | | | | | | | | | | 2004-04-02 Not Zed <NotZed@Ximian.com> ** See bug #56338. * em-format-html.c (emfh_gethttp): fix the fugly "load http if" that doesn't work to be a fugly "load http if" that does work. (efh_format_timeout): dont set load_http_now here, its only an override now. svn path=/trunk/; revision=25296
* Only do citation colouring if the user has specified to do so and use theJeffrey Stedfast2004-04-011-3/+27
| | | | | | | | | | 2004-03-31 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (efh_text_plain): Only do citation colouring if the user has specified to do so and use the user's specified colour when appropriate. Fixes bug #56290. svn path=/trunk/; revision=25269
* Cleaned up header inclusions and added plenty of forward declarations.Not Zed2004-03-311-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-31 Not Zed <NotZed@Ximian.com> * *.[ch]: Cleaned up header inclusions and added plenty of forward declarations. Sped up complete re-compilation by upto 20%. ** See bug #55950. * em-utils.c (em_utils_in_addressbook): utility for checking if an email address is in the addressbook. I can't tell if it works 'cause it crashes eds. * em-format-html.c (emfh_gethttp): handle addressbook checking. 2004-03-30 Not Zed <NotZed@Ximian.com> * mail-config.h: clean up the headers and use some forward decl's instead. * em-format-html.c (em_format_html_set_load_http): change state to an int 'style' instead. * em-folder-view.c (emfv_setting_notify): set the format load http option to the config value directly. ** See bug #56147. * message-list.c (clear_info): set the node data to NULL when we unref its data. (ml_get_save_id): use a different test for the root node, and return NULL if we don't have any data on the node (because we're cleaing it). ** See bug #54962. * em-folder-tree.c (emft_popup_new_folder_response): put back the old hack to open the vfolder editor if you try to create a folder under vfolders. ** See bug #55940. * mail-autofilter.c (mail_filter_rename_uri): map the uri to an email uri before passing to filter code. (mail_filter_delete_uri): same here. svn path=/trunk/; revision=25261
* Use sizeof() to decide how big buffer is so that in the future, if weJeffrey Stedfast2004-03-241-1/+1
| | | | | | | | | | 2004-03-23 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (emfh_gethttp): Use sizeof() to decide how big buffer is so that in the future, if we change the length of bufefr, things will Just Work (tm). svn path=/trunk/; revision=25166
* use EM_FORMAT_HTML_VPADRadek Doulik2004-03-231-1/+1
| | | | | | | | | | | | | | | 2004-03-23 Radek Doulik <rodo@ximian.com> * em-format-html-display.c (efhd_format_attachment): use EM_FORMAT_HTML_VPAD * em-format-html.h (EM_FORMAT_HTML_VPAD): added new define for vertical padding * em-format-html.c (efh_format_message): change padding table so that it works OK with fixed gtkhtml svn path=/trunk/; revision=25156
* Add Newsgroups to the default header list.Not Zed2004-03-221-23/+43
| | | | | | | | | | | | | 2004-03-22 Not Zed <NotZed@Ximian.com> * em-format.c: * em-mailer-prefs.c: Add Newsgroups to the default header list. * em-format-html.c (efh_format_header): handle the newsgroups header, output news: url's. For bug #??? i can't recall, i closed it already! svn path=/trunk/; revision=25141
* format as plain text too.Not Zed2004-03-171-0/+31
| | | | | | | | | | | | | | 2004-03-17 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_message_deliverystatus): format as plain text too. * em-format.c (emf_message_deliverystatus): format delivery status messages as plain text, rather than as messages. since they wont be CamelMimeMessages. Maybe they should be silently hidden. svn path=/trunk/; revision=25098
* Fixed a bug where txt wasn't being properly initialised in all cases forJeffrey Stedfast2004-03-121-8/+24
| | | | | | | | | | | | | 2004-03-11 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (efh_format_header): Fixed a bug where txt wasn't being properly initialised in all cases for Date headers. Also fixed the x-evolution-mailer code to simply use the ehader->value that was passed in. (efh_format_headers): Fixed to handle the special X-Evolution-Mailer header. svn path=/trunk/; revision=25028
* pass the raw header in instead of name and value. (efh_format_headers): ifNot Zed2004-03-111-19/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_header): pass the raw header in instead of name and value. (efh_format_headers): if we have specific headers to show, iterate over all headers and print out all matching ones, so duplicate headers are properly displayed. Related to #55298. * em-folder-selector.c (em_folder_selector_construct): dont set this to be modal. otherwise you can't click on error popups. duh. 2004-03-08 Not Zed <NotZed@Ximian.com> * em-folder-selection-button.c (em_folder_selection_button_clicked): don't let the user select virtual/vtrash folders or non-selectable folders. * mail-component.c (impl_createControls): disable selection of non-select rows. * em-folder-selector.c (em_folder_selector_create_new): exclude folders with noinferiors set. * em-folder-tree.c (folder_tree_new): add folder tree arg, hook onto the selection funciton for the tree selection. (emft_select_func): selection override function. allow certain things to be excluded. (em_folder_tree_set_excluded): api to set what is excluded from the selectability. (emft_tree_row_activated): call emft_select_func check to see if this row is excluded before emitting an activated signal. * em-folder-tree-model.c (em_folder_tree_model_set_folder_info): save folder info->flags in the tree store. * mail-folder-cache.c (create_folders): use tail recursion. (get_folders): tail recurse. * (*): Fixed for api changes in camel. svn path=/trunk/; revision=25020
* Fix for bug #55298.Jeffrey Stedfast2004-03-111-14/+9
| | | | | | | | | | | | | | | 2004-03-10 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #55298. * em-format-html.c (efh_format_header): Now takes a default txt argument (header value). For address/date headers, if this isn't set, default back to the old behaviour of looking it up. (efh_format_headers): If we are iterating thru the camel raw headers, always pas the header value as the txt argument, otherwise always pass NULL. svn path=/trunk/; revision=25015
* Don't set our parent window as the efhd, ehfd isn't even a widget.Jeffrey Stedfast2004-03-061-1/+1
| | | | | | | | | | | | | | | | | 2004-03-05 Jeffrey Stedfast <fejj@ximian.com> * em-format-html-display.c (em_format_html_display_search): Don't set our parent window as the efhd, ehfd isn't even a widget. Fixes bug #54030 * em-format-html-display.c (efhd_search_response): Reset the searching tokeniser on Cancel. * e-searching-tokenizer.c (e_searching_tokenizer_reset): New function to reset a search tokeniser. svn path=/trunk/; revision=24977
* Make private (only EMFormatHTMLQuote used it and that class is no longerJeffrey Stedfast2004-02-071-20/+18
| | | | | | | | | | | | | 2004-02-06 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (efh_format_headers): Make private (only EMFormatHTMLQuote used it and that class is no longer in use). (efh_format_message): Updated for above change. * em-format-quote.c (emfq_format_message): Always write a \n after the credits line. svn path=/trunk/; revision=24661
* ** See bug #53258.Not Zed2004-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-06 Not Zed <NotZed@Ximian.com> ** See bug #53258. * em-format-html-display.c (efhd_find_handler): force any bonobo handler types to always be inline, even attachments. * em-format.c (em_format_is_inline): use handler flags for special cases, removing all hard-coded types. * em-format.h (EMFormatHandler): add a flags field, so far a flag to set default inline viewing of the content. 2004-02-06 Not Zed <NotZed@Ximian.com> * em-folder-properties.c: include string.h to kill warning. ** See bug #53627. * em-folder-view.c (emfv_popup_mark_junk): changed to work like delete does, jumping to the next message if required, and marking things immediately, then queuing up the junk marking job if required. * mail-ops.c (mail_mark_junk): ugh, this stuff totally can't go accessing messagelist from another thread!!!! Changed so this code only does the junk reporting, not setting flags. UGH! It should be doing this implictly on the folder when you set the flags, or at least when you sync the folder!!! Changed ot use the queued thread. * message-list.c (find_next_undeleted): changed to find next-unhidden, i.e. junk as well as deleted, if we're in hide-deleted mode. (build_tree): always call find_next_undeleted if we have a cursor. (build_flat): same. svn path=/trunk/; revision=24644
* ** See bug #53558 (plus other fixes/cleanups)Not Zed2004-01-301-109/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-30 Not Zed <NotZed@Ximian.com> ** See bug #53558 (plus other fixes/cleanups) * em-format.c (emf_format_secure): default implementation, handle output of inner part, but dont output any sign/encrypt info. (emf_multipart_signed, emf_multipart_encrypted): replaced with implementations from em-format-html.c, which now call em_format_format_secure to output guts. (emf_class_init): hook-up virtual method format_secure. * em-format.[ch]: add a virtual method for outputing secured parts. Moved all validity stuff from em-format-html.[ch] to here. * mail-component.c (impl_createControls): set the session interactive too. * em-format-html-display.c: make smime stuff dependent on HAVE_NSS. (efhd_multipart_signed, efhd_application_xpkcs7mime): removed, now handled by root class. (efhd_output_secure): renamed to efhd_format_secure, and use EMFormat::format_secure to kick off. (efhd_class_init): setup format_secure virtual method. * em-format-html.c (efh_multipart_encrypted): We need to handle this here so we can properly keep track of the ciphervalidity stuff. Also do it directly using the context, not multipartencrypted part. (efh_multipart_signed): with unsupported signature format, format as multipart/mixed, not as an attachment. (efh_multipart_signed): make the smime stuff optional. (efh_multipart_signed, efh_multipart_encrypted): Moved to em-format.c. (efh_application_xpkcs7mime): moved to em-format.c (efh_output_secure): renamed to efh_format_secure, linked into virtual method. call parent class to do the validation foo then output the info if needed. (efh_format_message): fixed access to validity stuff to parent object. (efh_class_init): hook up format_secure virtual method. (*): removed some now-unused headers. svn path=/trunk/; revision=24531
* Fixes a bug i can't find right nowNot Zed2004-01-291-1/+11
| | | | | | | | | | | | | | | | | | 2004-01-29 Not Zed <NotZed@Ximian.com> * em-format-html-display.c (efhd_attachment_button): check the snooped type for the icon/etc. (efhd_format_attachment): save the snooped type in the attach_puri. * em-format-html.c (efh_text_plain): If we had a snooped type, use that as the base type, rather than octet-stream, which will cause an attachment in attachment loop. * em-format.c (em_format_part_as): save the current snooped mime type in a stack if we had any. svn path=/trunk/; revision=24515
* ** See bug #53159.Not Zed2004-01-211-7/+8
| | | | | | | | | | | | | | | | | | | | | | 2004-01-21 Not Zed <NotZed@Ximian.com> ** See bug #53159. * em-format.c (emf_message_rfc822): removed incorrect comment, this is not a fallback. * em-format-html.c (efh_text_plain): check the content-type of the containee object, not the holder. ** See bug #52979. * em-format-html.c: take out text/x-patch and put in text/* for a text/plain fallback handler instead. * em-format-html-display.c (efhd_find_handler): allow the bonobo handlers to override the builtin ones. svn path=/trunk/; revision=24341
* properly decode the mailto url rather than treating it as a simple string.Not Zed2004-01-191-3/+12
| | | | | | | | | | | | | 2004-01-19 Not Zed <NotZed@Ximian.com> * em-folder-view.c (emfv_on_url_cb): properly decode the mailto url rather than treating it as a simple string. * em-format-html.c (efh_format_address): if we have a name part, add it to the mailto part. As per rfc2368. So it isn't lost for clicking/etc. svn path=/trunk/; revision=24298
* Dump a struct _camel_header_address to an html string.Jeffrey Stedfast2004-01-171-4/+51
| | | | | | | | | | | | 2004-01-16 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (efh_format_address): Dump a struct _camel_header_address to an html string. (efh_format_header): Use efh_format_address() and set the EM_FORMAT_HTML_HEADER_HTML bit on the flags so we don't re-convert our html string into html. svn path=/trunk/; revision=24280
* ** See bug #52891.Not Zed2004-01-151-2/+4
| | | | | | | | | | | 2004-01-15 Not Zed <NotZed@Ximian.com> ** See bug #52891. * em-format-html.c (em_format_html_get_type): protect against http cache not being able to be created. svn path=/trunk/; revision=24236
* ** See bugs #51609 and #43515.Not Zed2004-01-151-2/+4
| | | | | | | | | | | | | | | | | | 2004-01-15 Not Zed <NotZed@Ximian.com> ** See bugs #51609 and #43515. * em-format-html-display.c (efhd_format_prefix): output flag for followup details above the message. (efhd_write_image): added to output icon data. * em-format-html.c (efh_format_do): call format_prefix before outputting the message in normal display mode. * em-format.c (emf_format_prefix): method called to format data before the first message output. Default impl == noop. svn path=/trunk/; revision=24230
* ** See bug 51660.Not Zed2004-01-141-25/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-14 Not Zed <NotZed@Ximian.com> ** See bug 51660. * em-format-html-quote.c (efhq_multipart_related): setup part_id appropriately. * em-format-html-display.c (efhd_output_secure): use part_id in classid, and add .signed to part_id for subpart. (efhd_bonobo_unknown): use part_id in classid. (efhd_format_attachment): use part_id in classid's. * em-format-html.c (efh_multipart_related) (emfh_multipart_related_check): setup part_id for each subpart. (efh_output_secure): as above, and use the part_id for the classid. (em_format_html_add_pobject): use part_id for a generated classid. (efh_text_plain): setup pseudo-parts into part_id. * em-format.c (emf_format_clone): setup the part_id base, folder + uid. (emf_finalise): free the part_id gstring. (emf_init): allocate the part_id gstring. (em_format_add_puri): build the cid from the part_id rather than an arbitrary number, so it is more persistent. Also save the part_id in the puri for multipart/related use. (emf_multipart_mixed, emf_multipart_alternative) (emf_multipart_appledouble, emf_multipart_encrypted) (emf_multipart_related, emf_multipart_signed): Set the part_id for each subpart. (emf_clear_puri_node): free part_id. 2004-01-13 Not Zed <NotZed@Ximian.com> ** See bug 51660. * em-format-html-print.c (em_format_html_print_print): dont take message, get the message from the source formatter. * em-format.c (emf_format_clone): Added folder and uid parameters, changed camelmedium to a mimemessage. * em-format-html-display.c (efhd_attachment_button): check the icon image cache and if the image is there use it. * em-icon-stream.c (em_icon_stream_get_image): api to lookup finished images in cache. (em_icon_stream_new): add a cache key arg. (emis_sync_close): store the image in the cache once its completed. svn path=/trunk/; revision=24210
* ** See bug 52737.Not Zed2004-01-121-1/+1
| | | | | | | | | | | 2004-01-12 Not Zed <NotZed@Ximian.com> ** See bug 52737. * em-format-html.c (efh_text_plain): treat text/* as inline content from the made-up multipart. svn path=/trunk/; revision=24159
* keep the windows charset filter around until we're done since if we set itNot Zed2004-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2004-01-09 Not Zed <NotZed@Ximian.com> * em-format.c (em_format_format_text): keep the windows charset filter around until we're done since if we set it up we reference its memory. Causes warnings and breaks message display. ** See bug #52637. * em-inline-filter.c (em_inline_filter_new): added a content-type paramter for the base content type. (em_inline_filter_finalize): free base content type. (emif_types[]): Added 'plain' parameter, indicates type needs plain parameters set on content type. (emif_add_part): inherit the full base type if it is set, for plain parts. * em-format-html.c (efh_text_plain): pass the part's content-type to the inline filter. svn path=/trunk/; revision=24121
* Removed. (efh_format_header): Handle address formatting a littleJeffrey Stedfast2004-01-081-90/+111
| | | | | | | | | | | 2004-01-07 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (efh_format_address): Removed. (efh_format_header): Handle address formatting a little differently to address dwmw's complaints. Also now handles other headers such as Resent-* and Sender as well. svn path=/trunk/; revision=24090
* ** See bug #52108.Not Zed2003-12-121-0/+1
| | | | | | | | | | | | | | | | 2003-12-12 Not Zed <NotZed@Ximian.com> ** See bug #52108. * em-format.c (em_format_is_attachment): also recognise application/pkcs7-mime for mailers who like to make up their own standards. * em-format-html.c (type_builtin_table[]): * em-format-html-display.c (type_builtin_table[]): make recognise application/pkcs7-mime too. svn path=/trunk/; revision=23931
* display x-evolution-mailer pseudo header irrespective of xmailer_mask.Grahame Bowland2003-12-111-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-11 Grahame Bowland <grahame@angrygoats.net> * em-format-html.c (efh_format_header): display x-evolution-mailer pseudo header irrespective of xmailer_mask. This is now handled by a header configuration dialog. * mail-config.glade: add tab to mail configuration dialog to allow custom headers to be specified for display. * em-mailer-prefs.h: modify struct _EMMailerPrefs to add widgets for custom header tab. Add defines for custom header flags. Add struct EMMailerCustomHeader to describe custom headers, and add function em_mailer_custom_headers_from_xml to allow XML from gconf key to be parsed into this structure. * em-folder-view.c (emfv_setting_notify): catch changes to custom header gconf key and update mail view to correspond * em-mailer-prefs.c (em_mailer_prefs_apply): save custom headers to gconf (header_list_enabled_toggled): toggle clicked toggle column (add_header): add header to custom header list if valid (remove_header): remove selected custom header (is_valid_header): return true if passed header is valid, otherwise false (entry_header_changed): call add_header_update_sensitivity (em_mailer_prefs_construct): initialise header selection tab. Load gconf data for header selection dialog. (em_mailer_custom_header_to_xml): load a header structure from XML document structure (em_mailer_custom_header_from_xml): load a header structure from a string containing valid XML. if any failure, the header.name is set to NULL. (header_list_row_selected): call remove_header_update_sensitivity (remove_header_update_sensitivity): set the sensitivity of the remove button to FALSE if the list is empty or nothing is selected. Otherwise, set it to TRUE. (add_header_update_sensitivity): set the sensitivity of the the add button to FALSE if the entry box is empty, contains a duplicate header, or contains an invalid header. Otherwise, set it to TRUE. * evolution-mail.schemas.in.in: add mail/display/headers svn path=/trunk/; revision=23924
* (efh_text_enriched): add table around the enriched part so itLarry Ewing2003-12-111-2/+10
| | | | | | matches html and text modes. svn path=/trunk/; revision=23922
* add text/x-patch as a plain type.Larry Ewing2003-12-111-0/+1
| | | | | | | | 2003-12-10 Larry Ewing <lewing@ximian.com> * em-format-html.c: add text/x-patch as a plain type. svn path=/trunk/; revision=23918
* treat application/pkcs7-signature as application/x-pkcs-signature. StupudNot Zed2003-12-101-1/+2
| | | | | | | | | | | | 2003-12-10 Not Zed <NotZed@Ximian.com> * em-format-html-display.c (efhd_multipart_signed): * em-format-html.c (efh_multipart_signed): * em-format.c (emf_multipart_signed): treat application/pkcs7-signature as application/x-pkcs-signature. Stupud non-rfc-compliant mailers from apple. Bug #51750. svn path=/trunk/; revision=23907
* set session on print formatter for signatures to work.Not Zed2003-11-251-141/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-25 Not Zed <NotZed@Ximian.com> * em-folder-view.c (em_folder_view_print): set session on print formatter for signatures to work. * em-message-browser.c (emmb_destroy): kill warning. * em-format-html.c (efh_output_secure): same as efhd_output_secure, output the security bar, but for printing/plain html. (efh_application_xpkcs7mime): use output_secure. (em_format_html_multipart_signed_sign): removed, output_secure does what this did. * em-format-html-display.c (smime_sign_table, smime_encrypt_table): Added a short description for the mail display. (efhd_xpkcs7mime_button): only good/bad signature at this point, if only encrypted, then display 'bad' icon. (efhd_output_secure): output the security bar/button and handle multi-level enveloping properly. (efhd_application_xpkcs7mime): just call output_secure to do the security bar. (efhd_multipart_signed): same. (efhd_signature_button): removed, no longer used. (efhd_signature_check): removed, no longer used. svn path=/trunk/; revision=23483
* use new colors (efh_text_html): dittoRadek Doulik2003-11-241-7/+11
| | | | | | | | | | | | | | | | 2003-11-24 Radek Doulik <rodo@ximian.com> * em-format-html.c (efh_text_plain): use new colors (efh_text_html): ditto * em-format-html-display.c (efhd_gtkhtml_realise): set new colors according to style * em-format-html.c (efh_init): init new colors * em-format-html.h: added frame and content colors svn path=/trunk/; revision=23477
* do not use horizonal rule, attachment content is now inside simple frameRadek Doulik2003-11-241-21/+28
| | | | | | | | | | | | | | | | | | | | 2003-11-24 Radek Doulik <rodo@ximian.com> * em-format.c (emf_multipart_mixed): do not use horizonal rule, attachment content is now inside simple frame * em-format-html.c (efh_text_plain): add 6 points around text plain content and frame it (efh_text_html): frame text/html (efh_format_do): fix body tag, set bgcolor (em_format_html_format_headers): do not put headers into own table, content body is framed now instead (efh_format_message): update for headers/body changes * em-format-html-display.c (efhd_format_attachment): put additional vertical space around attachment button svn path=/trunk/; revision=23474
* use malloc0 for the pobject memory.Not Zed2003-11-131-1/+1
| | | | | | | | | 2003-11-13 Not Zed <NotZed@Ximian.com> * em-format-html.c (em_format_html_add_pobject): use malloc0 for the pobject memory. svn path=/trunk/; revision=23313
* implement the key selector popup using e-cert-selector.Not Zed2003-11-131-7/+109
| | | | | | | | | | | | | | | | | | | | | | 2003-11-12 Not Zed <NotZed@Ximian.com> * mail-account-gui.c (smime_sign_key_select) (smime_encrypt_key_select, smime_encrypt_key_selected) (smime_sign_key_selected): implement the key selector popup using e-cert-selector. 2003-11-11 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_application_xpkcs7mime): output icons of the status. (em_format_html_add_pobject): Changed to take a size specificier, return the pobject, and re-ordered args to be more consistent with puri stuff. (em_format_html_remove_pobject): handle the free callback if set. * em-format.c (emf_application_xpkcs7mime): moved this to em-format-html since it needs to do icon stuff. svn path=/trunk/; revision=23312
* changed for cipher context api changes. ditto.Not Zed2003-11-101-6/+2
| | | | | | | | | | | | | | | | | | | | 2003-11-10 Not Zed <NotZed@Ximian.com> * em-format-html.c (em_format_html_multipart_signed_sign): changed for cipher context api changes. * em-format.c (emf_multipart_signed): ditto. 2003-11-07 Not Zed <NotZed@Ximian.com> * mail-config.glade: added security_information_dialog (probably temporarily in this file). * em-format.c (em_format_is_attachment): also treat pkcs7-mime as non-attachment. (emf_application_xpkcs7mime): no longer need to worry about scanning the part. svn path=/trunk/; revision=23243
* show application/x-pkcs7-mime inline always by default.Not Zed2003-10-301-9/+23
| | | | | | | | | | | | | | | | | | | | | | 2003-10-30 Not Zed <NotZed@Ximian.com> * em-format.c (em_format_is_inline): show application/x-pkcs7-mime inline always by default. 2003-10-30 Not Zed <NotZed@Ximian.com> * em-format.c (emf_multipart_signed): handle application/x-pkcs7-signature. 2003-10-29 Not Zed <NotZed@Ximian.com> * em-format-html.c (em_format_html_multipart_signed_sign): handle application/x-pkcs7-signature. * em-format.c (emf_application_xpkcs7mime): Handle application/x-pkcs7-mime. svn path=/trunk/; revision=23129
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-3/+5
| | | | svn path=/trunk/; revision=22964
* zero out last_part if we're clearing. Uh, this fixes, but shouldn't, partNot Zed2003-10-021-0/+1
| | | | | | | | | | | | | | | | | | 2003-10-02 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_timeout): zero out last_part if we're clearing. Uh, this fixes, but shouldn't, part of #49034. The problem is the 'last part' logic is based on the address, which can quite easily be repeated for different messages. * em-folder-view.c (emfv_list_message_selected): reverted jeff's patch for #48618, use a much simpler method. * em-message-browser.c (emmb_destroy): hook onto destroy handler, we need to destroy the messagelist ourselves, since we dont attach it to any parent window. svn path=/trunk/; revision=22785
* turn off blocking writes. (efh_format_timeout): don't do a htmlbegin onNot Zed2003-10-021-14/+10
| | | | | | | | | | | | | | | | | 2003-10-01 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_init): turn off blocking writes. (efh_format_timeout): don't do a htmlbegin on the page yet, it'll be handled by em-html-stream when it has data, to reduce flicker. (efh_format_do): close the main gtkhtml stream as soon as we're done writing the body. any sub-jobs should be using frames etc. (efh_text_plain): dont write a table around the text, try to reduce flickering. layout may be out now though. * em-html-stream.c (emhs_sync_write): if we have no html_stream yet, begin a new one. svn path=/trunk/; revision=22784
* remove gconf stuff. (em_format_html_set_xmailer_mask): new method to setNot Zed2003-09-301-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-09-30 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_init): remove gconf stuff. (em_format_html_set_xmailer_mask): new method to set the xmailer mask. * em-folder-view.c (emfv_display_keys[]): Added charset key to monitor/retrieve, and xmailer_mask. (emfv_setting_notify): Monitor charset setting, pass onto the formatter, as well as xmailer_mask. * mail-preferences.c (mail_preferences_construct): use the new charset key. (mail_preferences_apply): use the new charset key. * evolution-mail.schemas: Moved the mail/format/charset to mail/display/charset. 1. it makes more sense, and 2. it makes notification update easier in em-folder-view.c * em-format.c (emf_init): remove the gconf charset stuff, for bug #48791, and also actually fixes the fixme that jeff thought he fixed. (em_format_format_text): use default charset as fallback. (em_format_set_default_charset): New method to set the default charset. (gconf_charset_changed): removed. svn path=/trunk/; revision=22768
* use gtkhtml's blockingRadek Doulik2003-09-191-0/+1
| | | | | | | | 2003-09-18 Radek Doulik <rodo@ximian.com> * em-format-html.c (efh_init): use gtkhtml's blocking svn path=/trunk/; revision=22622
* updated for camel namespace changesJeffrey Stedfast2003-09-191-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-09-18 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c: updated for camel namespace changes * em-folder-view.c: updated for camel namespace changes * em-format-html-display.c: updated for camel namespace changes * em-format-html-quote.c: updated for camel namespace changes * em-format.c: updated for camel namespace changes * em-popup.c: updated for camel namespace changes * em-utils.c: updated for camel namespace changes * mail-autofilter.c: updated for camel namespace changes * mail-ops.c: updated for camel namespace changes * mail-session.c: updated for camel namespace changes * message-list.c: updated for camel namespace changes * message-tag-followup.c: updated for camel namespace changes * importers/evolution-mbox-importer.c: updated for camel namespace changes 2003-09-18 Jeffrey Stedfast <fejj@ximian.com> * em-popup.c (emp_standard_menu_factory): Don't forget to initialise/increment 'i' when using it as an object id in the for-loop. * em-format.c (em_format_format_text): Initialise charset to NULL or it may be used uninitialised. Also include gnome-vfs-mime-handlers.h for gnome_vfs_mime_type_get_description(). svn path=/trunk/; revision=22610
* cvs removed.Not Zed2003-09-181-0/+1542
2003-09-17 Not Zed <NotZed@Ximian.com> * folder-browser.c, folder-browser.h, folder-browser-ui.c folder-browser-ui.h, mail-callbacks.c, mail-callbacks.h mail-display.c, mail-display.h, mail-display-stream.c mail-display-stream.h, mail-format.c, mail-format.h mail-identify.c, mail-search.c, mail-search.h message-browser.c, message-browser.h, subscribe-dialog.c subscribe-dialog.h, mail-font-prefs.c, mail-font-prefs.h: cvs removed. * Makefile.am: Removed mail-font-prefs.[ch], hasn't been built for ages. * em-*.c: killed a bunch of printfs. * em-format-html-display.c (efhd_html_button_press_event): update for html object api chagnes. ** Merge in mail-refactor-2 branch. svn path=/trunk/; revision=22602