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

Diff of /imapfilter/request.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, Sat Jul 13 22:33:01 2002 UTC
# Line 463  int action_copy(char *mesgs, char *destm Line 463  int action_copy(char *mesgs, char *destm
463                                 imap_copy(&sockpri, tok, destmbox))) ==                                 imap_copy(&sockpri, tok, destmbox))) ==
464              RESPONSE_TRYCREATE)              RESPONSE_TRYCREATE)
465              if (!server_response(&sockpri, imap_create(&sockpri, destmbox))) {              if (!server_response(&sockpri, imap_create(&sockpri, destmbox))) {
466                  server_response(&sockpri, imap_subscribe(&sockpri, destmbox));                  if ((options & OPTION_SUBSCRIBE))
467                  r = copy_response(&sockpri, imap_copy(&sockpri, tok, destmbox));                      server_response(&sockpri,
468                                        imap_subscribe(&sockpri, destmbox));
469                    r = copy_response(&sockpri,
470                                      imap_copy(&sockpri, tok, destmbox));
471              }              }
472      }      }
473    
# Line 534  int action_rcopy(char *mesgs, account_t Line 537  int action_rcopy(char *mesgs, account_t
537          close_mailbox(&sockaux);          close_mailbox(&sockaux);
538      else if (r == RESPONSE_NO) {      else if (r == RESPONSE_NO) {
539          server_response(&sockaux, imap_create(&sockaux, ndm));          server_response(&sockaux, imap_create(&sockaux, ndm));
540          server_response(&sockaux, imap_subscribe(&sockaux, ndm));          if ((options & OPTION_SUBSCRIBE))
541                server_response(&sockaux, imap_subscribe(&sockaux, ndm));
542      }      }
543      m = mcp = xstrdup(mesgs);      m = mcp = xstrdup(mesgs);
544    
# Line 590  int action_rmove(char *mesgs, account_t Line 594  int action_rmove(char *mesgs, account_t
594    
595    
596  /*  /*
597   *   * Flag messages by replacing, adding or removing specified flags.
598   */   */
599  int action_flag(char *mesgs, unsigned int *type, unsigned int *msgflags,  int action_flag(char *mesgs, unsigned int *type, unsigned int *msgflags,
600                   char *args)                   char *args)
# Line 701  unsigned int count_messages(char *mesgs) Line 705  unsigned int count_messages(char *mesgs)
705    
706  /*  /*
707   * Convert messages with contiguous sequence number to the corresponding   * Convert messages with contiguous sequence number to the corresponding
708   * number range, eg. 1 2 3 5 7 8 --> 1:3 5 7:8   * number range, eg. 1 2 3 5 7 8 --> 1:3 5 7:8 and return a newly allocated
709     * buffer with the results.
710   */   */
711  char *convert_messages(char *mesgs)  char *convert_messages(char *mesgs)
712  {  {

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26