aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-formatter.c
Commit message (Collapse)AuthorAgeFilesLines
* 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