Commit Graph

49 Commits

Author SHA1 Message Date
Not Zed 64c94ae9ce put the s/mime message back, awaiting string approval for a change
2005-08-19  Not Zed  <NotZed@Ximian.com>

        * em-format.c (emf_multipart_encrypted): put the s/mime message
        back, awaiting string approval for a change otherwise.

2005-08-18  Not Zed  <NotZed@Ximian.com>

        * em-format-html-display.c (efhd_message_add_bar): dont add
        attachment bar if it is disabled.
        (efhd_attachment_button): dont add attachments if there is no bar.

        * em-format.c (emf_inlinepgp_signed, emf_inlinepgp_encrypted): fix
        the error messages for consistency.  We dont need to check
        content-type, since we only get called with the right one.
        (emf_multipart_encrypted): fix up wrong s/mime error.

        * em-format-html.c (efh_inlinepgp_signed)
        (efh_inlinepgp_encrypted): moved to em-format.c; otherwise this
        will break replying, etc.

        ** See #271894.

        * em-format.c (emf_multipart_encrypted): use the content object's
        content-type to check types.

svn path=/trunk/; revision=30161
2005-08-19 05:38:22 +00:00
Vivek Jain b2f1b4ff38 check part before using it, else dump source
2005-08-08  Vivek Jain <jvivek@novell.com>

	* em-format.c: (emf_multipart_appledouble):
	check part before using it, else dump source

svn path=/trunk/; revision=30031
2005-08-08 07:05:19 +00:00
Matt Brown a9edef00dd implement extraction of inline signed/encrypted pgp parts and package them
2005-06-24      Matt Brown      <matt@mattb.net.nz>

        * em-inline-filter.c: implement extraction of inline signed/encrypted pgp
        parts and package them into x-inlinepgp-signed/x-inline-pgp-encrypted
        parts.
        * em-format-html.c: Formatters to verify/decrypt and then display the
        parts generated by the inline filter.

svn path=/trunk/; revision=29603
2005-07-01 03:29:23 +00:00
Not Zed 16eefad885 fix rodney's name choices. fix multiple-inclusion. fix forward references.
2005-05-19  Not Zed  <NotZed@Ximian.com>

        * em-folder-utils.h: fix rodney's name choices.  fix
        multiple-inclusion.  fix forward references.  fix all callers.
        add many fixme's for the busted api's.

        * em-format-quote.c (emfq_format_clone): use pseudo mime type to
        find message formatter.

        * em-format-html-display.c (efhd_format_message): remove, it
        didn't do anything.

        * em-format-html.c (efh_format_message): make this a handler
        callback.

        * em-format.c (emf_message_rfc822): make this use the pseudo
        mime-type x-evolution/message/rfc822 instead of the hardcoded
        format_message callback.

        * em-format-html-display.c (efhd_message_prefix): make this use a
        pseudo-mime-type handler rather than hard-coded, so it can be
        overridden by a plugin.

svn path=/trunk/; revision=29382
2005-05-19 06:06:35 +00:00
Not Zed 9562db3ab0 ** See bug #74320
2005-04-05  Not Zed  <NotZed@Ximian.com>

        ** See bug #74320

        * em-format.c (em_format_part_as): if the snooped type is NULL,
        fall back to application/octet-stream.

svn path=/trunk/; revision=29161
2005-04-06 05:39:08 +00:00
Not Zed 8652353f28 Moved various things from e-util to libedataserver.
2004-11-15  Not Zed  <NotZed@Ximian.com>

        * *.c: Moved various things from e-util to libedataserver.

        * GNOME_Evolution_Mail.server.in.in: remove the startup wizard stuff.

        * mail-config-druid.[ch]:
        * mail-account-editor.[ch]:
        * mail-account-gui.[ch]: removed & deleted.

        * mail-session.c (mail_session_init): and here too.
        * em-migrate.c (em_migrate_1_4): init camel-provider library too.
        (e_path_to_physical): copy from e-util/e-path.c.

        * Makefile.am (libevolution_mail_la_LIBADD): link to new libcamel
        provider too.

svn path=/trunk/; revision=28047
2004-12-03 03:38:03 +00:00
JP Rosevear ff94893ede wrap printf's in debug defines
2004-11-26  JP Rosevear  <jpr@novell.com>

	* em-format.c: wrap printf's in debug defines

svn path=/trunk/; revision=28003
2004-11-26 15:54:53 +00:00
Radek Doulik 83ef2d98db l = g_list_next (l); in inner loop instead of g = g_list_next (l)..
2004-11-11  Radek Doulik  <rodo@ximian.com>

        * em-format-hook.c (emfh_enable): l = g_list_next (l); in inner
        loop instead of g = g_list_next (l).. probably typo after c'n'p

        * em-format.c (em_format_class_remove_handler): in case the old
        handler doesn't exist, remove 'info' handler from type_handler
        table

svn path=/trunk/; revision=27893
2004-11-11 18:37:07 +00:00
Not Zed 1335b50751 revert jeff's last change - we do actually want to know when we couldn't
2004-11-03  Not Zed  <NotZed@Ximian.com>

        * em-folder-view.c (emfv_list_done_message_selected): revert
        jeff's last change - we do actually want to know when we couldn't
        load a message.  the crash he was fixing was fixed elsewhere.
        also fix the unref ordering stuff.

        * em-format-html.c (efh_format_timeout): removed the fixme i
        added.

2004-11-01  Not Zed  <NotZed@Ximian.com>

        ** See bug #67496.

        * em-format-html.c (efh_text_html): use the base on the emformat
        to calculate our absolute iframe uri.
        (efh_multipart_related): same as emf_multipart_related.

        * em-format.c (emf_multipart_related): remove content-location
        handling, now done in format_part_as.
        (em_format_part_as): track content-base (& absolute
        content-location) of all parts here.

svn path=/trunk/; revision=27807
2004-11-03 02:40:39 +00:00
Not Zed 6ce4413006 ** See bug #65058 (again again).
2004-09-23  Not Zed  <NotZed@Ximian.com>

        ** See bug #65058 (again again).

        * em-format-html.c (efh_text_html): calculate our location uri
        ourselves (content id).

        * em-format.c (em_format_add_puri): if we have no content-location
        key, don't fallback to any container's location.

svn path=/trunk/; revision=27356
2004-09-24 04:09:10 +00:00
Michael Zucci ef6a3af717 Merged notzed-eplugin-2-branch to head.
svn path=/trunk/; revision=27300
2004-09-20 05:59:55 +00:00
Jeffrey Stedfast bb38060bed Fix for bug #63377 and prevention of similar cases.
2004-09-01  Jeffrey Stedfast  <fejj@novell.com>

	Fix for bug #63377 and prevention of similar cases.

	* em-format.c (emf_finalise): Free the default_charset.
	(emf_format_clone): Clone the default_charset - this prevents the
	particular crash described in bug #63377.

	* em-utils.c (em_utils_message_to_html): If source is NULL, set
	our own default charset (from the user's gconf key) on the
	formatter to make sure there's always a source charset for
	conversion to UTF-8.

svn path=/trunk/; revision=27122
2004-09-02 20:10:01 +00:00
Not Zed 27f894733e only call expunge if the folder is set. (emfb_enable_map[]): only enable
2004-07-09  Not Zed  <NotZed@Ximian.com>

        * em-folder-browser.c (emfb_folder_expunge): only call expunge if
        the folder is set.
        (emfb_enable_map[]): only enable expunge menu item if we have a
        valid folder set.

        ** See bug #60900.

        * em-format-html.c: convert the text_inline_parts hash to be keyed
        off the partid.
        (efh_free_inline_parts): -> efh_free_cache and fix to do it.

        * em-format.c (emf_free_cache): make the inline table cache other
        info too based on partid, this frees the structure.
        (emf_clone_inlines): copy all of the cache data.
        (em_format_is_inline): use the new data structure to determine
        state.
        (em_format_set_inline): same for setting.
        (emf_multipart_signed): cache/lookup the cached part.
        (emf_insert_cache): helper to add a cache entry.
        (emf_multipart_encrypted): cache decrypted part.
        (emf_application_xpkcs7mime): same.

2004-07-08  Not Zed  <NotZed@Ximian.com>

        ** See bug #60900 (related only).

        * em-format-html-display.c (efhd_attachment_show): let set_inline
        do the redraw itself if required.  kill some dead code.

        * em-format.c (em_format_set_inline): trigger a redraw here like
        the other em_format_set methods, if the state changed.

        * em-format.c (emf_format_clone): free inline table keys & setup
        string hash table.

        * em-format-quote.c (emfq_format_attachment):
        * em-format-html-display.c (efhd_format_attachment):
        * em-format-html.c (efh_format_attachment): is_inline api changes.

        * em-format-html-display.c (efhd_attachment_show): set_inline api
        changes.

        * em-format.c (em_format_is_inline): make this use the partid
        rather than the part address as a key, which may change.
        (emf_init): make the inline talbe a string hashtable.
        (emf_finalise): free inline keys.
        (emf_clone_inlines): copy the key string.

svn path=/trunk/; revision=26614
2004-07-10 01:31:04 +00:00
Not Zed dbd786a2dd if we end up with an application/octet-stream part, pre-snoop it so we set
2004-05-19  Not Zed  <NotZed@Ximian.com>

        * em-inline-filter.c (emif_add_part): if we end up with an
        application/octet-stream part, pre-snoop it so we set the right
        mime type to start with.  Fixes #58554.

        * em-format.c (emf_snoop_part): removed, now in em-utils.

        * em-utils.c (em_utils_snoop_type): rah rah, snoop a mime part's
        type.

        * em-format-html.c (efh_text_plain): Revert jeff's fix for #56290.
        Ugh, we already have all the citation info in local data.  Removed
        the need for gconf too.

svn path=/trunk/; revision=25974
2004-05-19 07:02:12 +00:00
Not Zed 283a879d99 ** Quick fix for #57434
2004-05-18  Not Zed  <NotZed@Ximian.com>

        ** Quick fix for #57434

        * em-format.c (emf_format_clone): fix the FIXME about cloning
        headers shown.

        * em-format-html.c (efh_format_headers): only show rupert if we're
        showing rupert.

        * em-format-html-print.c (efhp_init): default show_rupert to off.

        * em-format-html.c (efh_init): default show_rupert to on.

        * em-format-html.h: added show_rupert bit.

svn path=/trunk/; revision=25953
2004-05-18 07:48:19 +00:00
Not Zed 463b3e37ec don't emit new mail if its any vfolder, not just vtrash folder. #56350.
2004-05-18  Not Zed  <NotZed@Ximian.com>

        * mail-folder-cache.c (folder_changed): don't emit new mail if its
        any vfolder, not just vtrash folder.  #56350.

        * em-folder-view.c (emfv_list_done_message_selected): run
        enable_menu's to make sure we're up to date.  #58352.

        ** crappy hacks for #58385.

        * em-folder-selection-button.c
        (em_folder_selection_button_clicked): leave Ok button for this
        selection.

        * em-folder-selection.c (em_select_folder): added oklabel here too.

        * em-folder-selector.c (em_folder_selector_new)
        (em_folder_selector_construct, em_folder_selector_create_new):
        Added oklabel- text for ok label.
        (em_folder_selector_create_new): Set the ok label to Create.

        * em-message-browser.c (emmb_set_message): don't mark message seen
        if user has disabled auto-mark seen feature.  #58629.

        * em-format.c (em_format_part): if we have no content-type header,
        then we get no mime-type set, so assume text/plain.  #58470.

svn path=/trunk/; revision=25951
2004-05-18 07:28:10 +00:00
Not Zed 81f6e6db48 ** Bug #6556.
2004-05-17  Not Zed  <NotZed@Ximian.com>

	** Bug #6556.

	* message-list.c (ml_drop_async_desc, ml_drop_async_drop)
	(ml_drop_async_done, ml_drop_async_free, ml_drag_data_action)
	(ml_drop_popup_copy, ml_drop_popup_move, ml_drop_popup_cancel)
	(ml_tree_drag_data_received): implement async drop operations and
	the ask drop option menu.

2004-05-14  Not Zed  <NotZed@Ximian.com>

	** Bug #6556.

	* message-list.c (ml_selection_received_uidlist): removed, not
	needed anymore.
	(ml_selection_received): call get_uidlist to paste the selection.
	(ml_tree_drag_data_received): same here.

	* em-folder-tree.c (emft_drop_uid_list): removed, not needed
	because of below change.

	* em-utils.c (em_utils_selection_get_uidlist): actually do the
	copy now, don't just decode the data.

	* em-folder-tree.c (tree_drag_data_received): just copy the
	selection data data itself, dont decode yet.
	(emft_import_message_rfc822): removed, not needed, use em utils
	stuff instead.
	(emft_drop_message_rfc822): same.
	(emft_drop_text_uri_list): same.
	(emft_drop_async_free): simply free stuff.
	(emft_drop_async_drop): call em_utils stuff where they exist to do
	the drop.

	* message-list.c (ml_tree_drag_data_get): send x-mailbox instead
	of message/rfc822 for the mailbox.
	(ml_tree_drag_data_received): handle drop of x-mailbox differently
	to message/rfc822.
	(ml_tree_drag_motion): implement so proper options are setup
	whilst dragging.
	(message_list_construct): seutp the drag src/dest types for
	changes typs and with ASK action.

	* em-utils.c (em_utils_read_messages_from_stream): dont unref the
	stream when we get it.
	(em_utils_selection_get_mailbox): add an argument to scan from or
	not, for message/rfc822 vs x-mailbox drops.
	(em_utils_read_messages_from_stream): Same.

	* em-folder-tree.c (tree_drag_motion): default to move properly.

	* message-list.c (ml_selection_received_uidlist): take a move flag.
	(ml_tree_drag_data_received): handle move action.

	* em-folder-tree.c (em_folder_tree_new_with_model): got sick of
	this bloody warning.

	* em-format.c (default_headers[]): just remove x-mailer from the
	header list, if it isn't on by default.  This is the default list.
	(em_format_default_headers): loop through everything.

svn path=/trunk/; revision=25915
2004-05-17 03:50:56 +00:00
Jeffrey Stedfast 11ec709d94 Don't include the last default_header when setting the default headers. If
2004-05-13  Jeffrey Stedfast  <fejj@novell.com>

	* em-format.c (em_format_default_headers): Don't include the last
	default_header when setting the default headers. If the user has
	configured Evolution to display the Mailer header, then it will be
	set in em-folder-view.c as appropriate when it checks the gconf
	settings. Fixes bug #58217.

	* em-mailer-prefs.c (em_mailer_prefs_construct): Default
	"x-evolution-mailer" header to disabled.

svn path=/trunk/; revision=25903
2004-05-13 18:04:57 +00:00
Jeffrey Stedfast ca60f3518a Don't complain about message errors ("Internal Error: ..."), instead
2004-04-14  Jeffrey Stedfast  <fejj@ximian.com>

	* em-format.c: Don't complain about message errors ("Internal
	Error: ..."), instead silently fall back to display the message as
	source. Fixes bug #56876.

svn path=/trunk/; revision=25464
2004-04-14 17:58:23 +00:00
Not Zed 8bdc418acd hmm, use the right pointer when iterating the pending uri list.
2004-04-14  Not Zed  <NotZed@Ximian.com>

        * em-format.c (emf_multipart_related): hmm, use the right pointer
        when iterating the pending uri list.

svn path=/trunk/; revision=25454
2004-04-14 06:56:28 +00:00
Not Zed 8d422f78c2 Add Newsgroups to the default header list.
2004-03-22  Not Zed  <NotZed@Ximian.com>

        * em-format.c:
        * em-mailer-prefs.c: Add Newsgroups to the default header list.

        * em-format-html.c (efh_format_header): handle the newsgroups
        header, output news: url's.  For bug #??? i can't recall, i closed
        it already!

svn path=/trunk/; revision=25141
2004-03-22 07:26:23 +00:00
Not Zed 09d1a191ee format as plain text too.
2004-03-17  Not Zed  <NotZed@Ximian.com>

        * em-format-html.c (efh_message_deliverystatus): format as plain
        text too.

        * em-format.c (emf_message_deliverystatus): format delivery
        status messages as plain text, rather than as messages.  since
        they wont be CamelMimeMessages.  Maybe they should be silently
        hidden.

svn path=/trunk/; revision=25098
2004-03-17 10:37:13 +00:00
Not Zed 38e751895d make this a varags function, which then calls the virtual method to do the
2004-03-15  Not Zed  <NotZed@Ximian.com>

        * em-format.c (em_format_format_error): make this a varags
        function, which then calls the virtual method to do the work.
        (emf_multipart_appledouble, emf_multipart_mixed)
        (emf_multipart_alternative, emf_multipart_related)
        (emf_message_rfc822): print an error to explain why you're getting
        source content displayed.
        (em_format_format_secure): make this a function.  and if we're
        done formatting a secure part, and we dont have a parent anymore,
        null out the validity.  See #55541.

svn path=/trunk/; revision=25070
2004-03-15 15:19:00 +00:00
Not Zed 467bbf6fb6 if we have the folder opened already, and its the outbox, then use the
2004-03-03  Not Zed  <NotZed@Ximian.com>

        * em-inline-filter.c (emif_scan):

        * em-folder-tree-model.c (em_folder_tree_model_set_folder_info):
        if we have the folder opened already, and its the outbox, then use
        the total count instead of unread count.  Bit of hack, but copies
        mail-folder-cache stuff.

        * mail-component.c (mc_add_store): renamed from
        mail_component_add_store, internal call.  Added a done callback.
        (mc_add_local_store): renamed from mc_add_store, callback for
        local store.
        (mail_component_add_store): call mc_add_store to do the work.
        (mc_add_local_store_done): ugh, the target of all this shit - note
        all the default folders now they should be setup.

        * mail-folder-cache.c (mail_note_folder): clean up the logic a
        bit.  was gonna do osmething else but it didn't work.

2004-03-02  Not Zed  <NotZed@Ximian.com>

        * mail-send-recv.c (mail_send): if we're already sending, up the
        again count to tell it we need to re-send again.
        (receive_done): if we've been asked to run a send again while we
        were already running it, run it again to make sure we didn't miss
        any new messages.  See bug #46839.

        * em-mailer-prefs.c (em_mailer_prefs_construct): update
        check_incoming_imap changes for merge conflicts.
        (settings_changed): i have no idea what these changes jeff did do,
        but check_incoming_imap is no longer needed, so i've deleted most
        of it.

2004-02-27  Not Zed  <NotZed@Ximian.com>

        * em-format.c (emf_multipart_encrypted, emf_multipart_signed): If
        validation fails, display as multipart/mixed rather than unkown
        attachment type, and make the error a little clearer that its an
        error.  See #52939.

2004-02-26  Not Zed  <NotZed@Ximian.com>

        * message-list.c (regen_list_regened): NOOP if the folder has
        changed.

        * mail-session.c (mail_session_check_junk_notify): remove
        check_incoming_imap test.
        (mail_session_init): "

        * evolution-mail.schemas.in.in: Remove check_incoming_imap option.

        * mail-config.glade: Remove check incoming imap checkbox.

        * em-mailer-prefs.c (em_mailer_prefs_construct): remove
        check_incoming_imap test.
        (em_mailer_prefs_apply): "
        (settings_changed): "

svn path=/trunk/; revision=24944
2004-03-03 06:39:14 +00:00
Not Zed f6d01c6919 check mps->protocol != NULL before dereferencing it. See #54406.
2004-02-23  Not Zed  <NotZed@Ximian.com>

        * em-format.c (emf_multipart_signed): check mps->protocol != NULL
        before dereferencing it.  See #54406.

svn path=/trunk/; revision=24829
2004-02-23 13:47:21 +00:00
Chris Toshok 353d5428a9 wrap code with ENABLE_SMIME instead of HAVE_NSS. (emf_multipart_signed):
2004-02-19  Chris Toshok  <toshok@ximian.com>

	* em-format.c (emf_application_xpkcs7mime): wrap code with
	ENABLE_SMIME instead of HAVE_NSS.
	(emf_multipart_signed): same.
	(type_builtin_table): same.

svn path=/trunk/; revision=24811
2004-02-20 02:33:30 +00:00
Not Zed 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
Not Zed 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
Not Zed 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
Not Zed 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
Not Zed 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
Not Zed 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
Not Zed cee49f0286 keep the windows charset filter around until we're done since if we set it
2004-01-09  Not Zed  <NotZed@Ximian.com>

        * em-format.c (em_format_format_text): keep the windows charset
        filter around until we're done since if we set it up we reference
        its memory.  Causes warnings and breaks message display.

        ** See bug #52637.

        * em-inline-filter.c (em_inline_filter_new): added a content-type
        paramter for the base content type.
        (em_inline_filter_finalize): free base content type.
        (emif_types[]): Added 'plain' parameter, indicates type needs
        plain parameters set on content type.
        (emif_add_part): inherit the full base type if it is set, for
        plain parts.

        * em-format-html.c (efh_text_plain): pass the part's content-type
        to the inline filter.

svn path=/trunk/; revision=24121
2004-01-09 02:06:03 +00:00
Not Zed 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
Not Zed 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
Not Zed 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
Not Zed 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
Not Zed 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
Radek Doulik 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
Not Zed 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
Not Zed e2919e15d1 changed for cipher context api changes. ditto.
2003-11-10  Not Zed  <NotZed@Ximian.com>

        * em-format-html.c (em_format_html_multipart_signed_sign): changed
        for cipher context api changes.
        * em-format.c (emf_multipart_signed): ditto.

2003-11-07  Not Zed  <NotZed@Ximian.com>

        * mail-config.glade: added security_information_dialog (probably
        temporarily in this file).

        * em-format.c (em_format_is_attachment): also treat pkcs7-mime as
        non-attachment.
        (emf_application_xpkcs7mime): no longer need to worry about
        scanning the part.

svn path=/trunk/; revision=23243
2003-11-10 13:00:07 +00:00
Not Zed 8747a6919f show application/x-pkcs7-mime inline always by default.
2003-10-30  Not Zed  <NotZed@Ximian.com>

        * em-format.c (em_format_is_inline): show application/x-pkcs7-mime
        inline always by default.

2003-10-30  Not Zed  <NotZed@Ximian.com>

        * em-format.c (emf_multipart_signed): handle
        application/x-pkcs7-signature.

2003-10-29  Not Zed  <NotZed@Ximian.com>

        * em-format-html.c (em_format_html_multipart_signed_sign): handle
        application/x-pkcs7-signature.

        * em-format.c (emf_application_xpkcs7mime): Handle
        application/x-pkcs7-mime.

svn path=/trunk/; revision=23129
2003-10-30 05:03:28 +00:00
Jeffrey Stedfast fd56880083 Put an <hr> between parts of a multipart.
2003-10-21  Jeffrey Stedfast  <fejj@ximian.com>

	* em-format.c (emf_multipart_mixed): Put an <hr> between parts of
	a multipart.

svn path=/trunk/; revision=22969
2003-10-21 20:36:18 +00:00
Not Zed dbecfb2314 remove gconf stuff. (em_format_html_set_xmailer_mask): new method to set
2003-09-30  Not Zed  <NotZed@Ximian.com>

        * em-format-html.c (efh_init): remove gconf stuff.
        (em_format_html_set_xmailer_mask): new method to set the xmailer mask.

        * em-folder-view.c (emfv_display_keys[]): Added charset key to
        monitor/retrieve, and xmailer_mask.
        (emfv_setting_notify): Monitor charset setting, pass onto the
        formatter, as well as xmailer_mask.

        * mail-preferences.c (mail_preferences_construct): use the new
        charset key.
        (mail_preferences_apply): use the new charset key.

        * evolution-mail.schemas: Moved the mail/format/charset to
        mail/display/charset.  1. it makes more sense, and 2. it makes
        notification update easier in em-folder-view.c

        * em-format.c (emf_init): remove the gconf charset stuff, for bug
        #48791, and also actually fixes the fixme that jeff thought he
        fixed.
        (em_format_format_text): use default charset as fallback.
        (em_format_set_default_charset): New method to set the default charset.
        (gconf_charset_changed): removed.

svn path=/trunk/; revision=22768
2003-09-30 06:52:13 +00:00
Jeffrey Stedfast 1af3fe8fe0 Oops, put the arguments in the right order.
2003-09-29  Jeffrey Stedfast  <fejj@ximian.com>

	* em-format.c (emf_init): Oops, put the arguments in the right order.

svn path=/trunk/; revision=22757
2003-09-29 20:40:35 +00:00
Jeffrey Stedfast 8db4001828 Fix for bug #48791 (and also fixes a FIXME)
2003-09-23  Jeffrey Stedfast  <fejj@ximian.com>

	Fix for bug #48791 (and also fixes a FIXME)

	* em-format.c (emf_init): Setup a gconf listener for changes to
	the charset setting.
	(gconf_charset_changed): Update the cached gconf charset value.
	(emf_finalise): Free the EMFormatPrivate data, unref the gconf
	client, disconnect the charset notify id, and free the cached
	gconf charset value.
	(em_format_format_text): Use the cached gconf charset value.

svn path=/trunk/; revision=22675
2003-09-23 20:15:44 +00:00
Jeffrey Stedfast 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
Jeffrey Stedfast 6205217822 Initialise charset to NULL or it may be used uninitialised. Also include
2003-09-18  Jeffrey Stedfast  <fejj@ximian.com>

	* 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().

	* Makefile.am: Added $(MARSHALL_GENERATED) to $(BUILT_SOURCES) so
	that em-marshal.[c,h] were autogenerated.

svn path=/trunk/; revision=22609
2003-09-18 16:04:25 +00:00
Not Zed 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