Changeset fba0f96 for zephyr.c


Ignore:
Timestamp:
Feb 15, 2007, 5:51:14 PM (14 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
3f21b8e
Parents:
0ff2528
Message:
Tweak for MIT's -c DISCUSS messages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    r93e883d rfba0f96  
    386386    owl_free(field3);
    387387    owl_free(field4);
     388    if (msg) {
     389      return msg;
     390    }
     391  }
     392  /* deal with MIT Discuss messages */
     393  else if (!strcasecmp(n->z_sender, "daemon@ATHENA.MIT.EDU") &&
     394           !strcasecmp(n->z_class, "DISCUSS")) {
     395    /*New transaction [$1] entered in $2
     396      From: $3 ($5)
     397      Subject: $4 */
     398   
     399    char *msg, *field1, *field2, *field3, *field4, *field5;
     400   
     401    field1 = owl_zephyr_get_field(n, 1);
     402    field2 = owl_zephyr_get_field(n, 2);
     403    field3 = owl_zephyr_get_field(n, 3);
     404    field4 = owl_zephyr_get_field(n, 4);
     405    field5 = owl_zephyr_get_field(n, 5);
     406   
     407    msg = owl_sprintf("New transaction [%s] entered in %s\nFrom: %s (%s)\nSubject: %s", field1, field2, field3, field5, field4);
     408    owl_free(field1);
     409    owl_free(field2);
     410    owl_free(field3);
     411    owl_free(field4);
     412    owl_free(field5);
    388413    if (msg) {
    389414      return msg;
Note: See TracChangeset for help on using the changeset viewer.