2001-11-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (construct): Don't make the account editor
modal either.
* mail-accounts.c (mail_add): Use the new global account druid
variable so that we can avoid having more than a single druid at a
time. If a druid already exists, bring it to the top.
(mail_edit): Same idea only for the account editor this time.
(mail_editor_destroyed): Set the global editor to NULL.
(mail_add_finished): Set the global druid to NULL.
(mail_delete): Don't allow any deletes if an account editor is
opened (we don't want to be able to delete the account we are
editing...)
(news_edit): Same thing for the news editor.
(news_editor_destroyed): Set the news editor to NULL.
(news_add): And again for the news add.
* mail-account-gui.c (service_check_supported): Updated to pass a
GtkWindow argument to mail_config_check_service().
* mail-config.c (mail_config_check_service): Now takes a GtkWindow
argument so we can set our parent window. Also, don't make this
dialog modal either.
* mail-config-druid.c (construct): Don't make this druid modal.
svn path=/trunk/; revision=14598
2001-10-30 <NotZed@Ximian.com>
* folder-info.c: Comment out the Folder: and you've got mail
prints.
* mail-config-druid.c (wizard_next_cb): If we have a next
function, honour if it tells us its going to set the page, and
dont set it, otherwise, set it to the next page, unless we're at
the end of our pages, and let the wizard do it itself.
(wizard_back_cb): Same for going back. Rest of fix for #12127,
see e-shell-startup-wizard for the rest.
(next_func): If we're not on the last page, tell the druid we're
gonna handle the next button, so we can sync properly with it,
needed for above changes.
(back_func): Similarly for going back past page 0.
(wizard_listener_event): We want to set the page to the actual one
asked for not, pagenum-1.
svn path=/trunk/; revision=14449
2001-10-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (service_check_supported): Don't allow an
auth-type to be set when saving the service.
(mail_account_gui_new): Initialize the source and transport
provider_type's here so we don't forget to do it when it matters.
(mail_account_gui_setup): Don't bother setting the provider_type's
here, they are already set in mail_account_gui_new() now.
svn path=/trunk/; revision=13968
* mail-callbacks.c (e_gnome_dialog_set_parent): Use
gtk_signal_connect_while_alive here so
e_gnome_dialog_parent_destroyed doesn't get called on an
already-destroyed dialog.
* mail-config-druid.c (*_prepare): Record which page we're
currently in.
(*_changed): Only update the druid buttons if we're the current
page. Fixes a problem that could make it impossible to get beyond
the first page of the setup wizard.
svn path=/trunk/; revision=13522
2001-09-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (wizard_finish_cb): Do not add the account
here as this is taken care of in mail_account_gui_save() since it
has to be able to set the default account.
* mail-config.c (mail_config_set_default_account): Don't allow the
index to become invalid.
* mail-account-gui.c (mail_account_gui_save): Add the account
before setting it as the default.
svn path=/trunk/; revision=13037
2001-09-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): Don't use
new_with_sig_file, that function no longer exists.
(forward_get_composer): Same here.
svn path=/trunk/; revision=12754
2001-09-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (evolution_mail_config_wizard_factory_fn):
We need to initialize all of the struct fields or else god knows
what will happen later when we try to use 'em. Also set a destroy
function for the MailConfigWizard so we don't leak it.
svn path=/trunk/; revision=12719
2001-08-24 Peter Williams <peterw@ximian.com>
* mail-config.c (add_shortcut_entry): Instead of using the length
of the shortcuts list as the index for the shortcut, use -1, which
means "last".
* mail-config-druid.c (druid_finish): Remove the account adding
stuff since that happens in wizard_finish now.
* mail-config.c (add_new_storage): New function. Add a
MailConfigAccount to the shell as a storage.
(maybe_add_shortcut): Renamed to new_source_created.
(new_source_created): Call add_new_storage here.
* component-factory.c (mail_remove_storage_by_uri): Don't warn
if the storage isn't remote... no point in making the caller
do extra work.
svn path=/trunk/; revision=12445
2001-08-22 Peter Williams <peterw@ximian.com>
Prevent the user from creating two accounts with the same name.
* mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount): Abort
if the account has the same name as another account.
* mail-account-gui.c (mail_account_gui_save): Don't let the user
save if the account has the same name as another account.
* mail-config-druid.c (management_check): Disable the next button
if the account name is the same as a preexisting account.
(construct): The only part of 'pages' that was being used was the
name. 'wizard_pages' now has the callbacks, while 'pages' is just
an array of char *'s.
(wizard_finish_cb): Save the account first because that's the
right way, and try to honor mail_account_gui_save's return value.
* mail-config.glade: Add a label noting that you're not allowed
to create two accounts with the same name.
svn path=/trunk/; revision=12384
2001-08-13 Peter Williams <peterw@ximian.com>
* mail-send-recv.c (mail_autoreceive_setup): Break most of the
functionality into a separate function.
(autoreceive_setup_list): Rename of mail_autoreceive_setup that is
passed a list of accounts.
(mail_autoreceive_setup_account): New function. Set up a single
account using autoreceive_setup_account.
* mail-send-receive.h: Prototype mail_autoreceive_setup_account.
* mail-account-gui.c (mail_account_gui_save): Instead of setting
up all accounts, set up only this source with the new
mail_autoreceive_setup_account.
* mail-config-druid.c (druid_finish): ... which means we can call
mail_config_add_account() after the MailConfigAccount has been
created by mail_account_gui_save() because we no longer need the
account to be in the list for mail_autoreceive_setup()
* mail-config.c (mail_config_add_account): ... which means we can
possibly add a shortcut to the account's sources's Inbox here.
(maybe_add_shortcut): New function. If the store is a storage, add
a shortcut to its inbox. Hope that /INBOX exists.
(add_shortcut_entry): New function. Creates a shortcut if it doesn't
yet exist.
2001-08-13 Peter Williams <peterw@ximian.com>
* mail-account-gui.c (service_complete): Take account of the fact that
service->path may be NULL (if service is a transport.)
* mail-config-druid.c (druid_finish): Bleah, bugfix in case the
account has no source.
svn path=/trunk/; revision=11961
2001-08-13 Anna Marie Dirks <anna@ximian.com>
* mail-config.glade: Changed all instances of "Wizard" and "Druid"
to "Assistant".
* mail-config-druid.c: Ditto.
svn path=/trunk/; revision=11960
2001-08-08 Peter Williams <peterw@ximian.com>
* component-factory.c (mail_load_storages): Don't load the storage
if it isn't enabled.
(mail_remove_storage_by_uri): New function. Goes through the
gymnastics of getting a CamelStore from the URI and calling
mail_remove_storage. Copied from mail_delete().
(mail_load_storage_by_uri): Break out the storage-loading part of
mail_load_storages into a single function.
(mail_load_storages): Just call mail_load_storage_by_uri several
times.
* mail.h: Prototype our new _by_uri functions.
* mail-accounts.c (news_add_destroyed): Instead of hacking around
mail_load_storages, call mail_load_storage_by_uri.
(mail_delete): Move this chunk of code into
mail_remove_storage_by_uri.
(mail_able): Add or remove the storage as necessary, with our
new _by_uri functions.
* mail-config-druid.c (druid_finish): See news_add_destroyed above.
svn path=/trunk/; revision=11881
2001-07-18 Jason Leach <jleach@ximian.com>
[Simplifying how default account is stored and used internally,
fixes possabilities of having multiple default accounts and things
like deleting the current default account]
* mail-account-gui.c (mail_account_gui_new): Update for new way of
finding out the default account.
(mail_account_gui_save): Ditto.
* mail-accounts.c (load_accounts): Ditto.
* mail-config-druid.c (make_default_account): Ditto.
* mail-config.c: Added an int MailConfig::default_account, to be
used instead of a 'default_account' boolean on each mail account.
(mail_config_set_default_account_num): New function, facilitates
things.
* Mail.idl: removed the Account::default_account boolean.
svn path=/trunk/; revision=11218
2001-07-09 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (setup_mime_tables): Handle application/pgp using
the text/plain handler.
* mail-account-gui.c (get_sensitive_widget): New function to determine
which widget is focused.
* mail-account-editor.c (apply_changes): Not only flip to the
notebook page that wasn't finished, but also grab the focus of the
incomplete widget.
* mail-config-druid.c (source_changed): Grab the focus of the
incomplete widget.
(transport_prepare): And here.
(identity_changed): Here too.
* mail-account-gui.c (mail_account_gui_identity_complete): Take an
incomplete argument so we can set which widget is incomplete and
then the caller can focus it or whatever.
(service_complete): Same.
(mail_account_gui_transport_complete): And again here.
(mail_account_gui_management_complete): And here too.
svn path=/trunk/; revision=10939
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
* mail-config-druid.c (make_default_account): Convert the result
of g_get_real_name() from the locale charset to UTF8. Noted by
Petter Sundlöf (NOT "Petter Sundl_" :)
svn path=/trunk/; revision=9481
2001-04-04 Gediminas Paulauskas <menesis@delfi.lt>
* mail-config-druid.c (create_html): set content type to utf8.
* mail-config.c (mail_config_check_service): fix warning.
* mail-display.c (link_open_in_browser): just call on_link_clicked().
(link_menu): Open link works.
(link_copy_location): claim selection.
(on_selection_get): new function, selection handler.
(mail_display_new): connect to selection_get. FIXME: does not work.
2001-04-04 Gediminas Paulauskas <menesis@delfi.lt>
* importer/importer.c (create_html): copied newer and fixed function
from mail/mail-config-druid.c.
(html_new, put_html): removed.
(show_import_wizard): use create_html instead of html_new/put_html pair.
* importer/importer.glade: a try to set logo. removed source generation
options.
svn path=/trunk/; revision=9161
2001-03-29 Kjartan Maraas <kmaraas@gnome.org>
* *.*: Cleaned up #includes. Remove unneccesary includes of
<gnome.h>, <gtk/gtk.h>, <bonobo.h> and replaced with more
fine grained headers where needed. Also marked a bunch of
strings for translations and added some missing prototypes.
svn path=/trunk/; revision=9025
* mail-config-druid.c (construct): set the initial druid button
state after doing the mail_account_gui_setup, since that may
invoke signal handlers that will change it.
svn path=/trunk/; revision=8980
* mail-config.glade: Probably the very last new config dialog
ever. (Ha ha). From Anna, based on a story by me.
* mail-account-gui.c: New code for the new mail-config.glade. This
abstracts out all of the common code between the account editor
and the druid. It also handles the spiffy new provider-specific
config stuff.
FIXME: The code to check if a service is ok or not is no longer
there... waiting until the online/offline stuff from the shell
appears.
* mail-account-editor.c, mail-config-druid.c: These are much
smaller now, since most of the interesting bits moved to
mail-account-gui.c
* mail-accounts.c: Add an enabled/disabled column/button to
replace the checkbox that used to be in the editor, because it
really makes more sense to have it out here. This looks ugly.
Probably ought to ETable it...
(load_accounts): Fill in the enabled column.
(mail_select, mail_unselect): toggle the sensitivity and name of
the Enable/Disable button appropriately
(mail_able): Handle the enable/disable button.
* mail-config.c: Remove reply-to from MailConfigIdentity since it
didn't belong there (and wasn't being saved anyway).
(mail_config_check_service): Simplify this a bit. This really
needs to pop up a dialog with a "connecting..." message and a
cancel button.
svn path=/trunk/; revision=8971
* mail-config-druid.c (incoming_check, incoming_type_changed,
transport_check, transport_type_changed):
* mail-account-editor.c (transport_type_changed, source_check):
Use the new URL part macros
* mail-config.c (check_service_check): Use provider authtype list
if not connecting.
svn path=/trunk/; revision=8873
2001-03-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c: Don't access the `active` data member of a
GtkToggleButton directly - bad programming, shame on me.
* mail-account-editor.c: Same here.
* mail-accounts.c: And here too.
* mail-callbacks.c (empty_subject_destroyed): And finally here.
* mail-crypto.c (pgp_mime_part_sign): Correcty set the mime type
for the multipart. Hmmm, still doesn't wrap correctly. NotZed?
Ideas?
(pgp_mime_part_encrypt): Here too.
svn path=/trunk/; revision=8560
2001-02-22 Jeffrey Stedfast <fejj@ximian.com>
* openpgp-utils.c (openpgp_verify): Fixed memory corruption bug.
* mail-format.c (try_inline_pgp_sig): Check to make sure the
validity isn't NULL.
(handle_multipart_signed): Check for NULL validities.
2001-02-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_uri_to_folder): Protect against NULL
uri's.
* mail-vtrash.c: Do mutex locking on the global hash table - this
should clear up some segfaults ;-)
* mail-config-druid.c (druid_finish): Set the 'enabled' member of
the source to TRUE if the URL exists else set to FALSE.
(incoming_type_changed): If the provider chosen is "None" then
gray-out the auto-check widgets and the check-settings, otherwise
sensitize them.
* mail-account-editor.c (construct): Added a few more settings.
(apply_changes): Save the new settings.
* mail-config.c (service_copy): Updated.
(config_read): Read in whether or not the account is enabled.
(mail_config_write): Save if the account is enabled or not.
svn path=/trunk/; revision=8349
2001-02-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (construct): Set the sensitivity of the spin
button based on the state of the checkbox.
svn path=/trunk/; revision=8130
2001-02-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (on_object_requested): Cast the CamelMedium to a
CamelMimePart before performing actions on it as if it were a
CamelMimePart.
* mail-config-druid.c (druid_finish): Save the auto-check settings.
(construct): Initialize auto-check widgets.
(mail_config_druid_get_auto_check): New function
(mail_config_druid_get_auto_check_minutes): New functions
* mail-config.c (config_read): Read in whether or not to check
every x minutes.
(mail_config_write): Save auto-check config data and SSL.
svn path=/trunk/; revision=8126
2001-02-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (set_defaults): Updated to checkfor
"(none)".
* mail-account-editor.c (entry_changed): Make sure the email
address is valid.
* mail-config-druid.c (identity_check): Check to make sure we have
a valid email address.
(is_email): New function to check a string to see if it's a valid
email address.
svn path=/trunk/; revision=8034
2001-02-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (construct): Keep track of the CheckSettings
check boxes.
(transport_next): Connect if the user says so.
(incoming_next): Same. Also, don't jump to the next page if
test-settings fails.
svn path=/trunk/; revision=7984
2001-02-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (incoming_next): Updated to not connect when
getting a list of authtypes.
(transport_next): No longer connects - again, this is
useless. Read the apply_changes argument for the reason why.
* mail-account-editor.c (apply_changes): Updated. Set the
'connect' argument to FALSE for now, this basically means that the
call is worthless tho so it may be best to either get rid of the
checks altogether or else make it connect.
(source_auth_init): Don't connect here, it's just plain annoying.
(transport_construct_authmenu): Same here.
* mail-config.c (mail_config_check_service): Now takes a connect
argument.
svn path=/trunk/; revision=7981
2001-01-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (set_defaults): Turns out that I was wrong
about the g_get_real_name mem leak, god damn glib for not
following the const char* standard.
svn path=/trunk/; revision=7882
2001-01-28 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (management_prepare): Use UTF-8.
(set_defaults): Use UTF-8 and also fixed a memory leak by freeing
the string returned by g_get_real_name().
(mail_config_druid_get_account_name): Use UTF-8.
(mail_config_druid_get_full_name): Same.
(mail_config_druid_get_email_address): Same.
(mail_config_druid_get_organization): Same.
* mail-account-editor.c (apply_changes): Save UTF-8 strings rather
than gtk strings.
(construct): Use the UTF-8 convenience functions to set the gtk
entries for the ID fields.
svn path=/trunk/; revision=7881
2001-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (set_defaults): Automagically fill in the
user's default transport if he/she has setup previous accounts.
svn path=/trunk/; revision=7736
* mail-config-druid.c (incoming_type_changed): Change "Path:"
label to "Namespace:" for IMAP. Use $MAILDIR rather than $MAIL for
Maildir. If $MAIL isn't set, guess.
svn path=/trunk/; revision=7714
2001-01-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (apply_changes): Modify to be able to
handle a NULL source_url.
(source_auth_init): Allow for a NULL source url.
(source_check): Same.
* mail-config.c (mail_config_write): Allow for NULL source
URLs. And while we're at it, NULL transport URLs as well. Might as
well save the use_ssl variable too.
(config_read): Same.
* mail-config-druid.c (druid_finish): Modify to allow a NULL
source url.
(incoming_next): Modify to check for a NULL source and jump to the
transport page if one is encountered (this means the user decided
not to config a source).
(incoming_type_changed): Modify to set all widgets insensitive if
the user selected the "None" source menu item (aka NULL provider).
(incoming_check): Modify to allow the user to go to the next page
when he/she has chosen "None" for their source type.
(mail_config_druid_get_source_url): Return NULL if the provider is
NULL.
(mail_config_druid_get_transport_url): Same.
svn path=/trunk/; revision=7561
2001-01-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (druid_finish): Fixed mail_load_storages to
make a mini GSList of the account, not the account->source. Oops.
* mail-accounts.c (news_delete): Updated to use the remove_news()
function.
* mail-config.c (mail_config_remove_news): New convenience
function for removing news accounts.
(mail_config_remove_account): Pretty much the same thing.
* mail-ops.c (do_send_queue): Get the X-Evolution-Transport URL
and use that if it exists, else fall back on the default
transport.
* mail-callbacks.c (composer_postpone_cb): Set an
X-Evolution-Transport header.
svn path=/trunk/; revision=7477
2001-01-12 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (mail_load_storages): Now takes a
'is_account_data' variable to specify whether the sources is a
list of accounts of a list of services. Basically, the only time
you should pass in FALSE is when you are setting up NNTP storages.
(add_storage): Now takes a 'name' argument that specifies the name
to use in the storage.
(owner_set_cb): Updated to pass TRUE for accounts and FALSE for
news servers into mail_load_storages.
svn path=/trunk/; revision=7469
2001-01-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.glade: Anna's dialogs.
* mail-config.c (mail_config_get_account_by_address):
Removed. Danw and I decided on setting a X-Evolution-Transport
header on messages going to the Outbox so we can later guess which
transport to use when sending it.
* mail-account-editor.c (apply_changes): Update to some day be
able to support SSL.
(construct): Update for Anna's dialogs...
* subscribe-dialog.c (populate_store_list): Updated to reflect
past changes to the mail-config API.
svn path=/trunk/; revision=7461
2001-01-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (construct): We don't want to be able to set
the reply-to in the config druid.
(druid_finish): Don't set a reply-to anymore.
(mail_config_druid_finalise): Don't unref the providers.
* mail-config.glade: Took out the Reply-To field in the druid.
svn path=/trunk/; revision=7431
2001-01-11 Miguel de Icaza <miguel@gnu.org>
* mail-config-druid.c (incoming_type_changed): Guess the default
MAIL value for MBOX and Maildir files.
svn path=/trunk/; revision=7430
2001-01-11 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.c (transport_next): If the service_check
fails, pop-up a warning dialog letting the user know he or she may
have problems and then let them continue on with their lives.
(incoming_next): Same (+ jump them over the auth page to the
transport page).
svn path=/trunk/; revision=7428
2001-01-10 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.c (transport_back): New callback to handle
when the user hits the "back" button when on the transport
page. This is needed to handle the case where we don't want to
show the user the auth page (due to there being no auth choices).
(incoming_next): If we are going to skip over the auth page, set
the 'have_auth_page' variable to FALSE.
(construct): Initialize the have_auth_page to TRUE.
svn path=/trunk/; revision=7375