aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-30 11:24:15 +0800
committerDan Winship <danw@src.gnome.org>2000-10-30 11:24:15 +0800
commitd4656431e9de8e6e3ab526d71323f0d0543c587e (patch)
tree59b0ff39e227e6079d696c3dd29c8e1e0344dec2 /camel/camel-store.c
parent9e6c10a18be76719fbba41c36c61abc9c1542710 (diff)
downloadgsoc2013-evolution-d4656431e9de8e6e3ab526d71323f0d0543c587e.tar.gz
gsoc2013-evolution-d4656431e9de8e6e3ab526d71323f0d0543c587e.tar.zst
gsoc2013-evolution-d4656431e9de8e6e3ab526d71323f0d0543c587e.zip
Improved IMAP namespace handling: leave the namespace in the
folder names rather than constantly prepending it and stripping it off. Also some subscription fixes. * camel-store.c (camel_folder_info_build): Fix for the case where @top isn't in @folders. * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Add a "short_name" argument rather than figuring it out ourselves. (imap_get_full_name): Implementation of CamelFolder::get_full_name that strips off namespace so the user doesn't have to see it. (imap_append_message, imap_copy_message_to, imap_move_message_to): Use folder->full_name rather than calling camel_imap_store_get_folder_path. * providers/imap/camel-imap-utils.c (imap_parse_list_response): Update this: make @flags a bitmask and @sep a char rather than a string. Make all of the out arguments optional. Handle literals in the server response. * providers/imap/camel-imap-store.c (imap_connect): Do a better job of getting the correct dir_sep for the namespace we're using. Construct a base_url here that will be used by get_folder_info. (camel_imap_store_folder_path): Removed (imap_folder_exists): Add an argument to return the short name of the folder (parsed out of the LIST response). Update for imap_parse_list_response change. (get_folder): Update for the various other changes. (get_folder_info): Update for the various other changes. Be more consistent about the returned layout: put everything underneath the "namespace" directory, including INBOX, even if it doesn't belong there. Don't destroy the list of subscribed folders until we've actually gotten the new list. (folder_subscribed, subscribe_folder, unsubscribe_folder): Use folder_name directly rather than camel_imap_store_folder_Path. * providers/imap/camel-imap-command.c (camel_imap_command): Update for folder name changes. svn path=/trunk/; revision=6256
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r--camel/camel-store.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c
index ac6337acac..c9236676b2 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -525,10 +525,15 @@ camel_folder_info_build (GPtrArray *folders, CamelFolderInfo *top,
/* Hash the folders. */
hash = g_hash_table_new (g_str_hash, g_str_equal);
+ pfi = top;
for (i = 0; i < folders->len; i++) {
fi = folders->pdata[i];
+ if (fi == top)
+ pfi = NULL;
g_hash_table_insert (hash, fi->full_name, fi);
}
+ if (pfi)
+ g_hash_table_insert (hash, pfi->full_name, pfi);
/* Now find parents. */
for (i = 0; i < folders->len; i++) {
-2/+0 * Clean up my pkg-descr files (spelling and whitespace).olgeni2010-08-041-2/+2 * Use RM macro (portlint).olgeni2010-08-041-1/+1 * Update x11-fonts/wqy to include the following improvements:delphij2010-08-044-36/+82 * Use WRKDIR correctly in do-install target.olgeni2010-08-031-3/+3 * Use INSTALL_DATA and make the installation steps more verbose,olgeni2010-08-031-3/+3 * Add moveable-type-fonts, a collection of open source fonts.olgeni2010-08-035-0/+111 * Connect khmeros, padauk and pingwimakc2010-08-031-0/+3 * Add new port x11-fonts/khmeros:makc2010-08-034-0/+68 * Add new port x11-fonts/padaukmakc2010-08-034-0/+45 * Add new port x11-fonts/pingwi:makc2010-08-035-0/+74 * - Respect PORTVERSIONsylvio2010-07-293-40/+37 * Take maintainer.naddy2010-07-271-1/+1 * Reset ahze@ due to maintainer-timeouts and no response to email.linimon2010-07-261-1/+1 * Update to 2.31: various additional characters.naddy2010-07-262-6/+5 * Update my email address to my new @FreeBSD.org addyjsa2010-07-251-1/+1 * Fix pkg-messagemakc2010-07-253-18/+21 * Update to 1.05.3.20100621.thierry2010-07-232-4/+4 * Update to 4.30makc2010-07-195-61/+196 * Add RUN_DEPENDS on x11-fonts/fontconfig, which is used in @exec.olgeni2010-07-021-1/+3 * - Use USE_TK.stefan2010-07-011-2/+4 * Remove run time dependency on perl.stefan2010-06-291-1/+2 * - Change my maintainer address.ashish2010-06-111-1/+1 * - Update to 0.5.10jacula2010-06-012-4/+4 * Connect isabellamakc2010-05-251-0/+1 * Add new port x11-fonts/isabella:makc2010-05-254-0/+56 * - Unbroke build with textproc/xmlto installedfluffy2010-05-101-0/+1 * The xfs startup script source still uses the RC_SUBR macro, whichmiwi2010-05-092-1/+2 * - Update to Xorg 7.5miwi2010-05-01113-325/+227 * - Update to 0.5.8jacula2010-04-242-5/+5 * Attach ecofont to the build.wxs2010-04-111-0/+1 * Ecofont is designed to conserve ink and toner by placing minute holes in thewxs2010-04-114-0/+57 * re-assign back to ports@pgollucci2010-04-051-1/+1 * Make fetchable. The original sitemaho2010-03-301-1/+3 * - update to 1.4.1dinoex2010-03-283-3/+3 * Begin the process of deprecating sysutils/rc_subr bydougb2010-03-271-1/+1 * Remove the note about x11-fonts/mathfonts, which has been removed.thierry2010-02-271-2/+0 * Back out until I re-gather error log.cracauer2010-02-131-1/+0 * Add missing dependency. This fixes a configure-time error.cracauer2010-02-131-0/+1 * Standart GOST font. GOST 2.304-81miwi2010-02-136-0/+71 * - update to jpeg-8dinoex2010-02-051-1/+1 * - Remove dead mirrorsamdmi32010-02-041-8/+2 * - some indent changesgarga2010-01-281-4/+4 * - Some indent changesgarga2010-01-281-11/+11 * Update to 1.05.2.20091227.thierry2010-01-153-18/+10 * - Update to 0.5.6pgollucci2010-01-044-27/+27 * - Restore maintainershippav2009-12-311-1/+1 * Remove depends on xorgahze2009-12-211-1/+2 * For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-218-21/+1 * - Remove mention of XF86Configpav2009-12-141-2/+1 * Update to 2.30ahze2009-12-142-4/+4 * Gentium is a typeface family designed to enable the diverse ethnicpav2009-12-076-85/+66 * Presenting GNOME 2.28.1 for FreeBSD. The official release notes for thismarcus2009-11-2910-25/+136 * - Update to 3.1miwi2009-11-202-5/+6 * Upgrade to the latest to make fetchable again.thierry2009-09-244-7/+9 * - Fix fetch by adding correct SF urls for different filesamdmi32009-09-221-6/+6 * Use the default MTREE_FILE.marcus2009-09-091-2/+0 * Move the definition of USE_PERL5_BUILD above the inclusion oflinimon2009-08-301-1/+2 * - Fix some more SF URLs, including ones in PATCH_SITES and comments (for cons...amdmi32009-08-281-1/+1 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-229-17/+11 * - Update to 0.6.17amdmi32009-08-084-7/+9 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-033-3/+3 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-1/+1 * - Update maintainer mail adressmiwi2009-07-141-1/+1 * - Reset maintainerpav2009-07-091-1/+1 * - Update to 0.6.16dhn2009-07-083-14/+32 * - Do not needlessly run-depend on perlamdmi32009-06-251-1/+2 * - Update pkg-messagepav2009-06-192-12/+18 * Convert most of remaining ports that depend on xorg-libraries toamdmi32009-06-094-4/+6 * . add linux-f10 ports to the rank of CONFLICTS for linux-fc4 ports;bsam2009-06-031-2/+2 * . add CONFLICTS to linux-f8 infrastructure ports;bsam2009-06-031-0/+3 * Here are new Linux Fedora 10 infrastructure ports.bsam2009-06-024-20/+23 * - Mark most of my ports MAKE_JOBS_SAFE=yespgollucci2009-05-161-0/+2 * - Update to 4.4.1pav2009-05-124-17/+26 * Update to 2.29ahze2009-05-022-4/+4 * Mark these ports has being multiple jobs safe.marcus2009-04-111-0/+1 * - Update to 0.6.15miwi2009-04-033-16/+15 * Here are new Linux Fedora 8 infrastructure ports.bsam2009-04-019-944/+75 * Finish repocopies of new linux-f8 infrastructure ports:bsam2009-04-011-1/+3 * bump PORTREVISION after cmake updatemakc2009-03-251-1/+1 * - Add mirror site while author works on hosting problems.wxs2009-03-241-1/+2 * Welcome to the new linux ports infrastructure which allows usingbsam2009-03-203-6/+3 * - Update MASTER_SITESmiwi2009-03-141-1/+1 * - Reset farrokhi@freebsd.org due to long period of inactivity.miwi2009-03-101-1/+1 * - Use my FreeBSD address on the ports I maintaindhn2009-03-071-1/+1 * The mission of the Scientific and Technical Information Exchange (STIX) fontthierry2009-03-016-0/+123 * Fix a typo.thierry2009-02-281-1/+1 * Upgrade to 1.04 and make fetchable again.thierry2009-02-272-3/+3 * Use my @FreeBSD.org email for the rest of my portsmakc2009-02-211-1/+1 * - Update to 20090215miwi2009-02-202-4/+4 * 2009-01-19 games/emacs-chess: has been broken for more than 6 monthsmiwi2009-02-046-122/+0 * - Use GNOME macro instead of ${MASTER_SITE_GNOME}, removearaujo2009-02-021-1/+1 * - Update download locationpav2009-01-311-1/+1 * Fix path for xfs default configuration file.flz2009-01-292-2/+3 * - update to 20090104 versionpgollucci2009-01-275-495/+15 * Update to 2.28ahze2009-01-262-4/+4 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-2431-108/+56 * - Update fntsample to 3.0pav2009-01-212-21/+54 * - Update to 4.1.8amdmi32009-01-173-36/+27 * - Update to maintainer mail adressmiwi2009-01-161-1/+1 * - Fix plist with perl 5.8.9pav2009-01-151-0/+2 * - Add some more contributed programming fontsrafan2009-01-133-9/+54 * Fix the plist, bump the PORTREVISION.mezz2009-01-122-2/+2 * Presenting GNOME 2.24 for FreeBSD.marcus2009-01-108-26/+49 * - USE_GZIP does not need to be defined last few yearspav2009-01-091-1/+0 * Add a patch for removing four bogus Japanese glyphs as a workaround.hrs2008-12-312-0/+95 * Mark broken and deprecated: these fonts are unfetchable and we are notthierry2008-12-302-1/+9 * - Update to 4.28.stefan2008-12-194-204/+182 * Reset gurkan@phys.ethz.ch due to maintainer-timeouts and no response tolinimon2008-12-161-1/+1 * - Improve description a littlepav2008-12-121-1/+4 * Inconsolata is a monospace font.pav2008-12-124-0/+40 * Reset mita@jp.FreeBSD.org due to long period of inactivity.linimon2008-12-081-1/+1 * - use DOCSDIRitetcu2008-11-242-14/+12 * Update to wqy font set:delphij2008-11-037-53/+153 * MonteCarlo is a bitmap font suitable for code editors. All the charactersmiwi2008-11-024-0/+45 * - Fix reference to X11BASE in pkg-descr.lippe2008-10-263-10/+7 * Install the proprietary license text as advertised in pkg-message.stefan2008-10-252-1/+5 * Profont - The ultimate programming font.amdmi32008-10-115-0/+53 * Update to 2.27ahze2008-10-022-4/+4 * - Update to 20080907miwi2008-09-302-4/+4 * Reset infofarmer due to maintainer-timeouts and no response to email.linimon2008-09-074-4/+4 * - Update to 20080820miwi2008-08-264-8/+8 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-2/+0 * Reset conrads@cox.net due to lack of time to work on FreeBSD.linimon2008-08-203-3/+3 * - Update to 20080808miwi2008-08-154-8/+8 * - Update to 20080706miwi2008-08-134-8/+8 * Update to 2.26ahze2008-08-112-4/+4 * - Remove duplicates from MAKE_ENV after inclusion of CC and CXX in default MA...pav2008-07-251-1/+1 * GNU Unifont is a free bitmap font that coversmiwi2008-07-194-0/+41 * - Update to 20080620miwi2008-07-192-6/+6 * - Update to 0.5.4pav2008-07-083-6/+6 * [UPDATE] sysutils/gnu-unifont update and category moved to x11-fonts & jfbter...edwin2008-07-055-49/+18 * Update to 2.1.13.marcus2008-07-052-4/+4 * Remove references about /usr/X11R6 from pkg-message.olgeni2008-06-217-14/+14 * Update to 0.45mat2008-06-202-4/+4 * Upgrade to 1.171.thierry2008-06-183-7/+6 * Update to 0.44mat2008-06-123-27/+74 * Upgrade to the latest version, named 1.0 (PORTEPOCH bumped).thierry2008-06-123-7/+7 * - Update to 0.5.3pav2008-06-093-5/+4 * Update to 1.20mat2008-06-062-4/+4 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-064-2/+4 * - Fix pkg-plist.lippe2008-05-302-8/+2 * - Add common code to support for cmake based ports.miwi2008-05-281-12/+2 * Update to 2.25ahze2008-05-272-5/+4 * Add port x11-fonts/kaputa:sat2008-05-205-0/+60 * Add port x11-fonts/tmu:sat2008-05-195-0/+72 * Add port x11-fonts/code2001:sat2008-05-105-0/+60 * Reset aaron's port maintainerships due to many maintainer-timeouts.linimon2008-04-291-1/+1 * Reset jylefort's port maintainerships. portmgr has taken his commit bitlinimon2008-04-291-1/+1 * - Build-depend on gawsat2008-04-281-0/+1 * - Update to 2.8sat2008-04-242-4/+4 * * ttf-malayalam:thierry2008-04-244-4/+22 * - Fix build after xorg cleanupmiwi2008-04-211-1/+1 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-2078-170/+179 * - Take advantage of CPAN macro from bsd.sites.mk, change ${MASTER_SITE_PERL_C...araujo2008-04-173-6/+3 * - Update to 0.4.2rafan2008-04-132-4/+4 * Change maintainers e-mail address.ehaupt2008-04-111-2/+2 * - Move from versioned tcl/tk CATEGORIES to simple tcl and tk categoriespav2008-04-091-1/+1 * Upgrade to 1.17, switch to mkfontscale / mkfontdir and run fc-cache.thierry2008-04-093-20/+17 * - Update to 0.4.1pav2008-04-073-17/+24 * - Makefile cosmetic changes.lippe2008-04-032-14/+13 * This ttf-indic-fonts is a set of TrueType andthierry2008-04-036-0/+304 * Linux Libertine is a font family with a serif typeface. These fontsthierry2008-04-025-0/+77 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-267-13/+7 * Fix plistahze2008-03-262-130/+60 * add SHA256 checksums and reformat Makefileedwin2008-03-252-20/+31 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-257-14/+9 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-251-1/+1 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-244-8/+4 * The FreeBSD GNOME team is proud to annunce the release of GNOME 2.22.0 formarcus2008-03-244-92/+13 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-242-5/+2 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-244-8/+4 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-232-4/+2 * - Remove USE_XLIB in favor of USE_XORGmiwi2008-03-221-2/+1 * - Remove USE_GETOPT_LONG which is a no-op since March 2007pav2008-03-201-1/+0 * Add gnu-unifont 1.0.0, unicode font.vanilla2008-03-194-0/+73 * Update to 2.24ahze2008-03-192-4/+4 * - Remove USE_X_PREFIXbeech2008-03-181-3/+2 * - Remove dependency on X_CLIENTS_PORTS and USE_X_PREFIXmiwi2008-03-141-4/+4 * - Chase devel/sdl12 shlib version bumpmiwi2008-03-131-0/+1 * - Mark xtrans as a BUILD_DEPENDS only (unless specified otherwise with :both)flz2008-03-133-2/+4 * - This actually installs a one line shell script that executed mkfontscale, sopav2008-03-121-0/+3 * - Fix BUILD_DEPENDSgahr2008-03-111-2/+4 * - Remove dependency on X_CLIENTS_PORTgahr2008-03-111-4/+2 * Get Commodore 64 font installed under the X Window System.miwi2008-03-114-0/+40 * - XFree86 support was removed few hours ago - unbreak INDEXpav2008-03-081-14/+8 * remove USE_XLIBoliver2008-03-081-4/+14 * Remove support for XFree8-4.flz2008-03-0833-5035/+6 * Update to 2.23ahze2008-02-242-4/+4 * Fontmatrix is a graphical font manager. Targeted audience are mostlymiwi2008-02-175-0/+75 * Update my address.wxs2008-02-041-1/+1 * - Dependancy fixtabthorpe2008-01-271-3/+4 * Fix PCF Font parser buffer overflow (CVE-2008-0006).flz2008-01-232-1/+25 * Update to 2.22ahze2008-01-013-28/+26 * - Update to 0.43gabor2007-12-273-7/+8 * pass maintainership to Intron <intron@intron.ac>dryice2007-12-241-1/+1 * Remove extra whitespace.olgeni2007-12-241-1/+1 * fix the fonts.alias directory. Thanks Intron <intron@intron.ac> for pointingdryice2007-12-231-2/+2 * Update to 2.21ahze2007-12-213-23/+23 * Add patch that fixes a buffer overflow.flz2007-10-312-0/+12 * Presenting GNOME 2.20.1 and all related works for FreeBSD. The officialmarcus2007-10-252-10/+11 * Replace ttmkfdir by mkfontscale & mkfontdir to install correct files.thierry2007-10-211-7/+12 * Replace ttmkfdir by mkfontscale & mkfontdir to install correct files.thierry2007-10-211-8/+13 * - Drop Maintainershipmiwi2007-10-091-1/+1 * Update to 1.0.5 (security fix).flz2007-10-082-5/+4 * - Sort category Makefilessat2007-10-061-3/+3 * Replace #!/usr/bin/perl with ${PERL}. Bump PORTREVISION.hrs2007-09-281-1/+4 * Dominic is a new dad, and will be too busy for a while to work on ports.linimon2007-09-241-2/+1 * new port: x11-fonts/fonts-indicedwin2007-09-245-0/+63 * Update to 2.20ahze2007-09-194-283/+4 * - Update X.org ports to 7.3.flz2007-09-1415-11/+29 * Welcome bsd.perl.mk. Add support for constructs such as USE_PERL5=5.8.0+.linimon2007-09-081-7/+1 * - Update to 2.7sat2007-09-042-4/+4 * - Reduce dependencies[1].hrs2007-09-023-11/+19 * Update to 2.19ahze2007-08-063-8/+4 * Add a missing dependency on docbook-410 when building fontconfig withmarcus2007-07-291-0/+1 * - Set --mandir and --infodir in CONFIGURE_ARGS if the configure scriptrafan2007-07-232-2/+0 * - Drop maintainershippav2007-07-162-2/+2 * Update to 2.18ahze2007-07-043-6/+10 * Compile with FONTCACHE by default as before Xorg 7 and add WITHOUT_XFS_CACHElesi2007-07-031-1/+9 * Update to 1.0.3.lesi2007-07-033-5/+5 * Update to 1.0.1.lesi2007-07-033-5/+5 * - Update to 2.6sat2007-06-292-6/+5 * Update to 2.17ahze2007-06-282-4/+4 * Update to 2.16ahze2007-06-262-5/+4 * Update to release 3, to make fetchable again.thierry2007-06-022-5/+5 * Clenup share/X11 directory upon deinstall.lesi2007-05-311-0/+1 * move from X11BASE to LOCALBASEoliver2007-05-271-2/+2 * Fix the build of x11-fonts/xmbdfed with gcc42.keramida2007-05-271-0/+10 * LIBERATION font software consists of TrueType-OpenType formatted font softwarethierry2007-05-266-0/+94 * . change the prefix (/usr/X11 -> %{LOCALBASE}) at the configuration file; [1]bsam2007-05-236-18/+27 * Clean up pkg-message a bit:marck2007-05-232-11/+3 * Remove; moved to x11-fonts/encodingspav2007-05-205-113/+0 * - Welcome X.org 7.2 \o/.flz2007-05-20