Do ignore empty recipients when checking names
[modest] / src / modest-protocol-registry.h
index 7a14bab..5ee978a 100644 (file)
@@ -49,9 +49,16 @@ G_BEGIN_DECLS
 #define MODEST_PROTOCOL_REGISTRY_SECURE_PROTOCOLS "secure"
 #define MODEST_PROTOCOL_REGISTRY_HAS_LEAVE_ON_SERVER_PROTOCOLS "leave-on-server-available"
 #define MODEST_PROTOCOL_REGISTRY_PROVIDER_PROTOCOLS "providers"
+#define MODEST_PROTOCOL_REGISTRY_SINGLETON_PROVIDER_PROTOCOLS "singleton-providers"
+#define MODEST_PROTOCOL_REGISTRY_MULTI_MAILBOX_PROVIDER_PROTOCOLS "multi-mailbox-providers"
 #define MODEST_PROTOCOL_REGISTRY_USE_ALTERNATE_PORT "use-alternate-port"
 #define MODEST_PROTOCOL_REGISTRY_STORE_HAS_FOLDERS "store-has-folders"
-#define MODEST_PROTOCOL_REGISTRY_STORE_FORBID_MESSAGE_ADD "store-forbid-message-add"
+/* Accounts that cannot be the destination of messages or folders transfers */
+#define MODEST_PROTOCOL_REGISTRY_STORE_FORBID_INCOMING_XFERS "store-forbid-incoming-xfers"
+/* Accounts that do not allow to move messages or folders from */
+#define MODEST_PROTOCOL_REGISTRY_STORE_FORBID_OUTGOING_XFERS "store-forbid-outgoing-xfers"
+#define MODEST_PROTOCOL_REGISTRY_NO_AUTO_UPDATE_PROTOCOLS "no-auto-update"
+#define MODEST_PROTOCOL_REGISTRY_STORE_LIMIT_HEADER_WINDOW "store-limit-header-window"
 
 /* convenience macros */
 #define MODEST_TYPE_PROTOCOL_REGISTRY             (modest_protocol_registry_get_type())
@@ -92,6 +99,7 @@ G_BEGIN_DECLS
 #define MODEST_PROTOCOL_TRANSLATION_AUTH_ERROR "translation-auth-error" /* server name */
 #define MODEST_PROTOCOL_TRANSLATION_ACCOUNT_CONNECTION_ERROR "translation-account-connection-error" /* hostname */
 #define MODEST_PROTOCOL_TRANSLATION_MSG_NOT_AVAILABLE "translation-msg-not-available" /* subject */
+#define MODEST_PROTOCOL_TRANSLATION_MSG_NOT_AVAILABLE_LOST_HEADER "translation-msg-not-available-lost-header" /* subject */
 #define MODEST_PROTOCOL_TRANSLATION_SSL_PROTO_NAME "translation-ssl-proto-name"
 
 
@@ -212,6 +220,10 @@ gboolean modest_protocol_registry_protocol_type_has_tag (ModestProtocolRegistry
        modest_protocol_registry_protocol_type_has_tag ((registry), (protocol_type), \
                                                        MODEST_PROTOCOL_REGISTRY_PROVIDER_PROTOCOLS)
 
+#define modest_protocol_registry_protocol_type_is_singleton_provider(registry,protocol_type) \
+       modest_protocol_registry_protocol_type_has_tag ((registry), (protocol_type), \
+                                                       MODEST_PROTOCOL_REGISTRY_SINGLETON_PROVIDER_PROTOCOLS)
+
 #define modest_protocol_registry_protocol_type_has_leave_on_server(registry,protocol_type) \
        modest_protocol_registry_protocol_type_has_tag ((registry), (protocol_type), \
                                                        MODEST_PROTOCOL_REGISTRY_HAS_LEAVE_ON_SERVER_PROTOCOLS)