/[mailutils]/mailutils/imap4d/search.c
ViewVC logotype

Diff of /mailutils/imap4d/search.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by gray, Mon May 13 14:41:33 2002 UTC revision 1.13 by gray, Sun Aug 4 08:10:49 2002 UTC
# Line 837  void Line 837  void
837  cond_keyword (struct parsebuf *pb)  cond_keyword (struct parsebuf *pb)
838  {  {
839    char *s = _search_arg (pb);    char *s = _search_arg (pb);
   int rc;  
840    attribute_t attr = NULL;    attribute_t attr = NULL;
841        
842    message_get_attribute (pb->msg, &attr);    message_get_attribute (pb->msg, &attr);
843    if (!strcmp (s, "\\Seen"))    _search_push (pb, util_attribute_matches_flag (attr, s));
     rc = attribute_is_seen (attr);  
   else if (!strcmp (s, "\\Answered"))  
     rc = attribute_is_answered (attr);  
   else if (!strcmp (s, "\\Flagged"))  
     rc = attribute_is_flagged (attr);  
   else if (!strcmp (s, "\\Deleted"))  
     rc = attribute_is_deleted (attr);  
   else if (!strcmp (s, "\\Draft"))  
     rc = attribute_is_draft (attr);  
   else if (!strcmp (s, "\\Recent"))  
     rc = attribute_is_recent (attr);  
   else  
     rc = 0;  
   _search_push (pb, rc);  
844  }                    }                  
845    
846  void  void

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26