/[imapfilter]/imapfilter/imap.c
ViewVC logotype

Diff of /imapfilter/imap.c

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

revision 1.26 by lefcha, Sat Jul 13 21:19:52 2002 UTC revision 1.27 by lefcha, Mon Feb 3 20:22:01 2003 UTC
# Line 215  int imap_create(int *sock, char *mbox) Line 215  int imap_create(int *sock, char *mbox)
215  /*  /*
216   * IMAP SEARCH: searches the mailbox for messages that match certain criteria.   * IMAP SEARCH: searches the mailbox for messages that match certain criteria.
217   */   */
218  int imap_search(int *sock, char *search)  int imap_search(int *sock, char *charset, char *search)
219  {  {
220      char cmd[BIG_CMD];      char cmd[BIG_CMD];
221    
222      verbose("Client request: SEARCH\n");      verbose("Client request: SEARCH\n");
223    
224      snprintf(cmd, BIG_CMD, "%X SEARCH %s\r\n", tag, search);      if (*charset)
225            snprintf(cmd, BIG_CMD, "%X SEARCH CHARSET \"%s\" %s\r\n", tag,
226                     charset, search);
227        else
228            snprintf(cmd, BIG_CMD, "%X SEARCH %s\r\n", tag, search);
229    
230      return send_command(sock, cmd);      return send_command(sock, cmd);
231  }  }

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26