From 1a9409a95f0eb40e4ec32bcad84ec3c2df62f58a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 24 May 2001 03:31:24 +0000 Subject: Don't free the folder-info here, instead have mail_append_mail() call our 2001-05-23 Jeffrey Stedfast * mail-callbacks.c (composer_postpone_cb): Don't free the folder-info here, instead have mail_append_mail() call our new function, append_mail_cleanup() which'll free the folder-info. This fixes the problem of send-later segfaulting. svn path=/trunk/; revision=9958 --- mail/ChangeLog | 5 +++++ mail/mail-callbacks.c | 9 +++++++-- mail/mail-ops.c | 19 ++++++++++--------- 3 files changed, 22 insertions(+), 11 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index a0fffd755d..eb394c2aa3 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,10 @@ 2001-05-23 Jeffrey Stedfast + * mail-callbacks.c (composer_postpone_cb): Don't free the + folder-info here, instead have mail_append_mail() call our new + function, append_mail_cleanup() which'll free the + folder-info. This fixes the problem of send-later segfaulting. + * message-list.c (message_list_set_folder): Make the message-list respect the "hide deleted messages" setting. Fixes bug #2248. diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 778dc5f043..38734b37cf 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -368,6 +368,12 @@ composer_send_cb (EMsgComposer *composer, gpointer data) mail_send_mail (transport->url, message, composer_sent_cb, send); } +static void +append_mail_cleanup (CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *info, int ok, void *data) +{ + camel_message_info_free (info); +} + void composer_postpone_cb (EMsgComposer *composer, gpointer data) { @@ -382,9 +388,8 @@ composer_postpone_cb (EMsgComposer *composer, gpointer data) info = camel_message_info_new (); info->flags = CAMEL_MESSAGE_SEEN; - mail_append_mail (outbox_folder, message, info, NULL, NULL); + mail_append_mail (outbox_folder, message, info, append_mail_cleanup, NULL); camel_object_unref (CAMEL_OBJECT (message)); - camel_message_info_free (info); if (psd) { camel_folder_set_message_flags (psd->folder, psd->uid, psd->flags, psd->flags); diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 4b99bc76ac..34a88a7b51 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -860,24 +860,25 @@ void mail_append_mail (CamelFolder *folder, CamelMimeMessage *message, CamelMessageInfo *info, - void (*done)(CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *info, int ok, void *data), void *data) + void (*done)(CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *info, int ok, void *data), + void *data) { struct _append_msg *m; - + g_return_if_fail (CAMEL_IS_FOLDER (folder)); g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message)); - - m = mail_msg_new(&append_mail_op, NULL, sizeof(*m)); + + m = mail_msg_new (&append_mail_op, NULL, sizeof (*m)); m->folder = folder; - camel_object_ref((CamelObject *)folder); + camel_object_ref (CAMEL_OBJECT (folder)); m->message = message; - camel_object_ref((CamelObject *)message); + camel_object_ref (CAMEL_OBJECT (message)); m->info = info; - + m->done = done; m->data = data; - - e_thread_put(mail_thread_new, (EMsg *)m); + + e_thread_put (mail_thread_new, (EMsg *)m); } /* ** TRANSFER MESSAGES **************************************************** */ -- cgit 1.3.8'>dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* audio/teamspeak3-server: unbreak on 11-STABLElifanov2017-01-151-2/+4
* Remove BROKEN_FreeBSD_9sunpoet2017-01-011-4/+0
* audio/teamspeak3-server: update 3.0.13.5 -> 3.0.13.6pi2016-11-192-6/+6
* Update to upstream version 3.0.13.5riggs2016-10-292-6/+6
* Update to upstream version 3.0.13.4riggs2016-09-103-9/+10
* audio/teamspeak3-server: 3.0.13 -> 3.0.13.2pi2016-08-173-11/+11
* audio/teamspeak3-server: mention path to ini-file in pkg-message.inpi2016-08-152-2/+4
* audio/teamspeak3-server: 3.0.12.4 -> 3.0.13pi2016-08-094-5/+30
* audio/teamspeak3-server: Mark BROKEN on 11, will not startpi2016-07-301-0/+2
* When there is a do-install target, do not use a post-install target, domat2016-07-191-2/+1
* audio/teamspeak3-server: 3.0.12.3 -> 3.0.12.4pi2016-04-302-5/+5
* audio/teamspeak3-server: add BROKEN for 9pi2016-03-121-0/+4
* audio/teamspeak3-server: change of maintainerpi2016-03-121-1/+1
* audio/teamspeak3-server: 3.0.12.2 -> 3.0.12.3pi2016-03-102-5/+5
* Update to 3.0.12.2.rakuco2016-02-284-16/+19
* Update to upstream version 3.0.11.4riggs2015-10-032-5/+5
* audio/teamspeak3-server: update to 3.0.11.3swills2015-06-262-5/+5
* audio/teamspeak3-server: update 3.0.11 -> 3.0.11.2robak2015-04-053-12/+14
* - Update to upstream version 3.0.11riggs2014-10-273-32/+30
* Cleanup plistbapt2014-10-201-11/+2
* Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-111-1/+1
* Simplify plistbapt2014-09-031-7/+1
* Add DOCS to OPTIONS_DEFINE where PORTDOCS= is set.adamw2014-07-161-0/+2
* - Stage supportmiwi2014-06-043-30/+33
* - Update to 3.0.10.3culot2014-03-133-15/+12
* audio/teamspeak3-server: update to 3.0.10.1wg2013-12-012-5/+5
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-201-0/+1
* - Add missing distinfo for the x86 versionlme2013-07-061-0/+2
* - Update to 3.0.7.2lme2013-07-062-7/+5
* - Convert USE_ICONV=yes to USES=iconvmva2013-04-271-1/+1
* - Update to 3.0.7beech2013-03-073-5/+6
* - Update to 3.0.6.1 [1]jase2012-09-263-11/+10
* - Upadate to 3.0.5beech2012-06-243-117/+117
* - Forgot SUB_LIST (without it, %%s didn't expand in rc script)scheidell2012-05-052-1/+4
* - Update to 3.0.3 [1]scheidell2012-05-055-19/+37
* In the rc.d scripts, change assignments to rcvar to use thedougb2012-01-141-1/+1
* - Update to 3.0.1crees2011-11-195-20/+20
* - Update to 3.0.0 (release numerically less than betas,crees2011-08-125-369/+224
* - Fix problem with pkg_versionsylvio2011-06-011-1/+1
* - Fix problem with version numbersylvio2011-05-311-1/+1
* - Change PORTVERSION to DISTVERSION in due of package to be a release candidatesylvio2011-05-242-1/+4
* - Update to RC1sylvio2011-05-233-9/+10
* - Updated to 3.0.0.b30 [1]glarkin2011-05-049-399/+519
* - Get Rid MD5 supportmiwi2011-03-191-2/+0
* Begin the process of deprecating sysutils/rc_subr bydougb2010-03-271-1/+1
* - Reset maintainership.lippe2009-12-061-1/+1
* - Update to 2.0.24.01rafan2009-02-012-7/+14
* Patch the startup script so the server process is run as the teamspeak user bystefan2008-10-111-0/+3
* Update to version 2.0.23.19laszlof2007-08-064-54/+12
* Update the rc.d script to REQUIRE: DAEMON so that this server getsdougb2006-09-072-2/+2
* - Use new style rc.d script.mnag2006-04-154-41/+49
* SHA256ifyedwin2006-01-221-0/+1
* Mega-patch to cleanup the ports infrastructure regarding our linux bits:netchild2005-06-181-2/+1
* - Submitter of last update agreed to look after this portpav2005-06-011-1/+1
* - Update to 2.0.20.1pav2005-05-313-13/+204
* Respect the user's USE_LINUX setting.trevor2005-03-021-1/+1
* - Remove dead MASTER_SITES and add the new onekrion2004-05-241-2/+1
* SIZEify (maintainer timeout)trevor2004-03-311-0/+1
* Make bento happy regarding build attempts on non-i386 machines.edwin2003-11-031-0/+1
* Add pkg-install to audio/teamspeak-serveredwin2003-10-081-0/+72
* Update for teamspeak_server port updateedwin2003-09-273-8/+16
* iMinor teamspeak_server port updateedwin2003-09-052-13/+18