X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-defs.h;h=078d7e4b6c75ebe908fc616c53b37937e412bedd;hp=ded2ec2c0c07ba3ae7d802a0bcdeb49f3a7ad155;hb=1f6375ad6e5dd08dac82311056e01bfe434bac9b;hpb=b587d015280efc78a756a9271b9e1c2075757dca diff --git a/src/modest-defs.h b/src/modest-defs.h index ded2ec2..078d7e4 100644 --- a/src/modest-defs.h +++ b/src/modest-defs.h @@ -33,11 +33,11 @@ #include -/* some interesting dirs. NOTE, they should be prefixed - * with $HOME; also, except MODEST_DIR itself, they +/* Some interesting directories. NOTE, they should be prefixed + * with $HOME; Also, except for MODEST_DIR itself, they * need to be prefixed with MODEST_DIR; - * why these seperate things? well, this is for crossplatform - * building of dirs from their components.. + * The parts of the path are separate for crossplatform + * building of dirs from their components. * g_build_dir is your friend */ #define MODEST_DIR ".modest" @@ -45,10 +45,25 @@ #define MODEST_LOCAL_FOLDERS_ACCOUNT_ID "local_folders" #define MODEST_LOCAL_FOLDERS_ACCOUNT_NAME MODEST_LOCAL_FOLDERS_ACCOUNT_ID + +/** Sent, Drafts, etc, are on-disk + * but not outbox, because outbox is a virtual folder merged from the + * various outboxes//outbox folders. + */ #define MODEST_LOCAL_FOLDERS_MAILDIR MODEST_LOCAL_FOLDERS_ACCOUNT_ID +/** There is an outboxes//outbox/ folder for each account, + * though we merge them so that the user sees only one outbox. + */ +#define MODEST_PER_ACCOUNT_LOCAL_OUTBOX_FOLDER_ACCOUNT_ID_PREFIX "outboxes" +#define MODEST_PER_ACCOUNT_LOCAL_OUTBOX_FOLDERS_MAILDIR MODEST_PER_ACCOUNT_LOCAL_OUTBOX_FOLDER_ACCOUNT_ID_PREFIX + #define MODEST_MMC_ACCOUNT_ID "mcc" -#define MODEST_MCC_ACCOUNT_MAILDIR "/media/mmc1/.Maildir" + +/* Without the trailing / because gnome-vfs reports mounted + * volume URIs without the trailing, and we want to match them: */ +#define MODEST_MCC1_VOLUMEPATH "/media/mmc1" +#define MODEST_MCC1_VOLUMEPATH_URI "file://" MODEST_MCC1_VOLUMEPATH /* configuration key definitions for modest */ #define MODEST_CONF_NAMESPACE "/apps/modest" @@ -57,7 +72,7 @@ #define MODEST_ACCOUNT_NAMESPACE MODEST_CONF_NAMESPACE "/accounts" #define MODEST_CONF_DEFAULT_ACCOUNT MODEST_CONF_NAMESPACE "/default_account" -#define MODEST_CONF_CONNECT_AT_STARTUP MODEST_CONF_NAMESPACE "/connect_at_startup" +/* Not used: #define MODEST_CONF_CONNECT_AT_STARTUP MODEST_CONF_NAMESPACE "/connect_at_startup" */ #define MODEST_CONF_SHOW_CC MODEST_CONF_NAMESPACE "/show_cc" #define MODEST_CONF_SHOW_BCC MODEST_CONF_NAMESPACE "/show_bcc" @@ -144,7 +159,7 @@ #define MODEST_ACCOUNT_SECURITY "security" #define MODEST_ACCOUNT_SECURITY_VALUE_NONE "none" -#define MODEST_ACCOUNT_SECURITY_VALUE_NORMAL "normal" +#define MODEST_ACCOUNT_SECURITY_VALUE_NORMAL "normal" /* Meaning "Normal (TLS)", as in our UI spec. */ #define MODEST_ACCOUNT_SECURITY_VALUE_SSL "ssl" /* Macros for different text formats in mail editor */