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

Diff of /imapfilter/imap.c

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

revision 1.25 by lefcha, Sat Jul 13 14:11:08 2002 UTC revision 1.26 by lefcha, Sat Jul 13 21:19:52 2002 UTC
# Line 246  int imap_fetch(int *sock, char *mesg, ch Line 246  int imap_fetch(int *sock, char *mesg, ch
246  /*  /*
247   * IMAP STORE: alters data associated with a message.   * IMAP STORE: alters data associated with a message.
248   */   */
249  int imap_store(int *sock, char *mesg, char *flags)  int imap_store(int *sock, char *mesg, unsigned int mode, char *flags)
250  {  {
251      char cmd[MEDIUM_CMD];      char cmd[MEDIUM_CMD];
252    
253      verbose("Client request: STORE\n");      verbose("Client request: STORE\n");
254    
255      snprintf(cmd, MEDIUM_CMD, "%X STORE %s +FLAGS.SILENT (%s)\r\n", tag, mesg,      snprintf(cmd, MEDIUM_CMD, "%X STORE %s %sFLAGS.SILENT (%s)\r\n", tag, mesg,
256               flags);               (mode == STORE_FLAG_REPLACE ? "" :
257                  mode == STORE_FLAG_ADD ? "+" : "-"), flags);
258    
259      return send_command(sock, cmd);      return send_command(sock, cmd);
260  }  }

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26