/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Authors: Michael Zucchi * * Copyright 2003 Ximian, Inc. (www.ximian.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * */ /* Concrete class for formatting mails to html */ #ifndef _EM_FORMAT_HTML_H #define _EM_FORMAT_HTML_H #include "em-format.h" typedef struct _EMFormatHTML EMFormatHTML; typedef struct _EMFormatHTMLClass EMFormatHTMLClass; #if 0 struct _EMFormatHTMLHandler { EFrormatHandler base; }; #endif struct _GtkHTMLEmbedded; struct _CamelMimePart; struct _CamelMedium; struct _CamelStream; /* A HTMLJob will be executed in another thread, in sequence, It's job is to write to its stream, close it if successful, then exit */ typedef struct _EMFormatHTMLJob EMFormatHTMLJob; struct _EMFormatHTMLJob { struct _EMFormatHTMLJob *next, *prev; EMFormatHTML *format; struct _CamelStream *stream; /* We need to track the state of the visibility tree at the point this uri was generated */ struct _EMFormatPURITree *puri_level; struct _CamelURL *base; void (*callback)(struct _EMFormatHTMLJob *job, int cancelled); union { char *uri; struct _CamelMedium *msg; EMFormatPURI *puri; struct _EMFormatPURITree *puri_level; void *data; } u; }; /* Pending object (classid: url) */ typedef struct _EMFormatHTMLPObject EMFormatHTMLPObject; typedef gboolean (*EMFormatHTMLPObjectFunc)(EMFormatHTML *md, struct _GtkHTMLEmbedded *eb, EMFormatHTMLPObject *pobject); struct _EMFormatHTMLPObject { struct _EMFormatHTMLPObject *next, *prev; struct _EMFormatHTML *format; char *classid; EMFormatHTMLPObjectFunc func; struct _CamelMimePart *part; }; #define EM_FORMAT_HTML_HEADER_NOCOLUMNS (EM_FORMAT_HEADER_LAST) #define EM_FORMAT_HTML_HEADER_HTML (EM_FORMAT_HEADER_LAST<<1) /* header already in html format */ #define EM_FORMAT_HTML_HEADER_LAST (EM_FORMAT_HEADER_LAST<<8) /* xmailer_mask bits */ #define EM_FORMAT_HTML_XMAILER_EVOLUTION (1<<0) #define EM_FORMAT_HTML_XMAILER_OTHER (1<<1) #define EM_FORMAT_HTML_XMAILER_RUPERT (1<<2) struct _EMFormatHTML { EMFormat format; struct _EMFormatHTMLPrivate *priv; struct _GtkHTML *html; EDList pending_object_list; GSList *headers; guint32 text_html_flags; /* default flags for text to html conversion */ guint32 header_colour; /* header box colour */ guint32 text_colour; guint32 citation_colour; unsigned int xmailer_mask:4; unsigned int load_http:1; unsigned int load_http_now:1; unsigned int mark_citations:1; unsigned int simple_headers:1; /* simple header format, no box/table */ unsigned int hide_headers:1; /* no headers at all */ }; struct _EMFormatHTMLClass { EMFormatClass format_class; }; GType em_format_html_get_type(void); EMFormatHTML *em_format_html_new(void); void em_format_html_load_http(EMFormatHTML *emf); void em_format_html_set_load_http(EMFormatHTML *emf, int state); void em_format_html_set_mark_citations(EMFormatHTML *emf, int state, guint32 citation_colour); void em_format_html_set_xmailer_mask(EMFormatHTML *emf, unsigned int xmailer_mask); /* output headers */ void em_format_html_format_headers(EMFormatHTML *efh, struct _CamelStream *stream, struct _CamelMedium *part); /* retrieves a pseudo-part icon wrapper for a file */ struct _CamelMimePart *em_format_html_file_part(EMFormatHTML *efh, const char *mime_type, const char *path, const char *name); /* for implementers */ const char *em_format_html_add_pobject(EMFormatHTML *efh, const char *classid, EMFormatHTMLPObjectFunc func, struct _CamelMimePart *part); EMFormatHTMLPObject * em_format_html_find_pobject(EMFormatHTML *emf, const char *classid); EMFormatHTMLPObject *em_format_html_find_pobject_func(EMFormatHTML *emf, struct _CamelMimePart *part, EMFormatHTMLPObjectFunc func); void em_format_html_remove_pobject(EMFormatHTML *emf, EMFormatHTMLPObject *pobject); void em_format_html_clear_pobject(EMFormatHTML *emf); EMFormatHTMLJob *em_format_html_job_new(EMFormatHTML *emfh, void (*callback)(struct _EMFormatHTMLJob *job, int cancelled), void *data) ; void em_format_html_job_queue(EMFormatHTML *emfh, struct _EMFormatHTMLJob *job); /* outputs a signature test */ void em_format_html_multipart_signed_sign(EMFormat *emf, struct _CamelStream *stream, struct _CamelMimePart *part); #endif /* ! EM_FORMAT_HTML_H */ 1/+5 * Make the main dialog here be an actual GtkDialog instead of a GtkWindowRodney Dawes2004-08-033-1306/+1294 * Fixed to work for both LE and BE architectures.Jeffrey Stedfast2004-08-032-18/+20 * Updated Czech translation.Miloslav Trmac2004-08-032-188/+253 * Update to just call us "Evolution" and be more accurate about the newJP Rosevear2004-08-022-173/+57 * updateAmanpreet Singh Alam2004-08-021-1954/+1550 * Fixes #57622Rodrigo Moya2004-08-028-69/+224 * ankit@redhat.com 02/08/04Ankitkumar Rameshchandra Patel2004-08-021-368/+456 * added last_version item.JP Rosevear2004-08-027-86/+260 * Updated Catalan translation by Xavier Conde Rueda <xaviconde@eresmas.com>.Jordi Mallach2004-08-012-6487/+3948 * creating new items no longer needs to be disabled since the user canJP Rosevear2004-08-012-4/+10 * use Invitations not Meetings (event_editor_edit_comp): dittoJP Rosevear2004-08-012-2/+8 * guard with is_instance instead of has_recurrences because most of theJP Rosevear2004-08-013-8/+22 * Updated British English translationGareth Owen2004-07-312-30/+45 * Updated Hungarian translation.Laszlo Dvornik2004-07-312-576/+667 * This needs to prequeue the CAPABILITY command rather than queue itJeffrey Stedfast2004-07-313-4/+12 * fixed sed-o's (s/IMAP44/IMAP4/g)Jeffrey Stedfast2004-07-312-10/+10 * blehJeffrey Stedfast2004-07-311-0/+1 * [ fixes #61365 and other misc issues with the addressbook source editors ]Chris Toshok2004-07-315-21/+151 * Similar fix as below in a later if-statement. Thanks to Suresh forJeffrey Stedfast2004-07-302-1/+7 * yet to completeN Jayaradha2004-07-301-897/+1027 * Handle E_CALENDAR_STATUS_BUSY conditions and do notHarish Krishnaswamy2004-07-303-0/+19 * hide dialog items that don't apply when editing properties.Larry Ewing2004-07-302-3/+29 * ankit@redhat.com 30/07/04Ankitkumar Rameshchandra Patel2004-07-301-380/+420 * Updated French translation.Christophe Merlet2004-07-302-1362/+1303 * Updated Spanish translation.Francisco Javier F. Serrador2004-07-302-651/+714 * Fixed an ABR that may have been responsible for bug #62029.Jeffrey Stedfast2004-07-292-18/+23 * ankit@redhat.com 29/07/04Ankitkumar Rameshchandra Patel2004-07-291-680/+707 * yet to completeN Jayaradha2004-07-291-511/+570 * add the error message needed for groupwise account setupSivaiah Nallagatla2004-07-292-0/+9 * Add an entry to specify POA address and a check box to say whehter ssl hasSivaiah Nallagatla2004-07-294-120/+273 * ** See #61958.Not Zed2004-07-292-27/+55 * Updated British English translationGareth Owen2004-07-292-503/+627 * Updated Norwegian translation.Kjartan Maraas2004-07-292-593/+704 * Fixes for api changes in mail/ for 61940.Not Zed2004-07-292-5/+9 * Fixes #62006JP Rosevear2004-07-292-1/+10 * Updated Albanian translation.Laurent Dhima2004-07-292-468/+648 * Changed the logic slightly to only match certain charsets if the localeJeffrey Stedfast2004-07-292-7/+20 * ** See #61940.Not Zed2004-07-287-20/+58 * yet to completeN Jayaradha2004-07-281-494/+528 * ankit@redhat.com 28/07/04Ankitkumar Rameshchandra Patel2004-07-281-394/+439 * ankit@redhat.com 28/07/04Ankitkumar Rameshchandra Patel2004-07-281-0/+18886 * Updated Korean translationChangwoo Ryu2004-07-282-255/+265 * ** See bug #61841.Not Zed2004-07-282-1/+10 * downloaded from net -conflictN Jayaradha2004-07-281-764/+821 * ** See #57972.Not Zed2004-07-285-99/+178 * Changed to be the same prototype as engine_queue().Jeffrey Stedfast2004-07-284-40/+67 * added len parameter to em_utils_part_to_html and em_utils_message_to_html.Radek Doulik2004-07-284-8/+21 * removed unused static variable listener_vepvRadek Doulik2004-07-285-19/+55 * Updated Czech translation.Miloslav Trmac2004-07-272-193/+214 * do not set transport object for groupwise provider. We want user to useSivaiah Nallagatla2004-07-272-6/+10 * yet to complete-2300N Jayaradha2004-07-271-691/+710 * commit commitN Jayaradha2004-07-271-243/+243 * Fixes #61058JP Rosevear2004-07-272-5/+48 * Don't instantiate an engine here. Instead, take an engine as an argumentJeffrey Stedfast2004-07-274-85/+77 * Updated Norwegian Nynorsk translation.Åsmund Skjæveland2004-07-271-150/+49 * Updated Norwegian Nynorsk translation.Åsmund Skjæveland2004-07-272-2274/+572 * Fix mnemonic for "Location" to not be duplicated with "OK"Rodney Dawes2004-07-275-225/+176 * change contacts group to address bookJP Rosevear2004-07-263-5/+13 * set a different title if we are editing; de-sensitize option menu if weJP Rosevear2004-07-265-19/+53 * use ctrl-shift-q to clear search barJP Rosevear2004-07-262-1/+6 * Updated Polish translation by GNOME PL Team.Artur Flinta2004-07-262-640/+659 * Fixes #59983 If the ecal component is already loaded, check for thepchenthill2004-07-262-2/+39 * file modified 883N Jayaradha2004-07-261-618/+658 * fuzzy removeAmanpreet Singh Alam2004-07-261-984/+511 * merged this into e_shell_create_window, all it was doing was adding aNot Zed2004-07-262-24/+15 * dont call e_error_default parent here, we dont have access to the toplevelNot Zed2004-07-262-2/+6 * ** See bug #61824.Not Zed2004-07-265-74/+60 * new fileN Jayaradha2004-07-261-0/+18809 * Added 'he' (Hebrew) to ALL_LINGUAS.Gil Osher2004-07-261-0/+4 * Add 'he' (Hebrew) to ALL_LINGUAS.Gil Osher2004-07-261-1/+1 * Added Hebrew translation.Gil Osher2004-07-261-0/+4 * Added Hebrew translation.Gil Osher2004-07-261-0/+18826 * Fixes #61571JP Rosevear2004-07-242-1448/+32 * Fixes #61760JP Rosevear2004-07-242-7/+11 * Updated Czech translation.Miloslav Trmac2004-07-242-272/+276 * watch for selection changes and set Delete button sensitivity according toRadek Doulik2004-07-241-0/+21 * Use stock_mail-import instead of stock_import? *shrug* Fixes bug #61778.Jeffrey Stedfast2004-07-242-1/+7 * Updated Norwegian Nynorsk translation.Åsmund Skjæveland2004-07-232-9/+1 * Updated Norwegian Nynorsk translation.Åsmund Skjæveland2004-07-232-942/+758 * Retracting the commit made below for #59983 as it has results in crashpchenthill2004-07-232-31/+7 * Fixes #59983 If the ecal component is already loaded, check for thepchenthill2004-07-232-2/+39 * set the session on the formatter. See #61767.Not Zed2004-07-234-12/+33 * ** See bug #61761.Not Zed2004-07-232-2/+29 * Updated Korean translation.Changwoo Ryu2004-07-232-300/+377 * Good enough for government work.Aaron Weber2004-07-234-223/+366 * fix the row heights and tweek the offsets so that things come out OK.Larry Ewing2004-07-232-11/+39 * removed body content + signature html concatenating and callRadek Doulik2004-07-232-22/+12 * Variety of updatesAaron Weber2004-07-235-938/+599 * but buttons to button box, use vbox instead of tableRadek Doulik2004-07-225-51/+53 * Fixes #61776JP Rosevear2004-07-222-3/+11 * Fixes #61738JP Rosevear2004-07-222-4/+19 * Fixes #61779JP Rosevear2004-07-223-0/+16 * Very small fixMarco Ciampa2004-07-221-3/+1 * Updated italian translationMarco Ciampa2004-07-222-1008/+380 * include config.h. See #61395.Not Zed2004-07-222-0/+8 * include config.h. See #61395.Not Zed2004-07-222-0/+8 * include config.h. See #61395.Not Zed2004-07-222-0/+8 * include config.h. See #61395.Not Zed2004-07-228-0/+38 * include config.h #61395.Not Zed2004-07-224-0/+18 * [ fixes #60508 ]Chris Toshok2004-07-223-40/+34 * Give a reasonable name to the widget for the _Where labelRodney Dawes2004-07-223-2/+14 * Add MimeType line to desktop file new mime sytem.Ray Strode2004-07-222-0/+5 * Free result after parsing it. Fixes a leak.Jeffrey Stedfast2004-07-212-0/+6 * Free uri and name strings. Fixes a leak.Jeffrey Stedfast2004-07-212-0/+7 * svn path=/trunk/; revision=26684Updated ja.po. T.Aihana2004-07-212-123/+226 * Updated Brazilian Portuguese translation done by Gustavo Maciel DiasGustavo Maciel Dias Vieira2004-07-212-2344/+597 * remove protoJP Rosevear2004-07-213-41/+24 * don't set the toggle selectionJP Rosevear2004-07-212-2/+8 * Updated Czech translation.Miloslav Trmac2004-07-202-64/+165 * only copy 5 chars after the F if we actually have "From ", otherwise weNot Zed2004-07-202-9/+9 * Fixes #61451JP Rosevear2004-07-202-4/+25 * bump version, requirementsJP Rosevear2004-07-2053-19505/+22886 * [ fixes #61490 ]Chris Toshok2004-07-202-5/+11 * Check source book writeability directly instead of relying on storedHans Petter Jansson2004-07-203-35/+64 * use short month forms to limit the maximum width of the label.Larry Ewing2004-07-202-7/+12 * Added some debug stuff.Not Zed2004-07-192-3/+64 * UPdated Spanish translation.Francisco Javier F. Serrador2004-07-182-304/+463 * Updated Hungarian translation by Gabor Kelemen.Laszlo Dvornik2004-07-182-2515/+1876 * Don't grab the connect_lock before calling refresh_info so that we avoidJeffrey Stedfast2004-07-172-2/+6 * Chck that the selection is active. Hopefully this will fix bug #61427.Jeffrey Stedfast2004-07-172-12/+15 * Updated Czech translation.Miloslav Trmac2004-07-162-8/+16 * Fixes #57142Rodrigo Moya2004-07-164-4/+19 * Updated Bulgarian translation by Vladimir "Kaladan" PetkovAlexander Shopov2004-07-162-3087/+2324 * [ fixes #60873, and possibly other crashes ]Chris Toshok2004-07-162-1/+11 * remove debug spew and fix the display when pango_layout_line_x_to_indexChris Toshok2004-07-162-10/+11 * Fixes #61572JP Rosevear2004-07-163-350/+15 * Fixes #60678JP Rosevear2004-07-152-8/+15 * ignore Evolution-Addressbook-SelectNames.h.Chris Toshok2004-07-154-2/+25 * Updated Czech translation.Miloslav Trmac2004-07-152-216/+236 * Updated Korean translation.Changwoo Ryu2004-07-151-284/+418 * Updated Korean translation.Changwoo Ryu2004-07-151-7/+7 * Updated Korean translation.Changwoo Ryu2004-07-152-441/+349 * Fix for bug #61538Jeffrey Stedfast2004-07-153-2/+10 * fixed all the wayJeffrey Stedfast2004-07-151-3/+3 * fixed changelogJeffrey Stedfast2004-07-151-11/+10 * debugify a few more printfsDan Winship2004-07-141-3/+3 * free return value from e_mkdtempDan Winship2004-07-142-3/+10 * un-const the return values, since they need to be freed (d): turn offDan Winship2004-07-143-10/+16 * Fixes #57287, 58748JP Rosevear2004-07-1413-99/+500 * [ fixes #56657 ]Rodney Dawes2004-07-142-16/+16 * Remove glossterms in favor of links; add a lot more edits, specialAaron Weber2004-07-1411-336/+344 * s/GB-2312/GB2312/ - fixes bug #61385.Jeffrey Stedfast2004-07-132-1/+5 * Updated Korean translation.Changwoo Ryu2004-07-132-662/+358 * Updated Norwegian translation.Kjartan Maraas2004-07-132-254/+350 * update Russian translationLeonid Kanter2004-07-132-56/+37 * reverted unwanted changeRadek Doulik2004-07-131-4/+0 * reverted unwanted changeRadek Doulik2004-07-131-0/+4 * reverted unwanted changeRadek Doulik2004-07-132-6/+0 * as belowRadek Doulik2004-07-136-14/+34 * added e_table_model_pre_change because we call e_table_model_row_insertedRadek Doulik2004-07-131-0/+2 * : pass "use_ssl" value to these functions and set it on e-sourceSivaiah Nallagatla2004-07-133-40/+128 * Updated Simplified Chinese translationFunda Wang2004-07-132-592/+388 * ** This is no guarantee of security, but its just a helper to prevent oldNot Zed2004-07-136-12/+95 * [ fixes #61299 ]Chris Toshok2004-07-132-3/+12 * [ part of fix for bug #56520 ]Chris Toshok2004-07-133-31/+53 * Add this callback so we can set the paned position on realizeRodney Dawes2004-07-132-8/+29 * Update the layout of the dialog to be more usableRodney Dawes2004-07-132-6/+30 * 12/7/04 aman <amanlinux@netscape.net>add fileAmanpreet Singh Alam2004-07-121-0/+19756 * busy should be opaque, not transparentJürg Billeter2004-07-122-1/+6 * updated Russian translationLeonid Kanter2004-07-121-0/+4 * update Russian translationLeonid Kanter2004-07-121-4724/+3427 * UpdatedLaurent Dhima2004-07-111-303/+248 * Translation updated by Daniel van Eeden.Vincent van Adrighem2004-07-102-92/+187 * only call expunge if the folder is set. (emfb_enable_map[]): only enableNot Zed2004-07-107-63/+219 * Revert my patches from July 5th and 6th.Rodrigo Moya2004-07-102-6/+17 * Updated Korean translationChangwoo Ryu2004-07-101-43/+22 * UpdatedLaurent Dhima2004-07-101-807/+662 * Updated Korean translation.Changwoo Ryu2004-07-102-1446/+260 * Add an argument for the event_num so we can get the event object Draw theRodney Dawes2004-07-103-8/+56 * Fixes #60289Rodrigo Moya2004-07-103-3/+39 * svn path=/trunk/; revision=26607Updated ja.po. T.Aihana2004-07-092-652/+334 * Fix for bug #61199.Jeffrey Stedfast2004-07-093-11/+26 * tarball should ship .schemas.in.in files, not generated files.Frédéric Crozat2004-07-092-1/+6 * tarball should ship .schemas.in.in files, not generated files.Frédéric Crozat2004-07-093-2/+10 * tarball should ship .schemas.in.in files, not generated files.Frédéric Crozat2004-07-093-2/+10 * tarball should ship .schemas.in.in files, not generated files.Frédéric Crozat2004-07-092-1/+6 * ScrubMonkey submitted comments for preface.xml. Someone put &mdash; entities...Aaron Weber2004-07-096-109/+65 * use CAMEL_GROUPWISE_CFLAGS. (libcamelgroupwise_la_LIBADD): useChris Toshok2004-07-092-2/+8 * add CAMEL_GROUPWISE cflags/libs.Chris Toshok2004-07-092-1/+11 * UpdatedLaurent Dhima2004-07-091-289/+357 * Updated Albanian translation.Laurent Dhima2004-07-082-261/+931 * Updated italian translationMarco Ciampa2004-07-082-28/+6 * Updated Spanish translationFrancisco Javier F. Serrador2004-07-081-270/+167 * Updated Spanish translationFrancisco Javier F. Serrador2004-07-072-162/+86 * Updated Czech translation.Miloslav Trmac2004-07-072-413/+660 * Updated British English translationiGareth Owen2004-07-072-297/+264 * Add this back to CVS for translators Don't ignore e-shell-errors.xml.hRodney Dawes2004-07-073-1/+38 * setup the widgets before the configuration.Rodrigo Moya2004-07-062-1/+6 * Fixes #60645JP Rosevear2004-07-062-0/+11 * don't set the timezone on the views here. (set_timezone): do it here.Rodrigo Moya2004-07-062-6/+11 * Updated Albanian translation.Laurent Dhima2004-07-052-9/+22 * bump version, requirementsJP Rosevear2004-07-05