2001-05-31 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_signed): Removed the code to
check for the validity of an S/MIME part. Stuff works differently
now.
* mail-crypto.c: Rewrote how the S/MIME stuff is going to work.
svn path=/trunk/; revision=10066
* mail-config.glade: Rename the "PGP" page back to "Other" and add
a "default charset" option menu.
* mail-config.c (config_read, mail_config_write_on_exit,
mail_config_get_default_charset, mail_config_set_default_charset):
Handle "default charset".
* mail-accounts.c (construct): Fill in the "default_charset" menu
with an e_charset_picker menu.
(charset_menu_deactivate): Update the default charset.
svn path=/trunk/; revision=10057
2001-05-29 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (list_add_addresses): Take another argument to
ignore a certain address.
(mail_generate_reply): Ignore references to the reply-to address
when constructing the Cc list.
svn path=/trunk/; revision=10046
2001-05-29 Jason Leach <jleach@ximian.com>
* message-browser.c (message_browser_new): one-line fix for bug
#2536: File->Close in message viewer doesn't work.
(message_browser_new): Also replaced like 4 lines of code with a
one-liner featuring gnome_app_create_toolbar_with_data().
2001-05-28 Jason Leach <jleach@ximian.com>
* mail-local.c (load_metainfo): Don't need to check if (foo!=NULL)
before doing an xmlFreeDoc().
svn path=/trunk/; revision=10039
2001-05-27 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c: Removed the etable spec string.
(message_list_construct): Load the etable spec from a file.
* folder-browser-factory.c: Load the etable spec from the file,
not a string.
* Makefile.am: Add message-list.etspec to be installed.
* message-list.etspec: New file containing the ETable file
specification.
* mail-config.h: Prototype evolution_mail_config_get_type.
svn path=/trunk/; revision=10025
* folder-browser-factory.c: #include
"evolution-shell-component-utils.h" rather than "e-gui-utils.h"
for e_pixmaps_update.
* subscribe-dialog.c: Likewise.
svn path=/trunk/; revision=10019
2001-05-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (try_inline_pgp_sig): Fix to work properly.
(handle_multipart_signed): Fixed a bug that caused some
multipart/signed messages to be handled by the multipart_mixed
handler.
svn path=/trunk/; revision=10016
* mail-ops.c (mail_send_message, transfer_messages_transfer,
set_offline_do): When unreffing a folder we got ourselves (as
opposed to one passed in by the caller), sync before unreffing,
since we might be holding the only reference to it.
(mail_refresh_folder): New op, like mail_sync_folder, but does a
camel_folder_refresh_info instead.
* folder-browser-factory.c (control_activate): Call
mail_refresh_folder, not mail_sync_folder. (The goal is to see new
messages: sync used to work with imap because imap_sync was
broken, but it doesn't work for that any more.)
svn path=/trunk/; revision=10011
2001-05-25 Peter Williams <peterw@ximian.com>
* gui/component/Makefile.am: Reference libeshell.la instead of libeshell.a.
2001-05-25 Peter Williams <peterw@ximian.com>
* gui/Makefile.am: Reference libeshell.la instead of libeshell.a.
2001-05-25 Peter Williams <peterw@ximian.com>
* component/Makefile.am: Reference libeshell.la instead of libeshell.a.
2001-05-25 Peter Williams <peterw@ximian.com>
* Makefile.am: Reference libeshell.la instead of libeshell.a.
2001-05-25 Peter Williams <peterw@ximian.com>
* Makefile.am: Change libeshell from a noinst_LIBRARIES to
a lib_LTLIBRARIES. Install its headers in
$includedir/evolution/shell.
* evolution-storage.c (safe_corba_string): New, copy of e_safe_corba_string
in libeutil. This way libeshell doesn't have a missing symbol when programs
that don't have libeutil link to it.
(evolution_storage_register): s,e_safe_corba_string,safe_corba_string,g.
svn path=/trunk/; revision=10007
2001-05-25 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-factory.c (control_activate): Disable Resend on
non-Sent folder FolderBrowsers. Thanks to Wayne Davis for this
patch.
svn path=/trunk/; revision=10000
2001-05-25 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (xfer_folder): This code should be correct
now. Still waiting on the shell to do it's job of creating the
metadata xml file in the destination folder though.
svn path=/trunk/; revision=9981
2001-05-24 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (message_list_select_uid): g_strdup the uid into
the ml->cursor_uid.
* message-browser.c (message_browser_forward_msg): Use the default
forward style.
svn path=/trunk/; revision=9969
* mail-identify.c (mail_identify_mime_part): If the message data
is online, sniff the data for a MIME type first, and use the
filename second. Makes it more reliable, and deals with the
specific case of "application/octet-stream; name=foo.vcf" which
gnome-vfs will identify as vcalendar, but which can also be a
vcard.
svn path=/trunk/; revision=9968
2001-05-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (try_inline_pgp_sig): Only write the message up to
(but not including) the attached signature block.
svn path=/trunk/; revision=9967
2001-05-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_postpone_cb): Don't free the
folder-info here, instead have mail_append_mail() call our new
function, append_mail_cleanup() which'll free the
folder-info. This fixes the problem of send-later segfaulting.
svn path=/trunk/; revision=9958
2001-05-23 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (xfer_folder): New function that the shell
component calls to copy/move a folder.
(component_fn): Set the xfer_folder_fn argument.
* mail-ops.c (mail_remove_folder): New async function to remove a
folder. God knows if it does what the ShellComponent needs or not
yet.
(mail_xfer_folder): Yet another yummy async function to move or
copy a folder to a new location.
* component-factory.c (storage_remove_folder): New function for
removing folders.
(remove_folder): New function that the shell component calls to
delete a folder.
(component_fn): Set the remove_folder_fn argument.
svn path=/trunk/; revision=9954
2001-05-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_remove_folder): New async function to remove a
folder. God knows if it does what the ShellComponent needs or not
yet.
* component-factory.c (storage_remove_folder): New function for
removing folders.
(remove_folder): New function that the shell component calls to
delete a folder.
(component_fn): Set the remove_folder_fn argument.
svn path=/trunk/; revision=9952
* mail-display.c (on_url_requested): If http mode is
HTTP_SOMETIMES, use e_book_query_address_locally to check the From
address and load images if it's found.
* mail-config.c (config_read): Default http_mode to
MAIL_CONFIG_HTTP_SOMETIMES. Fix typo to make default forward style
actually work.
svn path=/trunk/; revision=9936
2001-05-22 Jeffrey Stedfast <fejj@ximian.com>
* message-browser.c (message_browser_folder_loaded): Instead of
calling message_list_select_uid() here, instead connect to the
"message_list_loaded" signal since the message-list is not built
yet at this point.
(message_browser_message_list_built): Call
message_list_select_uid() here instead.
* message-list.c: Lets have a new signal, MESSAGE_LIST_BUILT, that
gets emitted when the message-list has finished being built by one
of the built_*() functions.
(message_list_class_init): Setup the signal stuff.
(regen_list_regened): Emit the signal here (should this perhaps be
moved into each of the build_*() functions instead?).
svn path=/trunk/; revision=9925
2001-05-18 Jon Trowbridge <trow@ximian.com>
* gui/component/select-names/e-select-names-bonobo.c
(entry_get_property_fn): Return the serialized EDestinations
(rather than just a string w/ e-mail addresses) through the bonobo
component's property bag.
* gui/component/select-names/e-select-names-model.c
(e_select_names_model_export_destinationv): Added. A convenience routine
for serializing the model's EDestinations into a string.
* gui/component/select-names/e-select-names-popup.c
(add_html_mail): Added. Puts in a check menu item for whether or
not the recipient wants HTML mail.
(popup_menu_card): Add menu item for HTML mail. Enable edit
contact info item.
(popup_menu_nocard): Add menu item for HTML mail. Enable edit
contact info item.
* backend/ebook/e-book-util.c (e_book_use_local_address_book):
Added. Fetches the local addressbook and caches it on the first
call. This is meant to be an easy and efficient way to get at the
local addressbook with the minimum of code.
(e_book_query_address_locally): Added. Convenience code that
does an e-mail only e_book_name_and_email_query against the
local address book.
* backend/ebook/e-destination.c
(e_destination_set_html_mail_pref): Added. Allows the intended
recipient's HTML mail preference to be manipulated.
(e_destination_get_email_verbose): Added. Cleaned up to use
e_destination_get_name.
(e_destination_get_html_mail_pref): Added. Read the recipient's HTML mail
preference. If the destination is linked to a card, the
preference is taken from the card (unless it has been explicitly
overridden by a called to e_destination_set_html_mail_pref).
(e_destination_get_address_textv): Added. Form a unified address string
from a NULL-terminated vector of EDestinations.
(e_destination_export): Added. Serialize an EDestination to a string.
(e_destination_import): Added. Unserialize a string to build an
EDestination.
(e_destination_exportv): Added. Serialize a NULL-terminated vector of
EDestinations to a string.
(e_destination_importv): Added. Unserialize a string to build a
NULL-terminated vector of EDestinations.
* gui/component/select-names/e-select-names-completion.c:
Implemented local versions of g_strcasecmp and g_strncasecmp
(which should really be in glib, I think...) for utf8, and used
them to make this code utf8-safe.
2001-05-18 Jon Trowbridge <trow@ximian.com>
* Makefile.am (evolution_mail_LDADD): Added libebook.la (which is
now required by the composer.)
2001-05-18 Jon Trowbridge <trow@ximian.com>
* e-msg-composer-hdrs.c (set_recipients): Properly unserialize the
string returned by the "text" property of the bonobo control,
convert it into EDestinations, and use them to get the e-mail
addresses of our recipients.
22001-05-18 Jon Trowbridge <trow@ximian.com>
* Makefile.am (SUBDIRS): Changed build order. Now addressbook
gets built before mail.
svn path=/trunk/; revision=9878
2001-05-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_write_authenticity): New convenience
function for all signature verification functions to use to
display whether or not the signed part was authentic.
(try_inline_pgp_sig): Use mail_write_authentic().
(handle_multipart_signed): Add code to handle S/MIME
multipart/signed parts and also use mail_write_authenticity().
svn path=/trunk/; revision=9872
* folder-browser.c (folder_browser_is_drafts,
folder_browser_is_sent, folder_browser_is_outbox): Functions to
determine if a folderbrowser is one of the drafts, sent, or outbox
folders.
(got_folder): Pass TRUE for the "outgoing" flag to
message_list_set_folder if this is a Sent, Drafts, or Outbox
folder.
* message-list.c (message_list_set_folder): Take a flag saying
whether or not the folder is an "outgoing" folder.
(message_list_setup_etree): Ditto. Use that rather than a
hardcoded list of foldernames for deciding whether to swap From
and To in the default layout.
* mail-config.c (mail_config_folder_to_cachename): Make IMAP
folders have unique cachenames rather than only one per store, so
that IMAP Sent and Drafts folders don't get forced into having the
same layout as the INBOX.
* mail-callbacks.c: (is_sent_folder, is_drafts_folder): Gone.
Replaced with simpler folder_browser_is_* routines.
(edit_msg, resend_msg, open_msg): Use folder_browser_is_*
routines.
* mail-local.c (reconfigure_clicked): Update call to
message_list_set_folder.
svn path=/trunk/; revision=9857
2001-05-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (mail_crypto_is_smime_v3_signed): Removed (this
now exists in camel/camel-smime.c).
(mail_crypto_is_pkcs7_mime): Same.
(mail_crypto_smime_part_sign): new
(mail_crypto_smime_part_verify): new
(mail_crypto_smime_part_encrypt): new
(mail_crypto_smime_part_decrypt): new
(mail_crypto_pgp_mime_part_sign): Added code to set an exception
if the context fails to be created.
(mail_crypto_pgp_mime_part_verify): And here...
(mail_crypto_pgp_mime_part_encrypt): Same.
(mail_crypto_pgp_mime_part_decrypt): And here too.
svn path=/trunk/; revision=9856
* mail-display.c (mail_display_redisplay): Deal with full-header
mode in addition to source mode
* mail-format.c (write_field_row_begin): Add WRITE_NOCOLUMNS flag
to write the header in a single table cell rather than two. Output
the second columns's "<td>" when not in NOCOLUMNS mode. Don't
include the ":" in the passed-in header name.
(write_date, write_address): Update for write_field_row_begin
changes.
(write_text_field): Genericified and updated from write_subject.
(write_headers): Deal with both normal and full-header mode.
svn path=/trunk/; revision=9850
* mail-display.c (on_url_requested): Load http images if the user
has force-loaded images too.
(mail_display_redisplay): Update for normal/headers/source changes.
(mail_display_load_images): New. Force HTTP image loading for the
current message.
* mail-config.c (mail_config_get_message_display_style,
mail_config_set_message_display_style): Updated and renamed from
mail_config_{get,set}_view_source
* mail-callbacks.c (load_images): New.
* folder-browser.c (folder_browser_set_message_display_style):
Renamed and updated from folder_browser_toggle_view_source.
* folder-browser-factory.c (verbs): Add ViewLoadImages.
(control_activate): Update for normal/headers/source change to
radio group.
svn path=/trunk/; revision=9820
* folder-browser-factory.c (verbs): Update for changes in
evolution-mail.xml (many commands were renamed to better match the
current menu layout).
(pixcache): Refer to commands via their paths in /commands/
rather than hardcoding their menu paths.
svn path=/trunk/; revision=9816
2001-05-14 Jon Trowbridge <trow@ximian.com>
* mail-search.c (mail_search_construct): Put frame around dialog
vbox, put mail subject in that frame's label. (Patch by Duncan.)
(mail_search_set_subject): Break out subject-setting code.
Truncate long subjects with ellipses.
svn path=/trunk/; revision=9813
2001-05-14 Duncan Mak <duncan@ximian.com>
* mail-search.c (mail_search_construct): set the dialog's
window_icon to jimmac's new find_message.xpm.
svn path=/trunk/; revision=9808
* mail-mlist-magic.c: Remove this... it's not used any more.
* folder-browser.c:
* message-browser.c: Remove references to mail-mlist-magic.h
svn path=/trunk/; revision=9800
* mail-config.glade: Split "Other" page into three pages, Display,
Composer, and PGP. Add HTML image stuff on the Display page and
default forward style on the Composer page.
* mail-config.c (mail_config_get_default_forward_style,
mail_config_set_default_forward_style): User-specified default
style for forwarding messages.
(config_read, mail_config_write_on_exit): Deal with forward style.
* mail-accounts.c: Handle HTML image display options and default
forward style.
* mail-callbacks.c (forward): New. Forward in the user-selected
default style.
(forward_inline, forward_quoted): Simplify these some. Remove the
fallback to forward attached when forwarding multiple messages: it
should just forward the multiple messages inline or quoted in
those cases. (Which it doesn't yet, but that's a bug.)
* folder-browser.c (context_menu): Remove "Forward inline" and
make "Forward" call forward() rather than forward_attached().
* folder-browser-factory.c: Update command/menu/toolbar/pixmap
gunk for the "MessageForwardAttached" vs "MessageForward" split.
* mail-session.c (mail_session_get_type):
* mail-format.c (format_mime_part):
* mail-account-gui.c (setup_service): Fix warnings.
svn path=/trunk/; revision=9792
2001-05-14 Jon Trowbridge <trow@ximian.com>
* folder-browser.c (folder_browser_config_search): Use secondary
searches here, so that we control the interference between the two
bits of searching UI.
2001-05-13 Jon Trowbridge <trow@ximian.com>
* mail-search.c (mail_search_construct): Destroy the MailSearch
dialog if the underlying MailDisplay is destroyed. I don't like
the way that label in the dialog with the message subject in it
looks, so I've #ifdef-ed it out for now. Center the Matches
label --- it makes the dialog look more balanced, I think.
(dialog_clicked_cb): Changed to reflect adjusted
ESearchingTokenizer API, using primary searches.
(toggled_case_cb): Use the primary search API.
* e-searching-tokenizer.c: Make searching routines utf8-friendly.
Rationalize how the match begin/end markup is handled; allow for
begin/end markup that varies by search. Add concept of primary and
secondary matching, to disentangle possible interactions between
search-bar searches and search-dialog searches.
svn path=/trunk/; revision=9789
2001-05-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-local.c (mail_local_storage_shutdown): Get rid of this - we
don't need it.
* component-factory.c (owner_unset_cb): Don't unref the LocalStore
- we don't own a ref on it!!
svn path=/trunk/; revision=9787
2001-05-13 Duncan Mak <duncan@ximian.com>
* mail-search.c (begin_cb): Updates the subject on refresh and
sets subject to "Untitled Message" if subject is NULL.
(mail_search_construct): Moved msg_subject to its own GtkLabel,
sets subject to "Untitled Message" if subject is NULL. Give focus
to entry by default. Made <enter> in entry run
dialog_clicked_cb by setting gnome_dialog_editable_enters.
svn path=/trunk/; revision=9786
2001-05-12 Gediminas Paulauskas <menesis@delfi.lt>
* folder-browser-factory.c: load pixmaps for MessageCopy and
MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu>
for a patch.
2001-05-12 Gediminas Paulauskas <menesis@delfi.lt>
* evolution-mail.xml: add pixmaps for MessageCopy and
MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu>
for a patch.
2001-05-12 Gediminas Paulauskas <menesis@delfi.lt>
* po/POTFILES.in: update with new/moved files.
also:
Removed duplicated DATADIR in mail/Makefile.am
fixed warning in e-search-bar.c in my recent code there
svn path=/trunk/; revision=9783
* mail-display.c (load_http): callback to use GNOME-VFS to load
http data.
(on_url_requested): Handle http: URLs that refer to either MIME
parts or web data.
(mail_display_redisplay_when_loaded): Moved out of
mail_content_loaded and made more generic.
* mail-format.c (add_url): Handle two different kinds of URLs
(URLs that point to CamelMimeParts and URLs that point to
GByteArrays).
(mail_content_loaded): Use mail_display_redisplay_when_loaded.
(format_mime_part): Renamed from "call_handler_function". Also,
record Content-Location if the part has one. (This is not yet 100%
correct: it doesn't deal with relative URLs correctly.)
(handle_text_html): Use Content-Location URL rather than
Content-ID, when available (will help deal with relative URLs once
GtkHTML supports that better).
(etc): Update for changes.
* mail-config.c (mail_config_get_http_mode,
mail_config_set_http_mode): get/set HTTP image downloading mode.
(config_read, mail_config_write_on_exit): save/load that data.
svn path=/trunk/; revision=9773