Commit Graph

125 Commits

Author SHA1 Message Date
2f07bc4e16 ** See bug #53258.
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
2004-02-06 06:35:50 +00:00
dab1c82a21 ** See bug #53558 (plus other fixes/cleanups)
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
2004-01-30 03:10:14 +00:00
cd79698104 Fixes a bug i can't find right now
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
2004-01-29 09:45:59 +00:00
a8705a44c5 ** See bug #53159.
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
2004-01-21 02:50:08 +00:00
661c8fe497 pass in an exception to use
2004-01-16  JP Rosevear <jpr@ximian.com>

	* em-format-html-display.c (efhd_bonobo_object): pass in an
	exception to use

svn path=/trunk/; revision=24286
2004-01-17 00:26:21 +00:00
0ff3f18cf4 Startup files/folders.
2004-01-16  Not Zed  <NotZed@Ximian.com>

        * default/C/Inbox:
        * default/C/Makefile.am:
        * default/Makefile.am: Startup files/folders.

        * em-migrate.c (emm_setup_initial): initial implementation of
        startup setup.
        (cp): Fix the test, we want exists AND size>0, not exists OR
        size>0.
        (cp): Fix the open, we can't use O_EXCL with empty, but present
        files.  Another hack fix for #52880.

        ** See bug #52896.

        * em-format-html-display.c (efhd_html_button_press_event): do this
        based on get_object_at rather than get_point_at, so we get the
        offset properly.

svn path=/trunk/; revision=24261
2004-01-15 23:16:21 +00:00
e70e3982ed ** See bugs #51609 and #43515.
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
2004-01-15 01:22:55 +00:00
df12f97f29 ** See bug 51660.
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
2004-01-14 02:58:24 +00:00
e2b0897d80 Emit a hover-url signal when the user mouses over a URL, ...
2004-01-04  ERDI Gergo  <cactus@cactus.rulez.org>

	* em-folder-view.c (emfv_on_url_cb): Emit a hover-url signal when
	the user mouses over a URL, ...
	(emfv_hover_url_impl): ... and use BonoboUI to change the status
	bar message...
	(em_folder_view_set_statusbar): ... unless we are asked not to, ...

	* mail-component.c (impl_createControls): ... like in the case of
	the mail component, ...
	(view_hover_url_cb): ... that uses the ActivityHandler to do the
	same

	Add these together, and #127536 is neatly solved.

2004-01-05  ERDI Gergo  <cactus@cactus.rulez.org>

	* e-task-bar.c (init): Create a separate label to the left of the
	progress messages...
	(e_task_bar_message): ...and allow components to set it...

	* e-activity-handler.c (e_activity_handler_message): ...through
	this new ActivityHandler method

svn path=/trunk/; revision=24086
2004-01-07 14:29:08 +00:00
02f3533f74 ** See bug #50996.
2004-01-05  Not Zed  <NotZed@Ximian.com>

        ** See bug #50996.

        * em-format-html-display.c (efhd_find_handler): implement override
        for unknown types, try bonobo handlers.
        (efhd_bonobo_unknown): formathandler for bonobo objects.

        * em-format.c (em_format_find_handler): make virtual, rename to
        emf_find_handler.

svn path=/trunk/; revision=24043
2004-01-05 11:16:08 +00:00
eab87e6b72 s/it's/its/ in mail warning.
svn path=/trunk/; revision=24036
2004-01-04 19:18:20 +00:00
0c0096e261 #ifdef out certain code pieces if s/mime isn't supported
2003-12-16  JP Rosevear  <jpr@ximian.com>

	* em-format-html-display.c: #ifdef out certain code pieces if
	s/mime isn't supported

svn path=/trunk/; revision=23950
2003-12-16 20:06:41 +00:00
45f6a4c8b6 ** See bug #52108.
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
2003-12-11 23:47:33 +00:00
d7fbe9fe14 treat application/pkcs7-signature as application/x-pkcs-signature. Stupud
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
2003-12-10 06:13:31 +00:00
7789fb9e66 use a POSITIVE value for the response value, gtk uses -ative ones. Bug
2003-12-10  Not Zed  <NotZed@Ximian.com>

        * em-folder-selector.h: use a POSITIVE value for the response
        value, gtk uses -ative ones.  Bug #51752.

        * Makefile.am (INCLUDES): added smime/lib and smime/gui to
        includes.

        * em-folder-tree.c (emft_popup_rename_folder): removed unused 'why',
        why not?

        * em-format-html-display.c (efhd_xpkcs7mime_validity_clicked):
        setup a table of buttons to view any certs we have.

        * em-folder-browser.c (emfb_activate): separeate view_menu
        unreffing from view_instance.  fixes a runtime warning.

svn path=/trunk/; revision=23905
2003-12-10 05:29:06 +00:00
62b482ca29 Added empty_trash prompt key.
2003-12-02  Not Zed  <NotZed@Ximian.com>

        * evolution-mail.schemas: Added empty_trash prompt key.

        * em-utils.c (em_utils_prompt_user): changed to take the gconf
        'prompt again' key directly.  Fixed callers.
        (em_utils_expunge_folder): prompt the user with an expunge
        specific message.
        (em_utils_empty_trash): have an empty-trash specific message for
        prompting confirm.
        (emu_confirm_expunge): removed, no longer needed.  Bug #38613.
        (em_utils_expunge_folder): remove most line feeds, let the label
        wrap them.
        (em_utils_empty_trash): ditto.

        * em-subscribe-editor.c (sub_folder_subscribed): update the ui
        selection state after we're done.  maybe we should listen on the
        model but this is easier.  Bug #50861.

        * em-message-browser.c (emmb_activate): hook up our own verb list.
        (emmb_message_verbs[], emmb_close): implement the close verb.
        Bug #51558.

        * em-format-html-display.c (efhd_attachment_popup): duh, actually
        add the menu list we create.  Bug #49902.

        * em-format.c (d): turn off debug, committed by accident.

svn path=/trunk/; revision=23562
2003-12-02 05:16:22 +00:00
acf7083339 added some padding to the security details frames.
2003-12-01  Not Zed  <NotZed@Ximian.com>

        * mail-security.glade: added some padding to the security details
        frames.

        * em-format-html-display.c (efhd_xpkcs7mime_validity_clicked):
        some cosmetic layout changes.

svn path=/trunk/; revision=23513
2003-12-01 04:42:52 +00:00
2f99f8636a set session on print formatter for signatures to work.
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
2003-11-24 22:35:33 +00:00
1496e35c9c use new colors (efh_text_html): ditto
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
2003-11-24 01:38:11 +00:00
ff31ff3b84 do not use horizonal rule, attachment content is now inside simple frame
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
2003-11-24 00:35:57 +00:00
dc497cb36b Same.
2003-11-19  Jeffrey Stedfast  <fejj@ximian.com>

	* em-utils.c (em_utils_selection_set_urilist): Same.

	* em-format-html-display.c (efhd_drag_data_get): Same as below.

	* em-folder-tree.c (drag_text_uri_list): Terminate each url of a
	text/uri-list with a \r\n.

svn path=/trunk/; revision=23451
2003-11-19 21:22:12 +00:00
35b15cb051 use malloc0 for the pobject memory.
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
2003-11-13 05:23:29 +00:00
8e302d84a4 implement the key selector popup using e-cert-selector.
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
2003-11-13 03:57:54 +00:00
2a88606f5d updated for camel namespace changes
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
2003-09-18 17:05:23 +00:00
81a0ff5bc4 cvs removed.
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
2003-09-17 21:19:04 +00:00