aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2002-06-27 06:25:10 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-06-27 06:25:10 +0800
commit80ba32b9879fe46e8e8ab37708f421a860388b68 (patch)
treeda0a66db23f02f8e4acd5193743eb26cb6930a03 /mail
parentecb477e338d306cf8736bf986ae55c31589e2a9d (diff)
downloadgsoc2013-evolution-80ba32b9879fe46e8e8ab37708f421a860388b68.tar.gz
gsoc2013-evolution-80ba32b9879fe46e8e8ab37708f421a860388b68.tar.zst
gsoc2013-evolution-80ba32b9879fe46e8e8ab37708f421a860388b68.zip
slight build fixes
svn path=/trunk/; revision=17304
Diffstat (limited to 'mail')
-rw-r--r--mail/mail-config.c25
-rw-r--r--mail/mail-config.h10
-rw-r--r--mail/mail-preferences.c4
3 files changed, 20 insertions, 19 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index ed9a9be18f..e3151513b3 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -21,6 +21,7 @@
*
*/
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -106,7 +107,7 @@ typedef struct {
GSList *news;
char *pgp_path;
- CamelPgpType pgp_type;
+ int pgp_type;
MailConfigHTTPMode http_mode;
MailConfigForwardStyle default_forward_style;
@@ -891,11 +892,11 @@ config_read (void)
config->pgp_path = bonobo_config_get_string (config->db, "/Mail/PGP/path", NULL);
config->pgp_type = bonobo_config_get_long_with_default (config->db,
- "/Mail/PGP/type", CONFIG_PGP_TYPE_NONE, NULL);
+ "/Mail/PGP/type", MAIL_CONFIG_PGP_TYPE_NONE, NULL);
/* we only support GnuPG now */
- if (config->pgp_type != CONFIG_PGP_TYPE_GPG) {
- config->pgp_type = CONFIG_PGP_TYPE_NONE;
+ if (config->pgp_type != MAIL_CONFIG_PGP_TYPE_GPG) {
+ config->pgp_type = MAIL_CONFIG_PGP_TYPE_NONE;
g_free (config->pgp_path);
config->pgp_path = NULL;
}
@@ -1768,11 +1769,11 @@ struct {
char *version;
int type;
} binaries[] = {
- { "gpg", NULL, CONFIG_PGP_TYPE_GPG },
- { "pgp", "6.5.8", CONFIG_PGP_TYPE_PGP6 },
- { "pgp", "5.0", CONFIG_PGP_TYPE_PGP5 },
- { "pgp", "2.6", CONFIG_PGP_TYPE_PGP2 },
- { NULL, NULL, CONFIG_PGP_TYPE_NONE }
+ { "gpg", NULL, MAIL_CONFIG_PGP_TYPE_GPG },
+ { "pgp", "6.5.8", MAIL_CONFIG_PGP_TYPE_PGP6 },
+ { "pgp", "5.0", MAIL_CONFIG_PGP_TYPE_PGP5 },
+ { "pgp", "2.6", MAIL_CONFIG_PGP_TYPE_PGP2 },
+ { NULL, NULL, MAIL_CONFIG_PGP_TYPE_NONE }
};
@@ -1924,7 +1925,7 @@ mail_config_pgp_type_detect_from_path (const char *pgp)
/* make sure the file exists *and* is executable? */
if (stat (pgp, &st) == -1 || !(st.st_mode & (S_IXOTH | S_IXGRP | S_IXUSR)))
- return CONFIG_PGP_TYPE_NONE;
+ return MAIL_CONFIG_PGP_TYPE_NONE;
for (i = 0; binaries[i].bin; i++) {
if (binaries[i].version) {
@@ -1954,13 +1955,13 @@ mail_config_pgp_type_detect_from_path (const char *pgp)
}
}
- return CONFIG_PGP_TYPE_NONE;
+ return MAIL_CONFIG_PGP_TYPE_NONE;
}
static void
auto_detect_pgp_variables (void)
{
- int type = CONFIG_PGP_TYPE_NONE;
+ int type = MAIL_CONFIG_PGP_TYPE_NONE;
const char *PATH, *path;
char *pgp = NULL;
diff --git a/mail/mail-config.h b/mail/mail-config.h
index af65127dff..25b02fe9a4 100644
--- a/mail/mail-config.h
+++ b/mail/mail-config.h
@@ -32,11 +32,11 @@ extern "C" {
#endif /* __cplusplus */
enum {
- CONFIG_PGP_TYPE_NONE,
- CONFIG_PGP_TYPE_PGP2, /* no longer supported */
- CONFIG_PGP_TYPE_PGP5, /* no longer supported */
- CONFIG_PGP_TYPE_PGP6, /* no longer supported */
- CONFIG_PGP_TYPE_GPG
+ MAIL_CONFIG_PGP_TYPE_NONE,
+ MAIL_CONFIG_PGP_TYPE_PGP2, /* no longer supported */
+ MAIL_CONFIG_PGP_TYPE_PGP5, /* no longer supported */
+ MAIL_CONFIG_PGP_TYPE_PGP6, /* no longer supported */
+ MAIL_CONFIG_PGP_TYPE_GPG
};
typedef struct {
diff --git a/mail/mail-preferences.c b/mail/mail-preferences.c
index 99599df888..e1e36a1509 100644
--- a/mail/mail-preferences.c
+++ b/mail/mail-preferences.c
@@ -414,8 +414,8 @@ mail_preferences_apply (MailPreferences *prefs)
entry = gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (prefs->notify_sound_file));
string = gtk_entry_get_text (GTK_ENTRY (entry));
- pgp_type = string && *string ? mail_config_pgp_type_detect_from_path (string) : CONFIG_PGP_TYPE_NONE;
- if (pgp_type == CONFIG_PGP_TYPE_GPG) {
+ pgp_type = string && *string ? mail_config_pgp_type_detect_from_path (string) : MAIL_CONFIG_PGP_TYPE_NONE;
+ if (pgp_type == MAIL_CONFIG_PGP_TYPE_GPG) {
mail_config_set_pgp_path (string && *string ? string : NULL);
mail_config_set_pgp_type (pgp_type);
}