Changeset cee1f25 for functions.c


Ignore:
Timestamp:
Oct 28, 2003, 10:30:47 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
c7041b3
Parents:
12c35df
Message:
Fixed double quoting in smartzpunt
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r12c35df rcee1f25  
    26752675  }
    26762676
    2677   mclass = owl_text_quote(owl_message_get_class(m), OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
    2678   minst = owl_text_quote(owl_message_get_instance(m), OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
     2677  mclass = owl_message_get_class(m);
     2678  minst = owl_message_get_instance(m);
    26792679  if (!mclass || !*mclass || *mclass==' '
    26802680      || (!strcasecmp(mclass, "message") && !strcasecmp(minst, "personal"))
     
    26842684  } else {
    26852685    cmdprefix = "start-command zpunt ";
    2686     cmd = owl_malloc(strlen(cmdprefix)+strlen(mclass)+strlen(minst)+3);
     2686    cmd = owl_malloc(strlen(cmdprefix)+strlen(mclass)+strlen(minst)+10);
    26872687    strcpy(cmd, cmdprefix);
     2688    strcat(cmd, owl_getquoting(mclass));
    26882689    strcat(cmd, mclass);
     2690    strcat(cmd, owl_getquoting(mclass));
    26892691    if (type) {
    26902692      strcat(cmd, " ");
     2693      strcat(cmd, owl_getquoting(minst));
    26912694      strcat(cmd, minst);
     2695      strcat(cmd, owl_getquoting(minst));
    26922696    } else {
    26932697      strcat(cmd, " *");
     
    26962700    owl_free(cmd);
    26972701  }
    2698   owl_free(mclass);
    2699   owl_free(minst);
    27002702}
    27012703
     
    27682770  } else {
    27692771    quoted=owl_text_quote(class, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
     2772    owl_text_tr(quoted, ' ', '.');
    27702773    sprintf(buff, "%s ^%s$", buff, quoted);
    27712774    owl_free(quoted);
     
    27752778  } else {
    27762779    quoted=owl_text_quote(inst, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
     2780    owl_text_tr(quoted, ' ', '.');
    27772781    sprintf(buff, "%s and instance ^%s$", buff, quoted);
    27782782    owl_free(quoted);
     
    27802784  if (strcmp(recip, "*")) {
    27812785    quoted=owl_text_quote(recip, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
     2786    owl_text_tr(quoted, ' ', '.');
    27822787    sprintf(buff, "%s and recipient ^%s$", buff, quoted);
    27832788    owl_free(quoted);
Note: See TracChangeset for help on using the changeset viewer.