aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-27 20:35:26 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-27 20:35:26 +0800
commitce042b31b62f51282a3e66d1d0725fd5236d9096 (patch)
tree61c6c032f5d7fcdfb2ee7b7dd9cd96bd84e629ad /mail/em-composer-utils.c
parent2cf803cfc656c511342b5d80f464fe590b3f5d9d (diff)
downloadgsoc2013-evolution-ce042b31b62f51282a3e66d1d0725fd5236d9096.tar.gz
gsoc2013-evolution-ce042b31b62f51282a3e66d1d0725fd5236d9096.tar.zst
gsoc2013-evolution-ce042b31b62f51282a3e66d1d0725fd5236d9096.zip
** See bug #53084 and others.
2004-01-27 Not Zed <NotZed@Ximian.com> ** See bug #53084 and others. * em-migrate.c (em_migrate): remove the vfolder_revert hack. * em-composer-utils.c (ask_confirm_for_only_bcc): removed unused vars. * mail-tools.c (mail_tool_get_local_inbox): removed, handled by mail_component_get_folder now. * mail-component.c (mail_component_*): Changed the api slightly. Using NULL as the component argument automatically implies you want the default component. (em_uri_from_camel, em_uri_to_camel): moved to em-utils.[ch]. Ok so it isn't namespaced right ... *shrug*. (mail_component_get_local_inbox): removed. (mail_component_get_folder): single entry point for getting standard folders. This is MT-Safe. (mail_component_get_folder_uri): single entry point for getting standard folder uri's. This is MT-Safe. (add_store): removed, moved to mail_component_add_store. (mail_component_load_store_by_uri): call mail_component_add_store directly rather than copying its code. (default_*_folder*): Removed, use accessor methods instead, fixed all callers. (setup_local_store): renamed to mc_setup_local_store, use proper url encoding too. make run-once and thread-safe. (MailComponentPrivate): Added a lock. (mail_control_new): exported properly to kill warnings. (mail_component_init): dont setup_local_store or add accounts here. (impl_createControls): setup local store/accounts here. (mail_component_peek): dont setup vfolder storage here. (mc_startup): internal function to startup stuff needed for gui operation. (setup_search_context): make run-once. (mail_component_peek_search_context): call setup_search_context incase it isn't setup yet. (impl_upgradeFromVersion): remove the local store setup hack. svn path=/trunk/; revision=24462
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 09ca8a8b4f..b31ee4f9ee 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -33,6 +33,7 @@
#include "mail-config.h"
#include "mail-session.h"
#include "mail-send-recv.h"
+#include "mail-component.h"
#include <e-util/e-dialog-utils.h> /* e_notice */
@@ -140,7 +141,6 @@ ask_confirm_for_empty_subject (EMsgComposer *composer)
static gboolean
ask_confirm_for_only_bcc (EMsgComposer *composer, gboolean hidden_list_case)
{
- gboolean show_again, res;
const char *first_text;
/* If the user is mailing a hidden contact list, it is possible for
@@ -390,7 +390,7 @@ got_post_folder (char *uri, CamelFolder *folder, void *data)
void
em_utils_composer_send_cb (EMsgComposer *composer, gpointer user_data)
{
- extern CamelFolder *outbox_folder;
+ CamelFolder *outbox_folder = mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_OUTBOX);
CamelMimeMessage *message;
CamelMessageInfo *info;
struct _send_data *send;
@@ -558,8 +558,8 @@ save_draft_folder (char *uri, CamelFolder *folder, gpointer data)
void
em_utils_composer_save_draft_cb (EMsgComposer *composer, int quit, gpointer user_data)
{
- extern char *default_drafts_folder_uri;
- extern CamelFolder *drafts_folder;
+ const char *default_drafts_folder_uri = mail_component_get_folder_uri(NULL, MAIL_COMPONENT_FOLDER_DRAFTS);
+ CamelFolder *drafts_folder = mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_DRAFTS);
struct _save_draft_info *sdi;
CamelFolder *folder = NULL;
CamelMimeMessage *msg;
3d822bd'>- Update to 7.4.518sunpoet2014-11-253-16/+187 * Fix @sample usage.alfred2014-11-182-7/+4 * Use vimrc from distribution.alfred2014-11-173-51/+8 * A nice default vimrc for new users.alfred2014-11-162-1/+60 * Cleanup plistbapt2014-10-271-20/+0 * - Fix unconditionally dependency on libiconv.so from converters/libiconvsunpoet2014-09-101-1/+2 * - patch 399 was updated with correct encoding on Aug, 28sunpoet2014-09-042-8/+3 * - Update to 7.4.430sunpoet2014-09-042-1/+70 * - Use USES=pythonsunpoet2014-08-201-1/+1 * - Add CPE informationsunpoet2014-08-131-1/+3 * - Update to 7.4.398sunpoet2014-08-082-1/+19 * - Update to 7.4.389sunpoet2014-08-022-3/+51 * - Update to 7.4.364sunpoet2014-07-152-2/+62 * - Update to 7.4.334sunpoet2014-06-242-1/+37 * - Update to 7.4.316sunpoet2014-06-014-62/+78 * - Update to 7.4.307sunpoet2014-05-262-1/+25 * Quote ${CC} and similar variables in MAKE_ARGS.tijl2014-05-211-1/+1 * - Update to 7.4.295sunpoet2014-05-202-1/+29 * - Update to 7.4.281sunpoet2014-05-082-1/+33 * - Update to 7.4.265sunpoet2014-04-272-1/+19 * - Remove MAKE_JOBS_UNSAFEsunpoet2014-04-261-1/+0 * - Update to 7.4.256sunpoet2014-04-132-3/+7 * - Update to 7.4.253sunpoet2014-04-122-2/+31 * - Update to 7.4.240sunpoet2014-04-092-2/+26 * - Use MAKE_CMDsunpoet2014-04-061-4/+4 * - Update to 7.4.229sunpoet2014-04-012-6/+55 * - Update to 7.4.205sunpoet2014-03-142-3/+26 * - Update to 7.4.193sunpoet2014-03-112-1/+3 * - Remove conditional PKGNAMESUFFIXsunpoet2014-02-281-5/+1 * - Update COMMENTsunpoet2014-02-282-20/+9 * - Update to 7.4.192sunpoet2014-02-262-8/+24 * - Fix lua supportsunpoet2014-02-251-1/+1 * - Add missing dependency for GNOME, GTK2 and X11 optionssunpoet2014-02-252-9/+11 * - Check for "old" option setting and inform users before buildsunpoet2014-02-201-0/+4 * - Fix type of option group: it was RADIO but it should be SINGLE now (with th...sunpoet2014-02-201-2/+2 * - Use :group to fetch source and patch from correct URLsunpoet2014-02-191-4/+5 * - Fix fetch of BADPATCHESsunpoet2014-02-191-2/+3 * - Update to 7.4.182sunpoet2014-02-192-5/+33 * - Fix python detectionsunpoet2014-02-192-1/+21 * - Use USES=iconv unconditionallysunpoet2014-02-197-399/+332 * - Convert to USES=tclgahr2014-02-171-1/+1 * - Fix lua supportmiwi2014-02-122-2/+2 * - Fix manpage installationsunpoet2014-02-101-3/+3 * - Update to 7.4.169miwi2014-02-082-3/+121 * Fix properties on pkg-plistbapt2014-01-221-1/+0 * Switch to use lua 5.2bapt2014-01-111-5/+5 * Fix build after gtk updatebapt2013-12-181-3/+3 * Fix build on head and 11.bapt2013-12-071-2/+3 * - Update to 7.4.110sunpoet2013-12-033-2658/+272 * - Take maintainershipsunpoet2013-12-031-1/+1 * - Remove WITH_VIM_OPTIONS and respect ports frameworkbdrewery2013-12-021-12/+2 * - Reset maintainer due to timeout of 11 open PR, 7 with patches andbdrewery2013-12-021-1/+1 * Embelish show-options output.obrien2013-09-261-0/+3 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * Convert to new perl frameworkbapt2013-09-171-4/+2 * Update Vim 7.3 to patchlevel 1314.obrien2013-07-122-2/+78 * Catch up with how we install Lua.obrien2013-07-122-7/+31 * Remove useless "libsysinfo" CONFLICTS statement.obrien2013-07-121-1/+2 * Convert from USE_MOTIF to USES=motifbapt2013-07-101-1/+1 * Cleanup BADPATCHES layout.obrien2013-07-031-31/+1 * /usr/bin/patch has a bug in that it undercounts hunks containing NULobrien2013-07-032-34/+868 * Update to patchlevel 1276.obrien2013-07-022-5/+35 * Make vim-lite sane again by defaultbapt2013-07-011-4/+5 * Many of the BADPATCHES do apply. Some "just apply", others needed tweaks:obrien2013-06-303-7/+48 * Update the personality of the port.obrien2013-06-292-16/+40 * - Unbreak build when devel/libsysinfo is installedmiwi2013-05-252-10/+1 * - Update to patchlevel 1014miwi2013-05-252-4/+453 * - Convert USE_ICONV=yes to USES=iconvmva2013-04-271-1/+1 * - Convert USE_GETTEXT to USES (part 3)ak2013-04-251-1/+1 * vim has sufficiently improved the security of its modeline processing.eadler2013-04-172-9/+0 * Fix conversion to optionsng breaking multibyte supportbapt2013-04-051-2/+2 * Prevent NLS addition to PLIST_SUB to hide previous additionsbapt2013-04-021-3/+3 * Convert to new options framework:bapt2013-03-213-115/+84 * Update conflicts and avoid duplication.obrien2013-01-301-2/+3 * Update to Vim 7.3 patchlevel 669.obrien2012-09-292-5/+67 * Remove limitation on unthreaded version of Tcl.obrien2012-09-121-2/+1 * Fix GNU configure problem with building "WITH_GNOME2".obrien2012-08-181-1/+1 * Update to Vim 7.3 patchlevel 632.obrien2012-08-183-4/+148 * Update to Vim 7.3 patchlevel 556.obrien2012-06-162-1/+37 * Update to Vim 7.3 patchlevel 538.obrien2012-06-062-2/+46 * Correct CONFLICTS for vim-lite slave port.obrien2012-06-051-0/+4 * - update png to 1.5.10dinoex2012-06-011-1/+1 * Stop trying to autodetect GETTEXT-- it doesn't work properly anyway and causescrees2012-06-011-1/+1 * Fix gnome2 support. Two bugs prevented the GNOME2 config options fromadamw2012-05-291-4/+1 * Respect WITHOUT_NLS properlycrees2012-05-291-2/+5 * Update to Vim 7.3 patchlevel 515.obrien2012-05-082-1/+27 * Update version 7.3 to patchlevel 502.obrien2012-04-252-4/+43 * - Update to Vim 7.3 patchlevel 480.miwi2012-03-262-5/+701 * The vast majority of pkg-descr files had the following format when theydougb2011-10-241-1/+0 * Minor style change.obrien2011-06-211-2/+2 * Include bsd.port.options.mk.obrien2011-06-211-0/+1 * - MAKE_JOBS_UNSAFE:pav2011-06-181-1/+1 * Update to Vim 7.3 patchlevel 121.obrien2011-03-012-1/+81 * Update to Vim 7.3 patchlevel 81.obrien2010-12-152-1/+13 * Update to Vim 7.3 patchlevel 75.obrien2010-12-082-1/+27 * Complete gtk1->gtk2(gnome2) transition.obrien2010-11-252-22/+9 * + Add additional non-GUI guards to WANT_GNOME.obrien2010-11-231-31/+30 * Update to Vim 7.3 patchlevel 62.obrien2010-11-222-52/+25 * Update to Vim 7.3 patchlevel 50.obrien2010-11-102-1/+7 * Update to Vim 7.3 patchlevel 48.obrien2010-11-042-1/+4 * Update to Vim 7.3 patchlevel 47.obrien2010-11-012-4/+51 * Add LUA.obrien2010-10-211-0/+1 * Update to Vim 7.3 patchlevel 32.obrien2010-10-212-1/+10 * Autoconf will use libintl.so if it is installed on the system and causeobrien2010-10-211-0/+3 * Allow one to use WITHOUT_GUI as a synonym for WITHOUT_X11.obrien2010-10-211-1/+1 * Update to Vim 7.3 patchlevel 29.obrien2010-10-202-1/+4 * Update to Vim 7.3 patchlevel 28.obrien2010-10-152-1/+22 * Do not install icons by default. The destination directories aren'tobrien2010-10-131-0/+5 * Backout rev. 1.49. The icon handling is too sensitive to what other packagesobrien2010-10-131-1/+0 * Update to Vim 7.3 patchlevel 21.obrien2010-10-112-1/+7 * Enable LUA for the default Portmgr package build.obrien2010-10-071-1/+1 * Backout accidental change.obrien2010-10-071-1/+0 * Vim now has a file that has escaped share/vim/obrien2010-10-072-0/+2 * The stock dependencies are now fixed.obrien2010-10-071-3/+0 * Update to Vim 7.3 patchlevel 19.obrien2010-10-063-1253/+85 * Change the default GUI from gtk1 to gtk2.obrien2010-10-062-6/+15 * Simply the checking output.obrien2010-10-021-1/+2 * Obey BSD's 'STRIP= ' setting.obrien2010-09-191-0/+3 * Make 'mtree -f $(make -V MTREE_FILE) -p $PREFIX' clean.obrien2010-09-192-0/+9 * Look for libiconv in ${LOCALBASE}.obrien2010-09-191-1/+1 * - Hotfix this high-profile port so it does not install into /pav2010-09-181-1/+1 * Enable MAKE_JOBS_SAFE for Vim build so it will build in parallel.obrien2010-09-171-1/+7 * Update to Vim 7.2 patchlevel 466.obrien2010-09-092-1/+106 * Update to Vim 7.2 patchlevel 411.obrien2010-04-132-2/+167 * Update to Vim 7.2 patchlevel 344.obrien2010-01-232-2/+62 * Add support for "X11_ONLY" - which disables all GUI toolkit variants, butobrien2009-12-292-19/+22 * Update to Vim 7.2 patchlevel 322.obrien2009-12-292-2/+65 * Update to Vim 7.2 patchlevel 299.obrien2009-11-182-3/+168 * Chase patch rename so that it passes "make checksum"wxs2009-07-301-3/+3 * Change name of diked patch.obrien2009-07-291-1/+1 * Update to Vim 7.2 patchlevel 239.obrien2009-07-292-2/+80 * Fix fetching famous^Wannoying patchfile 7.2.041%.skv2009-07-151-2/+2 * - Prepare for lang/tcl80 and x11-toolkits/tk80 removalmm2009-07-071-1/+1 * Damage control, backout latest changes and let fetch timeout.flz2009-06-232-3/+4 * Also update distinfo.flz2009-06-231-3/+3 * Fix fetching.flz2009-06-231-1/+0 * Update to Vim 7.2 patchlevel 209.obrien2009-06-172-6/+123 * Update to Vim 7.2 patchlevel 171.obrien2009-05-192-9/+18 * I had a WITH_GNOME where I should have had a USE_GNOME.obrien2009-05-061-2/+2 * Update to Vim 7.2 patchlevel 166.obrien2009-05-062-4/+105 * - Mark MAKE_JOBS_UNSAFE= yespgollucci2009-04-291-0/+2 * Update to Vim 7.2 patchlevel 132.obrien2009-03-082-2/+80 * - Change default Tcl/Tk version to 8.5mm2009-02-231-1/+1 * Update to Vim 7.2 patchlevel 106.obrien2009-02-122-15/+93 * Update to Vim 7.2 patchlevel 69.obrien2008-12-122-2/+122 * Update to Vim 7.2 patchlevel 29.obrien2008-11-082-2/+44 * Update vim-7.2.tar.bz2 checksums.obrien2008-09-122-4/+19 * Update to Vim 7.2 patchlevel 9.obrien2008-09-052-4/+28 * Update Vim to version 7.2 (and patchlevel 6 at that).obrien2008-08-254-964/+26 * - Unbreak and fix buildmiwi2008-08-052-2/+31 * Mark BROKEN: does not builderwin2008-08-051-0/+2 * Update to Vim 7.1 patchlevel 330.obrien2008-07-182-2/+44 * Add gvimtutor to the mix.obrien2008-06-242-0/+3 * Update to Vim 7.1 patchlevel 315.obrien2008-06-162-5/+71 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * Add TCL support and translations options.obrien2008-06-051-0/+2 * If one wanted to build a GUI-less, one got stuck with GNOME1 anyway.obrien2008-05-011-0/+1 * Update to Vim 7.1 patchlevel 293.obrien2008-05-012-3/+33 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-201-5/+8 * Update to Vim 7.1 patchlevel 282.obrien2008-03-192-2/+110 * Update to Vim 7.1 patchlevel 242.obrien2008-01-312-1/+97 * Be more precautionary in cleaning out patch turds.obrien2008-01-071-1/+1 * Add patches 126 and 186.obrien2008-01-072-1/+8 * Update to Vim 7.1 patchlevel 211.obrien2008-01-072-2/+29 * Update to Vim 7.1 patchlevel 201.obrien2008-01-072-2/+74 * Re-enable WITH_TCL.obrien2007-12-202-9/+8 * Add a "show-options" target.obrien2007-12-201-0/+3 * Enable WITH_LANG for "PACKAGE_BUILDING".obrien2007-12-191-0/+1 * Update to Vim 7.1 patchlevel 175.obrien2007-12-192-3/+84 * Fix building vim-lite with "WITH_VIM_OPTIONS=yes".obrien2007-11-151-1/+1 * Note conflicts with vim6 (and vim-lite).obrien2007-11-151-0/+1 * Move around the package-building options to make other ones easier to see,obrien2007-10-261-14/+19 * Update to Vim 7.1 patchlevel 145.obrien2007-10-262-3/+76 * Add WANT_PERL. This will be needed to conditionalize bsd.perl.mk inclusion.linimon2007-09-301-0/+1 * Fix missing vim*lang.obrien2007-09-262-0/+5 * Typo in vim package descriptionedwin2007-09-251-1/+1 * Update to Vim 7.1 patchlevel 116.obrien2007-09-212-10/+49 * If 'WITH_OPTIONS' or 'WITH_VIM_OPTIONS' is defined, then offer the userobrien2007-09-162-0/+14 * Update to Vim 7.1 patchlevel 100.obrien2007-09-122-2/+41 * Update to Vim 7.1 patchlevel 87.obrien2007-08-222-5/+50 * Update to Vim 7.1 patchlevel 68.obrien2007-08-142-2/+41 * Update to Vim 7.1 patchlevel 55.obrien2007-08-082-2/+47 * - Update to 7.1 patchset 39miwi2007-07-282-1/+64 * Update to Vim 7.1 patchlevel 18.obrien2007-06-292-1/+19 * Update to Vim 7.1 patchlevel 12.obrien2007-06-272-661/+37 * Update to Vim 7.0 patchlevel 241.obrien2007-06-222-4/+49 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * Update to Vim 7.0 patchlevel 224.obrien2007-04-182-2/+29 * Update to Vim 7.0 patchlevel 214.obrien2007-03-112-6/+99 * Fix bug rev 1.292 introduced to Gvim - Escape the pipe in the menu files.obrien2007-01-091-2/+2 * Catch up with Exuberant ctags binary name change.obrien2007-01-031-4/+14 * - FreeBSD's ctags has no -R option.stas2007-01-031-1/+7 * Update to Vim 7.0 patchlevel 178.obrien2006-12-142-11/+26 * Fix 'make -DWITH_LANG makesum'.obrien2006-12-141-4/+5 * If "WITH_LANG" is defined, install the several languages contained inobrien2006-12-122-0/+17 * Catch up with rev 1.287 and take TCL support out of the "PACKAGE_BUILDING"obrien2006-12-121-1/+1 * Mark WITH_TCL BROKEN: does not compilekris2006-12-101-0/+4 * Trim trailing whitesapce.obrien2006-11-261-3/+3 * Update to Vim 7.0 patchlevel 168.obrien2006-11-262-3/+216 * Update to Vim 7.0 patchlevel 94.obrien2006-09-102-1/+19 * Add "WITH_XTERM_SAVE" knob to enable Vim's 'restorescreen' option.obrien2006-09-101-0/+5 * Update to Vim 7.0 patchlevel 88.obrien2006-09-062-2/+65