aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail.h
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-08-11 01:28:52 +0800
committerPeter Williams <peterw@src.gnome.org>2001-08-11 01:28:52 +0800
commit5ffaca0f8dc9d56783be9e8dd5c6661bde2269b2 (patch)
tree1dfdf5b18ce64dbafe1acd6717cab9cd82be97f7 /mail/mail.h
parent2f81032abc0e68f1a2cdbc88c23b0febd2524bb1 (diff)
downloadgsoc2013-evolution-5ffaca0f8dc9d56783be9e8dd5c6661bde2269b2.tar.gz
gsoc2013-evolution-5ffaca0f8dc9d56783be9e8dd5c6661bde2269b2.tar.zst
gsoc2013-evolution-5ffaca0f8dc9d56783be9e8dd5c6661bde2269b2.zip
Don't load the storage if it isn't enabled. (mail_remove_storage_by_uri):
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
Diffstat (limited to 'mail/mail.h')
-rw-r--r--mail/mail.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/mail.h b/mail/mail.h
index b8254591c9..c1dc0d5acf 100644
--- a/mail/mail.h
+++ b/mail/mail.h
@@ -67,11 +67,13 @@ char *mail_identify_mime_part (CamelMimePart *part, MailDisplay *md);
GtkWidget *mail_view_create (CamelFolder *source, const char *uid, CamelMimeMessage *msg);
/* component factory for lack of a better place */
+void mail_load_storage_by_uri (GNOME_Evolution_Shell shell, const char *uri, const char *name);
/*takes a GSList of MailConfigServices */
void mail_load_storages (GNOME_Evolution_Shell shell, const GSList *sources, gboolean is_account_data);
void mail_hash_storage (CamelService *store, EvolutionStorage *storage);
EvolutionStorage *mail_lookup_storage (CamelStore *store);
+void mail_remove_storage_by_uri (const char *uri);
void mail_remove_storage (CamelStore *store);
void mail_storages_foreach (GHFunc func, gpointer data);
int mail_storages_count (void);
d94f97bbe29560f10ad71b6'>Rejoice, for the long awaited upgrade to kde 3.1.1 is here!alane2003-04-063-2/+2 * Clear moonlight beckons.ade2003-03-072-1/+1 * never should have been therealane2003-01-291-51/+0 * update to 3.1 official releasealane2003-01-298-150/+309 * 1. Update Doxygen to 1.2.18. Yay!alane2002-10-161-10/+18 * Update MD5 for KDE 3.0.4. The pkg-plist may not be right, though. I missedalane2002-10-121-1/+1 * Update to 3.0.3. Not much changed here: [1] i18n PKGNAMEs converted towill2002-08-252-28/+3 * BerkeleyDB cleanup - stage 3ade2002-08-231-1/+1 * Update to 3.0.2 -- full log available in ports/x11/kde3/Makefile,v 1.51.will2002-07-052-2/+2 * Upgrade to KDE 3.0.1. The delay in this upgrade is mainly due to thewill2002-06-163-36/+51 * Fix PLISTlioux2002-05-011-29/+257 * Please welcome Qt3/KDE3 to our ports tree. This includes work since thewill2002-04-224-65/+15 * Fix the KDE ports to not use objprelink, if OSVERSION >= 500029. This iswill2002-03-301-1/+6 * Bring in a few changes to the KDE ports infrastructure, and some fixes.will2002-01-111-16/+3 * If !WANT_KDE_NDEBUG and !PARALLEL_PACKAGE_BUILDING, also addwill2002-01-081-0/+3 * Conditionalize use of objprelink based on whether we're running onwill2002-01-051-3/+8 * Do not include malloc.hdemon2001-12-181-0/+11 * Fix a problem with auto{conf,make}: some build magic was introduced topetef2001-12-081-1/+1 * Upgrade KDE to 2.2.2:will2001-12-042-2/+23 * Upgrade to 2.2.1.demon2001-10-273-2/+4 * Set DIST_SUBDIR=KDEdemon2001-09-112-1/+2 * MAINTAINER -> kde@FreeBSD.orgdemon2001-09-011-1/+1 * Depend on kdebase rather that kdelibs.demon2001-08-241-1/+1 * Upgrade to 2.2demon2001-08-214-90/+198 * *sigh* They changed the path to the tarballs again. This was verifiedwill2001-08-161-1/+1 * Overhaul QT/KDE support:will2001-04-031-10/+1 * Update -> 2.1.1.demon2001-04-032-2/+2 * Add kdesdk.demon2001-03-02