* apply 4a5a341e5166a9a5ed586e6d064076507d96c958 by Sam Liddicott; In search filters...
authorWilfried Göesgens <willi@citadel.org>
Fri, 12 Jun 2009 07:11:38 +0000 (07:11 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 12 Jun 2009 07:11:38 +0000 (07:11 +0000)
citadel/msgbase.c

index 31c5ae9b72068e8551885a8e8a0b33a8a68f18d9..5e6b9895acd835b88a696847ac2418228ecae347 100644 (file)
@@ -300,6 +300,8 @@ int CtdlMsgCmp(struct CtdlMessage *msg, struct CtdlMessage *template) {
        for (i='A'; i<='Z'; ++i) {
                if (template->cm_fields[i] != NULL) {
                        if (msg->cm_fields[i] == NULL) {
+                               /* Considered equal if temmplate is empty string */
+                               if (IsEmptyStr(template->cm_fields[i])) return 0;
                                return 1;
                        }
                        if (strcasecmp(msg->cm_fields[i],