aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-transport.c')
-rw-r--r--camel/camel-transport.c147
1 files changed, 0 insertions, 147 deletions
diff --git a/camel/camel-transport.c b/camel/camel-transport.c
deleted file mode 100644
index 0338f5dcc0..0000000000
--- a/camel/camel-transport.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/* camel-transport.c : Abstract class for an email transport */
-
-/*
- *
- * Author :
- * Dan Winship <danw@ximian.com>
- *
- * Copyright 2000 Ximian, Inc. (www.ximian.com)
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include "camel-transport.h"
-#include "camel-exception.h"
-#include "camel-private.h"
-
-/* Returns the class for a CamelTransport */
-#define CT_CLASS(so) CAMEL_TRANSPORT_CLASS (CAMEL_OBJECT_GET_CLASS(so))
-
-static void
-camel_transport_init (gpointer object, gpointer klass)
-{
- CamelTransport *xport = object;
-
- xport->priv = g_malloc0 (sizeof (struct _CamelTransportPrivate));
-#ifdef ENABLE_THREADS
- xport->priv->send_lock = g_mutex_new ();
-#endif
-}
-
-static void
-camel_transport_finalize (CamelObject *object)
-{
- CamelTransport *xport = CAMEL_TRANSPORT (object);
-
-#ifdef ENABLE_THREADS
- g_mutex_free (xport->priv->send_lock);
-#endif
- g_free (xport->priv);
-}
-
-CamelType
-camel_transport_get_type (void)
-{
- static CamelType camel_transport_type = CAMEL_INVALID_TYPE;
-
- if (camel_transport_type == CAMEL_INVALID_TYPE) {
- camel_transport_type = camel_type_register (CAMEL_SERVICE_TYPE, "CamelTransport",
- sizeof (CamelTransport),
- sizeof (CamelTransportClass),
- NULL,
- NULL,
- (CamelObjectInitFunc) camel_transport_init,
- (CamelObjectFinalizeFunc) camel_transport_finalize);
- }
-
- return camel_transport_type;
-}
-
-
-/**
- * camel_transport_can_send: Determine if a message is send-able on a transport
- * @transport: the transport
- * @message: the message
- *
- * Determines if a CamelMedium is of an appropriate subclass to send
- * via the given @transport. (Mail transports are not able to send
- * netnews articles, and vice versa.)
- *
- * Return value: TRUE or FALSE
- **/
-gboolean
-camel_transport_can_send (CamelTransport *transport, CamelMedium *message)
-{
- return CT_CLASS (transport)->can_send (transport, message);
-}
-
-/**
- * camel_transport_send: Send a message via a transport
- * @transport: the transport
- * @message: the message
- * @ex: a CamelException
- *
- * Sends the message to the recipients indicated in the message.
- *
- * Return value: success or failure.
- **/
-gboolean
-camel_transport_send (CamelTransport *transport, CamelMedium *message,
- CamelException *ex)
-{
- gboolean sent;
-
- g_return_val_if_fail (CAMEL_IS_TRANSPORT (transport), FALSE);
-
- CAMEL_TRANSPORT_LOCK (transport, send_lock);
- sent = CT_CLASS (transport)->send (transport, message, ex);
- CAMEL_TRANSPORT_UNLOCK (transport, send_lock);
-
- return sent;
-}
-
-/**
- * camel_transport_send_to: Send a message non-standard recipients
- * @transport: the transport
- * @message: the message
- * @recipients: the recipients
- * @ex: a CamelException
- *
- * Sends the message to the given recipients, rather than to the
- * recipients indicated in the message.
- *
- * Return value: success or failure.
- **/
-gboolean
-camel_transport_send_to (CamelTransport *transport, CamelMedium *message,
- GList *recipients, CamelException *ex)
-{
- gboolean sent;
-
- g_return_val_if_fail (CAMEL_IS_TRANSPORT (transport), FALSE);
-
- CAMEL_TRANSPORT_LOCK (transport, send_lock);
- sent = CT_CLASS (transport)->send_to (transport, message,
- recipients, ex);
- CAMEL_TRANSPORT_UNLOCK (transport, send_lock);
-
- return sent;
-}
ade to version 2.2.6 which has the following bugfixes:dougb2010-04-252-4/+4 * Switch to use newer GMP version.ale2010-04-195-9/+10 * - Try to fix the build on 6.Xpav2010-04-131-0/+1 * Chase the curl update, bump the PORTREVISION.mezz2010-04-131-1/+1 * Upgrade to version 2.2.5, which has the following bug fixes:dougb2010-04-092-8/+6 * Mark mutella as deprecated: the last release was 2004-08-26, so it is safegavin2010-04-081-0/+3 * - Update to 0.3.1pav2010-04-074-27/+12 * Update to version 2.2.4, which has the following bug fixes:dougb2010-04-072-5/+5 * Until ports that depend on libtorrent-raterbar have been converteddougb2010-04-071-0/+2 * Update to the release version of 0.15, thereby removing the -devel tagdougb2010-04-064-33/+9 * Remove rblibtorrent, it got deleted 2 weeks ago.kwm2010-04-061-1/+0 * Upgrade to version 2.2.3 which has the following bugfixes:dougb2010-04-052-6/+12 * Update to version 2.2.2, minor bug fixesdougb2010-04-054-16/+15 * Update to 0.052.tobez2010-04-042-7/+5 * Update to 2.0makc2010-04-048-482/+65 * Chase the ftp/curl shlib version bump.roam2010-04-036-11/+11 * - Update to 0.99wen2010-04-022-4/+4 * - update to 1.4.1dinoex2010-03-2848-41/+48 * Begin the process of deprecating sysutils/rc_subr bydougb2010-03-2712-12/+12 * Update to version 2.2.1 which has the following new features:dougb2010-03-212-4/+4 * Update to version 0.14.10, which has the following bug fixes:dougb2010-03-212-4/+4 * - Update to 1.2.0.20090314wen2010-03-172-8/+7 * - Mark BROKEN on 6.X: does not compilepav2010-03-171-1/+7 * Update to 1.92.mezz2010-03-164-5/+8 * Version 2.2 is all grown up now *sniff* so un-devel it.dougb2010-03-162-8/+7 * Deprecate this port in favor of the new 2.2.0 release versiondougb2010-03-161-0/+4 * As previously advertised, remove the now-obsolete rblibtorrent portdougb2010-03-169-370/+0 * - Update to 0.8.1bmiwi2010-03-093-15/+7 * - Allow to build on AMD64miwi2010-03-094-6/+6 * Update to version 2.1.6, which has the following bug fixes:dougb2010-03-082-4/+4 * Update to version 0.14.9, which has the following:dougb2010-02-2820-619/+26 * Update to 1.91.mezz2010-02-244-6/+8 * Fix dependency after libtorrent-devel update.flz2010-02-231-2/+2 * Fix dependency after libtorrent update.flz2010-02-231-2/+2 * Daemonize ctorrent a bit later so you can use CTCS authentication.flz2010-02-232-1/+18 * Add local patch to release memory more efficiently.flz2010-02-234-2/+42 * As previously discussed on -ports, make the following changes:dougb2010-02-2232-854/+300 * - Update to 0.1.8.4amdmi32010-02-194-26/+35 * Add PSYCO option to enable devel/py-psyco optimization supportlioux2010-02-172-0/+30 * Add PORTDOCS, add ipv6 as a virtual category. Bump PORTREVISION.dougb2010-02-154-4/+112 * Make net/GeoIP into a proper library depependency for both ports.dougb2010-02-126-12/+18 * Deprecate these two ports. libtorrent-rasterbar version 0.13 is very old,dougb2010-02-122-1/+6 * Update to 0.7.10lioux2010-02-122-4/+4 * Turns out the right place to fix the problem of subbing fordougb2010-02-124-8/+14 * Update to version 2.1.5, which has the following bug fixes:dougb2010-02-124-12/+22 * Update to 4.3.1.4rnoland2010-02-122-4/+4 * Update to 3.3.4makc2010-02-093-6/+5 * Update to 4.3.1.2.rnoland2010-02-074-5/+44 * Fix huge memory leak (16M per every hashed file).fjoe2010-02-072-1/+21 * - update to jpeg-8dinoex2010-02-0548-41/+49 * Update to 1.83.mezz2010-02-045-18/+24 * - Update to 0.8.1nemoliu2010-02-033-16/+8 * - Add missing patchnemoliu2010-02-021-0/+13 * - Update to to 0.3.0nemoliu2010-02-025-105/+25 * Update to 3.3.3makc2010-02-023-6/+9 * Upgrade to version 2.1.3 which has the following bugfixes:dougb2010-02-024-8/+8 * - Revert back to previous version (to many problems)miwi2010-02-0111-653/+998 * The KDE FreeBSD team is proud to announce the release of SIP-4.10 andfluffy2010-01-301-1/+1 * - Forget to add a / :(dhn2010-01-271-1/+1 * - Fix plistdhn2010-01-271-2/+3 * - Use $SUB_FILES to update pkg-messagedhn2010-01-272-5/+6 * - Remove unneeded dependencies which is in perl-5.8.9 distkuriyama2010-01-261-2/+1 * Reset peter.thoenen@yahoo.com at his request; he is moving and willlinimon2010-01-261-1/+1 * Update to version 2.1.2 which has the following new/improved features:dougb2010-01-254-8/+8 * Update to version 2.1.1, which has the following new features:dougb2010-01-244-8/+8 * - Try to fix amd64/6pav2010-01-241-1/+1 * Update net-p2p/rtorrent-devel to 0.8.6.flz2010-01-232-7/+7 * Update net-p2p/rtorrent to 0.8.6.flz2010-01-232-6/+6 * Update net-p2p/libtorrent-devel to 0.12.6.flz2010-01-232-5/+5 * Update net-p2p/libtorrent to 0.12.6.flz2010-01-232-4/+4 * Remove OBE USE_GCC variable.flz2010-01-231-1/+0 * - Drop empty filemiwi2010-01-231-0/+0 * - Update to 1.2.0miwi2010-01-2211-997/+653 * - Update to 0.9.8e-r2pav2010-01-2121-58/+81 * - Mark BROKEN on 6.xpav2010-01-213-3/+21 * Update to 0.7.9lioux2010-01-182-6/+6 * Update to version 2.0.7, which contains the following bugfixes:dougb2010-01-154-8/+8 * Update to 0.14.8, which contains the following:dougb2010-01-154-12/+10 * - Update to 2.0.2wen2010-01-133-6/+16 * - Update to 0.1.3wen2010-01-132-4/+4 * Fix port installationlioux2010-01-111-1/+1 * Revert the "fix" for clobbering *FLAGS to restore buildingdougb2010-01-081-2/+2 * Take over maintainership with the previous maintainer's permisisondougb2010-01-082-4/+4 * Update to version 2.0.6 which contains the following bug fixes:dougb2010-01-084-8/+8 * Update to 3.3.2makc2010-01-052-5/+4 * - Update to 0.8.1miwi2010-01-055-25/+61 * Bump PORTREVISION relative to the recent boost-libs update. Old binariesdougb2010-01-032-2/+4 * Update to version 2.0.5, which contains the following bugfix:dougb2010-01-034-14/+14 * Update the description to highlight version 2.x features withdougb2010-01-032-10/+38 * Update to 0.7.8lioux2010-01-022-6/+6 * Update to version 0.95dougb2010-01-012-4/+4 * Update to version 2.0.4, which contains the following bugfixes:dougb2010-01-014-8/+8 * - Bump to force rebuild after boost upgradepav2009-12-301-1/+1 * - Fix build with 1.41pav2009-12-291-0/+10 * - net-p2p/eiskaltdc: update to 1.0.40 releasefluffy2009-12-295-31/+46 * - Remove test-only and included-in-perl-5.8 dependencies.kuriyama2009-12-251-3/+2 * Update to version 2.0.3, with the following BUGFIXES:dougb2009-12-244-8/+8 * - Update to 0.8.0cmiwi2009-12-2217-412/+350 * - Update to 2.0.2miwi2009-12-228-36/+66 * - Update to 5.4.6amdmi32009-12-212-4/+4 * For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-2112-26/+0 * - missed a filepgollucci2009-12-181-0/+49 * - USE_RC_SUBR != yespgollucci2009-12-183-58/+1 * - Update to 1.5.6miwi2009-12-136-10/+30 * - Update to 0.53 and unbreak itwen2009-12-112-7/+6 * - mark BROKENwen2009-12-081-0/+2 * - Chase taglib updatefluffy2009-12-031-1/+2 * Update to 3.4.0.4rnoland2009-12-0210-86/+39 * - Remove --disable-upnp from CONFIGURE_ARGS since this is nowlioux2009-12-013-3/+3 * - Apparently pass pthread flags to cmake fo fix build on FreeBSD 6-STABLEfluffy2009-11-301-0/+1 * Update to 3.3.1makc2009-11-293-12/+45 * - Mark BROKEN: does not compilepav2009-11-281-0/+2 * Change maintainers email.bsam2009-11-251-1/+1 * o Revert previous commit since the specific LDFLAGS is not neededlioux2009-11-241-7/+1 * - Fix build on systems where GCC stack protection (aka Propolice)lioux2009-11-231-0/+7 * Update to 0.14.7, the latest version, which contains numerous bug fixesdougb2009-11-236-22/+26 * Update to 3.0.1lioux2009-11-222-5/+4 * - Fix rc.d startup script:lioux2009-11-222-1/+8 * Update to 0.7.7lioux2009-11-222-7/+6 * - Update to 1.0.30 releasefluffy2009-11-207-39/+122 * - Fix the build error of verlihub-plugins-* reported by pointyhatwen2009-11-192-1/+2 * 2009-10-26 editors/qemacs: depends on old version of GCC, no maintainer, not ...miwi2009-11-195-173/+0 * - Bump PORTREVISION. The commoncpp port has been updatedacm2009-11-142-2/+4 * - Update to 0.9.8e-r1wen2009-11-138-263/+32 * uHub is a high performance peer-to-peer hub for the ADC network.amdmi32009-11-128-0/+238 * - Updated to 5.3.6glarkin2009-11-063-66/+4 * - Update depobjpav2009-11-021-2/+2 * Remove net-p2p/mute-net. It has been broken for eight months, yet there isgerald2009-11-019-354/+0 * Update to 1.76.mezz2009-11-013-5/+5 * Fix stack-based buffer overflow (CVE-2009-1759).flz2009-10-292-1/+87 * Add a patch to fix crash when total number of connections exceeds 1024.flz2009-10-292-1/+10 * Update net-p2p/rtorrent to 0.8.5.flz2009-10-292-7/+7 * - Update net-p2p/libtorrent to 0.12.5.flz2009-10-293-4/+13 * Update to 3.2.5 (bugfix release)makc2009-10-253-5/+5 * - Add missing dependencyjadawin2009-10-211-1/+2 * Remove net-p2p/mute-net-gui and net-p2p/mute-net-text; their master portgerald2009-10-193-32/+0 * Update to 3.2.4makc2009-10-083-8/+8 * - Update to 1.4.1miwi2009-09-304-16/+10 * - Update to 2.2.6wen2009-09-299-21/+36 * - Remove unfinished repocopy (repocopy performed 2009-04-05)pav2009-09-2410-404/+0 * - Update to 1.3.5amdmi32009-09-246-20/+22 * - Update to 0.14.6amdmi32009-09-244-8/+8 * Mark as DEPRECATED with an EXPIRATION_DATE of 2009-10-31. Nicotine doesn't seemstefan2009-09-211-0/+3 * Update to 1.75.mezz2009-09-194-6/+6 * - Update to 0.7.16miwi2009-09-164-22/+12 * - Update to 0.0.10.araujo2009-09-135-68/+21 * Add a missing dependency, transmission-web.mezz2009-09-131-1/+3 * Update to 0.051.tobez2009-09-123-6/+10 * Add eiskaltdcmakc2009-09-101-0/+1 * Add new port net-p2p/eiskaltdc:makc2009-09-107-0/+459 * - Update to 0.3.5miwi2009-09-092-5/+5 * - Update to 0.52miwi2009-09-052-4/+4 * - Chase net-p2p/rblibtorrent-devel shlib bumpmiwi2009-09-052-2/+4 * - Update to 0.14.5miwi2009-09-038-24/+78 * - Retire MASTER_SITE_SOURCEFORGE_EXTENDED, it's no longer needed - all mirror...amdmi32009-09-024-9/+4 * Update to 1.74.mezz2009-09-013-5/+5 * - Fix broken makefiles introduced with translation to new SF File Release Systemamdmi32009-08-221-1/+0 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-2254-90/+58 * - Update to 0.92miwi2009-08-192-4/+4 * Reformat port description.danfe2009-08-191-7/+7 * Fix build on 6-stable after Qt update.makc2009-08-181-0/+1 * Bump PORTREVISIONs of the gnutls dependant ports to chase gnutls update.novel2009-08-171-1/+1 * Package was rerolled to fix crash.makc2009-08-132-3/+5 * Update to 3.2.3makc2009-08-113-8/+9 * - Update to 5.2.13pav2009-08-032-4/+4 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-0314-16/+15 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-3133-21/+33 * - Add forgotten pkg-plistamdmi32009-07-301-0/+15 * - Update to 3.4.2.116amdmi32009-07-304-67/+22 * - Update to 5.2.10amdmi32009-07-292-4/+4 * - Update boost to 1.39pav2009-07-285-5/+5 * - Update to 5.2.8pav2009-07-243-16/+28 * - Update to 1.3.4pgollucci2009-07-234-8/+8 * - lang/perl5.6 is dead, remove PERL_LEVEL/PERL_VERSION < 500801 checkspgollucci2009-07-231-7/+1 * - Not MAKE_JOBS_SAFEpav2009-07-201-1/+1 * Update to 1.73.mezz2009-07-20