aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-07-14 01:35:51 +0800
committerPeter Williams <peterw@src.gnome.org>2001-07-14 01:35:51 +0800
commit54e037a91cf1de9d82f87675e1bf857d90763f4d (patch)
tree65a5f80979106de683a0ae5b712060eae5c4d1ec /camel
parentfd982262e8f6b1ce2002641bce8e46e324e60296 (diff)
downloadgsoc2013-evolution-54e037a91cf1de9d82f87675e1bf857d90763f4d.tar.gz
gsoc2013-evolution-54e037a91cf1de9d82f87675e1bf857d90763f4d.tar.zst
gsoc2013-evolution-54e037a91cf1de9d82f87675e1bf857d90763f4d.zip
Let people install as non-root, but give them a bigass warning so they're
2001-07-13 Peter Williams <peterw@ximian.com> * Makefile.am (install-exec-local): Let people install as non-root, but give them a bigass warning so they're not allowed to complain when it doesn't work right. * camel-remote-store.c (sync_remote_folder): New function: hash table callback. (remote_disconnect): If cleanly disconnecting, sync our folders. Fixes deadlocks on exit (folders syncing after store disconnects) and also makes sense. svn path=/trunk/; revision=11090
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog12
-rw-r--r--camel/Makefile.am26
-rw-r--r--camel/camel-remote-store.c14
3 files changed, 48 insertions, 4 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index d5760cc10e..d1abaa0b19 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,15 @@
+2001-07-13 Peter Williams <peterw@ximian.com>
+
+ * Makefile.am (install-exec-local): Let people install as non-root,
+ but give them a bigass warning so they're not allowed to complain when
+ it doesn't work right.
+
+ * camel-remote-store.c (sync_remote_folder): New function:
+ hash table callback.
+ (remote_disconnect): If cleanly disconnecting, sync our folders. Fixes
+ deadlocks on exit (folders syncing after store disconnects) and also makes
+ sense.
+
2001-07-13 Jeffrey Stedfast <fejj@ximian.com>
* camel-uid-cache.c (camel_uid_cache_new): We now use a structure
diff --git a/camel/Makefile.am b/camel/Makefile.am
index 408a0e33d0..7dafb8bf83 100644
--- a/camel/Makefile.am
+++ b/camel/Makefile.am
@@ -204,13 +204,31 @@ camel-lock-helper: camel-lock-helper.o camel-lock.o
if CAMEL_LOCK_HELPER_SETUID
install-exec-local:
- chown $(CAMEL_LOCK_HELPER_USER) $(DESTDIR)$(sbindir)/camel-lock-helper
- chmod u+s $(DESTDIR)$(sbindir)/camel-lock-helper
+ @if test `whoami` = root ; then \
+ chown $(CAMEL_LOCK_HELPER_USER) $(DESTDIR)$(sbindir)/camel-lock-helper ; \
+ chmod u+s $(DESTDIR)$(sbindir)/camel-lock-helper ; \
+ else \
+ echo '*** WARNING ***' ; \
+ echo "Camel will not be able to open mbox files until you perform the following steps:" ; \
+ echo " 1. Become root" ; \
+ echo " 2. chown $(CAMEL_LOCK_HELPER_USER) $(DESTDIR)$(sbindir)/camel-lock-helper" ; \
+ echo " 3. chmod u+s $(DESTDIR)$(sbindir)/camel-lock-helper" ; \
+ echo '*** WARNING ***' ; \
+ fi
endif
if CAMEL_LOCK_HELPER_SETGID
install-exec-local:
- chgrp $(CAMEL_LOCK_HELPER_GROUP) $(DESTDIR)$(sbindir)/camel-lock-helper
- chmod g+s $(DESTDIR)$(sbindir)/camel-lock-helper
+ @if test `whoami` = root ; then \
+ chgrp $(CAMEL_LOCK_HELPER_GROUP) $(DESTDIR)$(sbindir)/camel-lock-helper ; \
+ chmod g+s $(DESTDIR)$(sbindir)/camel-lock-helper ; \
+ else \
+ echo '*** WARNING ***' ; \
+ echo "Camel will not be able to open mbox files until you perform the following steps:" ; \
+ echo " 1. Become root" ; \
+ echo " 2. chgrp $(CAMEL_LOCK_HELPER_GROUP) $(DESTDIR)$(sbindir)/camel-lock-helper" ; \
+ echo " 3. chmod g+s $(DESTDIR)$(sbindir)/camel-lock-helper" ; \
+ echo '*** WARNING ***' ; \
+ fi
endif
diff --git a/camel/camel-remote-store.c b/camel/camel-remote-store.c
index 65445189fd..823a4673f4 100644
--- a/camel/camel-remote-store.c
+++ b/camel/camel-remote-store.c
@@ -281,6 +281,16 @@ remote_connect (CamelService *service, CamelException *ex)
return TRUE;
}
+
+static void
+sync_remote_folder (gpointer key, gpointer value, gpointer data)
+{
+ CamelFolder *folder = CAMEL_FOLDER (value);
+
+ if (!camel_exception_is_set ((CamelException *) data))
+ camel_folder_sync (folder, FALSE, (CamelException *) data);
+}
+
static gboolean
remote_disconnect (CamelService *service, gboolean clean, CamelException *ex)
{
@@ -292,6 +302,10 @@ remote_disconnect (CamelService *service, gboolean clean, CamelException *ex)
store->timeout_id = 0;
}
+ if (clean)
+ /* sync all folders */
+ g_hash_table_foreach (CAMEL_STORE (store)->folders, sync_remote_folder, ex);
+
if (!CAMEL_SERVICE_CLASS (store_class)->disconnect (service, clean, ex))
return FALSE;
graph'>* - update to 4.2.1rm2011-11-193-7/+9 * Remove trailing whitespaces.ehaupt2011-11-191-1/+1 * - Update to 1.4.0.7miwi2011-11-149-104/+38 * Remove CMAKE_USE_PTHREAD from the ports using it.rakuco2011-11-141-1/+0 * - fix broken layout in mrtgohauer2011-11-142-0/+19 * - Update to 1.5.1lme2011-11-132-3/+3 * Mark broken on powerpc as well as sparc64. (In fact, on all the tier-2s.)linimon2011-11-101-3/+3 * Freshmeat is now called Freecode. Change all freshmeat.net URLs for toehaupt2011-11-101-1/+1 * - Remove WITH_FBSD10_FIX, is no longer neededmiwi2011-11-091-1/+0 * - Update to 1.11sunpoet2011-11-062-19/+24 * Update to version 0.82pawel2011-11-052-4/+3 * Update to 2.9mm2011-11-052-4/+3 * - Update to 2.06jadawin2011-11-023-13/+18 * Remove ports@ ports that have been DEPRECATED for at least 1 monthdougb2011-11-028-679/+0 * - Fix memleak (obtained from upstream commit: 6ef6907642247c663b9b8964b9fd44a...zi2011-11-023-9/+25 * Remove references to unsupported FreeBSD versions. Mostly of the form:dougb2011-11-021-7/+1 * DellMonitor provides custom modeling of devices running the Dell OpenManagecrees2011-10-317-0/+55 * This ZenPack leverages the libvirt API for monitoring virtualization serverscrees2011-10-317-0/+53 * Zenoss comes with the nagios command check_ping. This zenpack implements thatcrees2011-10-317-0/+50 * This ZenPack adds a portlet called "Show Graph" which enables users to show anycrees2011-10-317-0/+52 * This ZenPack consists of a report for listing each MAC address and the Devicecrees2011-10-317-0/+57 * - Update to 1.0.4swills2011-10-302-3/+3 * This ZenPack provides performance monitoring of the Apache HTTP Server.crees2011-10-307-0/+47 * This ZenPack provides the ability to quickly search for Devices by their namecrees2011-10-307-0/+50 * - Fix build on FreeBSD 10beat2011-10-295-3/+9 * - Update to 0.8.7h.zi2011-10-284-13/+18 * When troubleshooting network issues, it can be very useful to have all thecrees2011-10-277-0/+62 * Add patch fixing Cavebear Ethernet manufacturer listings locationpawel2011-10-262-0/+15 * Update to 0.9.8ehaupt2011-10-242-5/+5 * The vast majority of pkg-descr files had the following format when theydougb2011-10-2416-36/+9 * Remove more tags from pkg-descr files fo the form:dougb2011-10-2414-44/+5 * - Return my ports back to the pool. I was unable to make any fixes tostas2011-10-242-2/+2 * This ZenPack is currently used by the HP ProLiant Monitor, Dell Monitor and ODBCcrees2011-10-227-0/+61 * This ZenPack provides additional monitoring options for Dell machines withcrees2011-10-197-0/+62 * Update to 1.0.12ehaupt2011-10-183-37/+52 * - Update MASTER_SITES and WWWehaupt2011-10-183-51/+17 * Support USE_TKehaupt2011-10-181-6/+4 * - fix build for FreeBSD-10dinoex2011-10-181-0/+4 * - update to 0.2.15eadler2011-10-163-5/+5 * - update to 1.8.8eadler2011-10-1510-64/+42 * As previously advertised, complete removal of vulnerable ports thatdougb2011-10-1520-1691/+0 * Add new mirror, apparently the current mirrors are somewhat unreliablecrees2011-10-101-1/+2 * Remove ports maintainted by ports@ which have passed their EXPIRATION_DATEdougb2011-10-094-59/+0 * Looks like it was a false negative on distfile tests; undeprecate.crees2011-10-081-3/+0 * - Updated to 0.2.11bglarkin2011-10-072-5/+5 * - Updated to 4.1.16dglarkin2011-10-072-8/+8 * As previously advertised, remove ports that previously had beendougb2011-09-309-502/+0 * - Add configtest command to rc scriptzi2011-09-301-1/+2 * - Add a patch that allows packet injection with capable wireless chipsets inlme2011-09-302-4/+16 * - Instruct portscout to ignore this port due to false positiveszi2011-09-291-3/+5 * - Reset maintainerwen2011-09-272-2/+2 * Mark FORBIDDEN the remaining ports that are vulnerable for more thandougb2011-09-261-0/+3 * - Update to 2.1.1 [1]zi2011-09-263-14/+20 * - Should use LOGIN unless there's a valid reason not to.zi2011-09-261-1/+2 * - Update to 1.3.5zi2011-09-264-23/+33 * - Silence startup noise [1]zi2011-09-262-3/+13 * - Add LICENSEzi2011-09-261-0/+3 * - Merge in Debian patch to allow daemonizationzi2011-09-263-0/+131 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-2428-75/+63 * 2011-09-23 devel/libnotifymm: Doesn't build and isn't used by anything.bapt2011-09-238-119/+0 * - update to Innovation-Release 1.1.11i4ohauer2011-09-222-3/+3 * - update to 1.5.0flo2011-09-207-750/+329 * - Change PERL_MODBUILD to "yes" for all values less than or equal to 5.8.0+sunpoet2011-09-171-1/+1 * - Change PERL_CONFIGURE to "yes" for all values less than or equal to 5.8.0+sunpoet2011-09-173-3/+3 * Set LATEST_LINK to not overlap with net-mgmt/collectderwin2011-09-131-0/+2 * - Add p5-FusionInventory-Agent 2.1.9sunpoet2011-09-135-0/+339 * - Track dependencies after databases/gdbm updategabor2011-09-121-1/+2 * This patch adds the ability to specify the path to the INDEXdougb2011-09-102-0/+109 * Fix a typo.olgeni2011-09-092-2/+2 * Whitespace fix.olgeni2011-09-091-1/+1 * 2011-09-01 korean/hlatexfonts-ocf: No more public distfilesbapt2011-09-078-84/+0 * - Update to 2.01culot2011-09-074-14/+20 * New port: net-mgmt/collectd5 (repocopy from net-mgmt/collectd)zi2011-09-071-0/+1 * Repocopy from net-mgmt/collectdzi2011-09-073-58/+34 * Add CONFLICT for newly repocopied net-mgmt/collectd5zi2011-09-071-0/+2 * - Add patch to fix problem with percent of UCD-SNMP-MIB::dskTablesylvio2011-09-072-1/+12 * Fix build error with clang.vanilla2011-09-061-4/+6 * - Remove port from incorrect category; it will be re-added to 'security'eadler2011-09-044-79/+0 * Massh makes it possible to perform the following on hundreds, or eveneadler2011-09-044-0/+79 * s/EXPIRATION/EXPIRATION_DATE/dougb2011-09-032-2/+2 * Add EXPIRATION to py-snmp, and DEPRECATED and EXPIRATION todougb2011-09-032-0/+4 * Update to 4.044.tobez2011-09-022-3/+3 * Remove unneeded graph.gif, as it is now included with nagios 3.3.xzi2011-09-012-2/+0 * - Update to 0.2.14dhn2011-08-302-4/+7 * Potential fix build on sparc64lme2011-08-292-2/+11 * - add OPTION for PY4SUITE which is needet for create_html_table.pyohauer2011-08-285-20/+41 * This is a PERL interface to the Zenoss Monitoring Systemcrees2011-08-265-0/+79 * Rename www/p5-FastCGI to reflect official module name (FCGI) www/p5-FCGI.az2011-08-231-1/+1 * Geocities has been gone for almost 2 years now, so let's removedougb2011-08-232-4/+0 * - Update to 3.3.1 [1]zi2011-08-2310-326/+273 * - update to version 1.1.11i2ohauer2011-08-222-3/+3 * - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is definedohauer2011-08-214-6/+7 * - Update to 1.6.4culot2011-08-162-6/+6 * - Update to 1.8sylvio2011-08-163-3/+6 * - Update to 0.4.1swills2011-08-153-8/+34 * - Fix to location of mib modulessylvio2011-08-144-4/+28 * Nagios plugin for checking tftp servers. This plugin can retrieve a file andswills2011-08-145-0/+98 * Update MASTER_SITES, distfile is not hosted in my LOCAL directory anymore.ehaupt2011-08-131-3/+1 * Fix PORTSCOUT syntaxzi2011-08-091-1/+1 * - update to 4.3.4dinoex2011-08-064-7/+6 * I forgot to add a patch...kuriyama2011-08-062-1/+21 * - Update to 0.21wen2011-08-042-3/+3 * Remove WWW entries from unmaintained ports that return 404 or where the domainehaupt2011-08-031-2/+0 * Deprecate some ports where I can't find distfiles and upstreambapt2011-08-033-0/+9 * Mark BROKEN: Does not fetchbapt2011-08-031-0/+2 * Fix master_sitebapt2011-08-031-1/+1 * Deprecate unmaintained ports marked as BROKEN for more then 6 monthbapt2011-08-021-0/+3 * Update to 0.2.3zi2011-08-023-16/+30 * Pacify portlintzi2011-08-021-2/+4 * Bye bye abandonwares (part 4)bapt2011-08-0113-254/+0 * Update to 0.600.0arved2011-07-303-3/+21 * - Chase net-snmp shlib version bump.sylvio2011-07-2813-18/+23 * - Added patch files to fix problem in build of FreeBSD-9.x and problem with "...sylvio2011-07-285-0/+228 * - Update to 5.7sylvio2011-07-2831-1447/+108 * An open source application, server and network management platform based on thecrees2011-07-2219-0/+18794 * Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,linimon2011-07-211-1/+1 * - Update to 0.2.2jadawin2011-07-203-4/+3 * - Update to 2.0.araujo2011-07-206-247/+801 * Return net-mgmt/grepip back to the fold.cy2011-07-191-0/+1 * Bring back this port. Host the distfile on my website. Assume ownershipcy2011-07-193-0/+42 * check_hp_bladechassis is a plugin for the Nagios monitoring software whichzi2011-07-194-0/+44 * - set IS_INTERACTIVE=yesohauer2011-07-194-246/+640 * - update to 1.1.11i1ohauer2011-07-192-4/+6 * Fix build under clangzi2011-07-182-0/+13 * Update to 0.21arved2011-07-172-3/+4 * Fix build with gccarved2011-07-171-0/+2 * Update my email address on the ports I maintain.zi2011-07-167-7/+7 * Fix build when using libgcrypt 1.5jpaetzel2011-07-154-2/+26 * Set maintainer of Horde ports to horde@FreeBSD.orgmm2011-07-151-1/+1 * Fix build with clangarved2011-07-141-0/+2 * - Update to 2.3.6jadawin2011-07-123-693/+774 * virtinst is a module to help in starting installations of Fedora/Reddecke2011-07-095-0/+218 * Virt Viewer provides a graphical viewer for the guest OSdecke2011-07-095-0/+43 * - Take maintainership.kuriyama2011-07-051-1/+2 * Fix crash when reporting IPv6 error.demon2011-07-041-2/+2 * Fix previous commit in which I included the wrongsahil2011-07-042-2/+2 * Add option to build with libgcrypt.sahil2011-07-042-0/+12 * - remove workaround, it's now implemented in the user/groupohauer2011-07-021-5/+0 * - Update to 0.2.0miwi2011-07-025-92/+17 * - Update to 0.20.wxs2011-06-283-4/+9 * - Fix build after net-mgmt/py-snmp4 updatemiwi2011-06-271-1/+2 * Update to 0.5jlaffaye2011-06-272-4/+3 * - Update to 3.1.1miwi2011-06-263-407/+502 * - Reenable BIND supportmiwi2011-06-262-24/+6 * - Update to 0.0.8amiwi2011-06-253-561/+10 * - Update to 0.2.11amiwi2011-06-253-44/+13 * - Update to 4.1.16amiwi2011-06-253-374/+63 * - Update to 1.1miwi2011-06-252-3/+3 * Set PKGNAMEPREFIX to p5-skreuzer2011-06-251-0/+2 * This module implements an alternative "event dispatcher" for Net::SNMP, usingskreuzer2011-06-245-0/+40 * - Replace ../../authors in MASTER_SITE_SUBDIR with CPAN:CPANID macro.az2011-06-213-3/+6 * - Add LICENSEdhn2011-06-212-0/+15 * - Replace ../../authors in MASTER_SITE_SUBDIR with CPAN:CPANID macro.az2011-06-203-3/+3 * Another bunch of deprecation: no more public distfiles and/or abandonwarebapt2011-06-171-0/+3 * Mark broken some ports with unfetchable distfilesbapt2011-06-172-1/+3 * Fix installation and plist when the MYSQL option is offjlaffaye2011-06-172-3/+11 * - Update to 0.0.33.wxs2011-06-156-150/+42 * - Assign maintainer to submitter of previous PR.wxs2011-06-141-1/+1 * - Update to 0.45.wxs2011-06-146-5/+71 * Update to 3.0.4jlaffaye2011-06-124-27/+7 * Update to 3.0.4.1jlaffaye2011-06-122-5/+11 * Maintainers addresses are not valid anymore put the port back to the poolbapt2011-06-101-1/+1 * Update my e-mail to my FreeBSD one.jlaffaye2011-06-091-1/+1 * - switch to USERS/GROUPSbapt2011-06-082-50/+5 * - Update to 3.0.714culot2011-06-072-4/+4 * Return this to the pool at maintainer's request.linimon2011-06-071-1/+1 * - Update to 1.02culot2011-06-062-3/+3 * NagTail is like tail(1), but for the nagios status.dat file.wxs2011-06-058-0/+99 * - Update to 0.19.wxs2011-06-034-7/+14 * Initialize a variable in $PREFIX/bin/ipcount to avoid a warningdougb2011-05-311-4/+7 * - Fix a memory leak.wxs2011-05-314-0/+22 * Update to 0.9.7.1ehaupt2011-05-302-4/+5 * The check_mysql_slave plugin allows you to check that a particularwxs2011-05-295-0/+52 * Update to 0.9.7ehaupt2011-05-283-41/+43 * - Update to 3.2.25wxs2011-05-284-5/+18 * Fix redundant MASTER_SITES definition.ehaupt2011-05-271-1/+1