aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-formatter.c
Commit message (Collapse)AuthorAgeFilesLines
* bonobo-goad-id is the good key to look for. (get_bonobo_tag_for_object):bertrand2000-03-041-2/+5
| | | | | | | | | | | | | | 2000-03-04 bertrand <bertrand@helixcode.com> * camel-formatter.c (get_bonobo_tag_for_object): bonobo-goad-id is the good key to look for. (get_bonobo_tag_for_object): close the <object> tag. (get_bonobo_tag_for_object): the correct syntax for the to set a parameter inside an <object> tag is : <object classid="..."> <param name="uid" value="..."> <param ...> </object> svn path=/trunk/; revision=2036
* in the case of images, put the content object output stream in the url.bertrand2000-03-041-6/+6
| | | | | | | | | | | 2000-03-03 bertrand <bertrand@helixcode.com> * camel-formatter.c (handle_image): in the case of images, put the content object output stream in the url. This allows the message browser to show inline images. svn path=/trunk/; revision=2021
* A lot of changes in the way the parsing works. I am too lazyBertrand Guiheneuf2000-02-221-1/+7
| | | | | | | | | | to find all the changes. Important notice, I added uggly hacks to camel-formatter.c and message-browser so that I could test b64 decoding. Saving streams works. Have to implement qp now. svn path=/trunk/; revision=1893
* New header with the typedefs for all camel classes. Now the class headersDan Winship2000-02-191-0/+4
| | | | | | | | | | | | | | | * camel/camel-types.h: New header with the typedefs for all camel classes. Now the class headers can just include this and the header for the parent type. This makes it possible for CamelService to include a CamelSession without creating an #include loop. * camel/*: * composer/e-msg-composer-attachment-bar.h: * mail/folder-browser.c: * mail/message-list.c: frob #includes to match the new reality svn path=/trunk/; revision=1850
* use camel_stream_reset instead of seek. The formatter should be able tobertrand2000-02-181-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-02-17 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-formatter.c (handle_text_plain): (handle_text_html): use camel_stream_reset instead of seek. The formatter should be able to work with all streams, not only seekable streams. In the case where some provider implementation would not be able to provide a reset method to their stream, implementors would have to find a workaround. * camel/camel-session.c (camel_session_new): use (void) instean of () in function decl. * camel/camel-folder.c: ifdef async operation related code. * camel/camel-seekable-stream.c (_seek): added a warning. (_reset): default implementation of reset for seekable stream. * camel/camel-mime-message.h: set_received_date declaration fix. cosmetic changes. * camel/providers/mbox/camel-mbox-provider.c (camel_provider_module_init): use (void) instead of (). * camel/camel-stream.c (camel_stream_reset): new method for CamelStream. svn path=/trunk/; revision=1835
* 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