2 #include "modest-proto.h"
6 modest_proto_is_valid (const gchar *proto)
9 static const gchar* protos[] = {
10 MODEST_PROTO_SENDMAIL,
20 for (i = 0; protos[i]; ++i) {
21 if (strcmp(protos[i], proto) == 0)
31 modest_proto_type (const gchar *proto)
33 if (!modest_proto_is_valid(proto)) {
34 g_warning ("invalid protocol %s", proto);
40 return MODEST_PROTO_TYPE_TRANSPORT;
42 return MODEST_PROTO_TYPE_STORE;