aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-formatter.c
Commit message (Collapse)AuthorAgeFilesLines
* revamped so that it uses the output stream of the data wrapperbertrand2000-02-171-123/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-02-17 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-formatter.c (handle_text_plain): revamped so that it uses the output stream of the data wrapper (handle_text_html): ditto. * camel/camel-simple-data-wrapper.h: * camel/camel-simple-data-wrapper.c (camel_simple_data_wrapper_new): use (void) instead of (). (_get_output_stream): simple implementation. A lot of small fixes so that the new parser scheme works properly. Simple implementation of the stream though. Changed vette-formatter files so that they work with the new scheme. The new parser is now in a usable state. Still needs some work but the infrastructure is here. /me is happy. svn path=/trunk/; revision=1822
* + * tests/ui-tests/test-multipart-mixed.msg: New rfc822 file, whichMatthew Loper2000-02-141-1/+4
| | | | | | | | | | | + crashes message-browser. + + * tests/ui-tests/message-browser.c (get_gtk_html_window): Takes a + CamelMimeMessage as a param, rather than a filename. + (main): Puts our windows in an hpane rather than a vbox. Also + opens a file dlg box if a filename wasn't given as a first param. svn path=/trunk/; revision=1771
* + * tests/ui-tests/message-browser.c (handle_tree_item): Expand treeMatthew Loper2000-02-141-54/+64
| | | | | | | | | | | | | | | | | | | | | | + items. + (mime_message_to_html): New function; translates a + CamelMimeMessage into two strings (one for the header, and one for + the body). + (get_gtk_html_window): New function; fills out a window with + html. The html is taken from a processed rfc822 file, via a + CamelFormatter. + + * camel/camel-formatter.c: Added assertions. + (handle_text_html): Don't call text_to_html on something that's + already html. + (multipart_foreach): function deleted. + + * mail/html-stream.c (html_stream_new): Second param of + gtk_html_begin should be "", not NULL. + (html_stream_new): gtk_html_parse() is deprecated, so the call was + removed. svn path=/trunk/; revision=1766
* New file; shows a message in tree format, where multipart's have multipleMatthew Loper2000-02-091-23/+23
| | | | | | | | | | * tests/ui-tests/message-browser.c: New file; shows a message in tree format, where multipart's have multiple leaves. * camel/camel-formatter.c: Changed references from 'multipart/alternate' to 'multipart/alternative'. svn path=/trunk/; revision=1700
* + * tests/test-formatter.c (convert_to_html_and_print): Use theMatthew Loper2000-02-091-9/+39
| | | | | | | | | | | + buffer length of the stream to create strings which are then + printed, rather than printing the stream (which might not have a + trailing \0) directly. + + * camel/camel-formatter.c (str_tolower): New function; makes a + string lowercase. svn path=/trunk/; revision=1698
* + * tests/test-formatter.c (convert_to_html_and_print): Fixed callMatthew Loper2000-02-091-2/+2
| | | | | | | + to 'camel_formatter_mime_message_to_html' to contain correct + params. svn path=/trunk/; revision=1697
* New member to 'CamelFormatterPrivate', 'attachments', will be used to letMatthew Loper2000-02-091-148/+342
| | | | | | | | | | | | | | | | | | * camel/camel-formatter.c: New member to 'CamelFormatterPrivate', 'attachments', will be used to let the caller know which items should be treated as attachments (as opposed to objects which are inline to the body). (text_to_html): name changed from 'encode_entities'. Also now converts newlines to <br> tags. (camel_formatter_mime_message_to_html): Now takes two output streams -- one for the header, and one for the body. (get_bonobo_tag_for_object): New function; tries to make a tag out of (1) the leaf of a mime message and (2) a bonobo object that can handle its mime type, but can return NULL if it fails to find the mime type. (handle_vcard): New function; will write out a vcard as html. svn path=/trunk/; revision=1696
* function deleted.Matthew Loper2000-02-081-76/+0
| | | | | | * camel/camel-formatter.c (mime_part_to_html): function deleted. svn path=/trunk/; revision=1688
* + * tests/test-formatter.c (print_usage_and_quit): New function,Matthew Loper2000-02-081-60/+89
| | | | | | | | | | | | + which gives usage information. + + * camel/camel-formatter.c: made the 'stream' a member of the + CamelFormatter class, so that streams don't have to be explicitly + sent as a param where a CamelFormatter is also sent.. + (handle_text_plain): Use 'encode_entities' to change '<' to + '&gt;', etc. svn path=/trunk/; revision=1687
* *** empty log message ***Bertrand Guiheneuf2000-02-021-3/+3
| | | | svn path=/trunk/; revision=1661
* + * tests/test-formatter.c: New file; intended to test theMatthew Loper2000-02-021-181/+467
| | | | | | | | | | | + CamelFormatter class. + + * camel/camel-formatter.c: Lots of cleanup, commenting, some new + functions, and a really basic skeleton for getting bonobo objects + into the html. + (encode_entities): New function, stolen from Daniel Velliard. svn path=/trunk/; revision=1660
* + * camel/camel-formatter.c: By looking up a mimetype in aMatthew Loper2000-01-261-47/+156
| | | | | | | + hashtable, we can now get a handler function for an arbitrary + mimetype. svn path=/trunk/; revision=1641
* new function, broken out from 'camel_formatter_make_html'.Matthew Loper2000-01-241-18/+143
| | | | | | | | | | | * camel/camel-formatter.c (write_header_info_to_stream): new function, broken out from 'camel_formatter_make_html'. (write_mimepart_to_stream): same. (find_text_body_part_in_multipart_related): new function. (camel_formatter_make_html): Now tries to deal with multipart/related, multipart/alternate, and text/(plain|html). svn path=/trunk/; revision=1619
* + * camel/camel-formatter.c (camel_formatter_make_html): added aMatthew Loper2000-01-221-32/+24
| | | | | | | + CamelMimeMessage as a param to this function, and removed it as a + member of the object. svn path=/trunk/; revision=1602
* New files. You'll be able to use a CamelFormatter to get html-formattedMatthew Loper2000-01-211-0/+199
* camel/camel-formatter.c, camel/camel-formatter.h: New files. You'll be able to use a CamelFormatter to get html-formatted versions of a CamelMimeMessage. svn path=/trunk/; revision=1600