Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / providers / smtp / camel-smtp-provider.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-smtp-provider.c: smtp provider registration code */
3 /*
4  *  Authors: Jeffrey Stedfast <fejj@ximian.com>
5  *
6  *  Copyright 2002 Ximian, Inc. (www.ximian.com)
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU Lesser General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU Lesser General Public License for more details.
17  *
18  *  You should have received a copy of the GNU Lesser General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  */
23
24
25 #ifdef HAVE_CONFIG_H
26 #include <config.h>
27 #endif
28
29 #include <glib/gi18n-lib.h>
30
31 #include "camel-provider.h"
32 #include "camel-sasl.h"
33 #include "camel-session.h"
34 #include "camel-smtp-transport.h"
35 #include "camel-url.h"
36
37 static CamelProvider smtp_provider = {
38         "smtp",
39         N_("SMTP"),
40
41         N_("For delivering mail by connecting to a remote mailhub "
42            "using SMTP."),
43
44         "mail",
45
46         CAMEL_PROVIDER_IS_REMOTE | CAMEL_PROVIDER_SUPPORTS_SSL,
47
48         CAMEL_URL_NEED_HOST | CAMEL_URL_ALLOW_AUTH | CAMEL_URL_ALLOW_USER,
49
50         /* ... */
51 };
52
53 void
54 camel_provider_module_init(void)
55 {
56         smtp_provider.object_types[CAMEL_PROVIDER_TRANSPORT] = camel_smtp_transport_get_type ();
57         smtp_provider.authtypes = g_list_append (camel_sasl_authtype_list (TRUE), camel_sasl_authtype ("LOGIN"));
58         smtp_provider.authtypes = g_list_append (smtp_provider.authtypes, camel_sasl_authtype ("POPB4SMTP"));
59         smtp_provider.url_hash = camel_url_hash;
60         smtp_provider.url_equal = camel_url_equal;
61         smtp_provider.translation_domain = GETTEXT_PACKAGE;
62         
63         camel_provider_register(&smtp_provider);
64 }
65
66
67