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

Diff of /imapfilter/imap.c

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

revision 1.38.2.1 by lefcha, Thu Oct 2 11:04:12 2003 UTC revision 1.38.2.2 by lefcha, Tue Jan 20 01:49:44 2004 UTC
# Line 349  imap_copy(conn_t * conn, char *mesg, cha Line 349  imap_copy(conn_t * conn, char *mesg, cha
349   * IMAP APPEND: append message to the end of a mailbox.   * IMAP APPEND: append message to the end of a mailbox.
350   */   */
351  int  int
352  imap_append(conn_t * conn, char *mbox, unsigned int size)  imap_append(conn_t * conn, char *mbox, char *flags, char *date, unsigned int size)
353  {  {
354          reset_buffer(&obuf);          reset_buffer(&obuf);
355          check_buffer(&obuf, strlen("APPEND") + strlen(mbox) +          check_buffer(&obuf, strlen("APPEND") + strlen(mbox) + strlen(flags) +
356              strlen(ultostr(size, 10)) + 18);              strlen(date) + strlen(ultostr(size, 10)) + 24);
357    
358          snprintf(obuf.data, obuf.size, "%04X APPEND \"%s\" {%d}\r\n", tag, mbox,          snprintf(obuf.data, obuf.size, "%04X APPEND \"%s\" (%s) \"%s\" {%d}\r\n",
359              size);              tag, mbox, flags, date, size);
360    
361          return send_command(conn, obuf.data);          return send_command(conn, obuf.data);
362  }  }

Legend:
Removed from v.1.38.2.1  
changed lines
  Added in v.1.38.2.2

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26