- Timestamp:
- Jan 12, 2013, 1:43:13 PM (11 years ago)
- Children:
- e3a0d71, 4485285
- Parents:
- 4626016
- git-author:
- Jason Gross <jgross@mit.edu> (01/12/13 13:13:18)
- git-committer:
- Jason Gross <jgross@mit.edu> (01/12/13 13:43:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
r9b3167b r7869e48 320 320 subs = g_renew(ZSubscription_t, subs, subSize); 321 321 } 322 322 323 323 /* add it to the list of subs */ 324 324 if ((tmp = strtok(start, ",\n\r")) == NULL) … … 649 649 else if (!strcasecmp(n->z_default_format, "New transaction [$1] entered in $2\nFrom: $3 ($5)\nSubject: $4") || 650 650 !strcasecmp(n->z_default_format, "New transaction [$1] entered in $2\nFrom: $3\nSubject: $4")) { 651 651 652 652 msg = g_strdup_printf("New transaction [%s] entered in %s\nFrom: %s (%s)\nSubject: %s", 653 653 fields[1], fields[2], fields[3], fields[5], fields[4]); … … 707 707 ZNotice_t notice; 708 708 char *zsender = NULL; 709 709 710 710 memset(¬ice, 0, sizeof(notice)); 711 711 … … 713 713 714 714 if (!zsig) zsig=""; 715 715 716 716 notice.z_kind=ACKED; 717 717 notice.z_port=0; … … 738 738 /* ret=ZSendNotice(¬ice, ZAUTH); */ 739 739 ret=ZSrvSendNotice(¬ice, ZAUTH, send_zephyr_helper); 740 740 741 741 /* free then check the return */ 742 742 g_free(notice.z_message); … … 771 771 { 772 772 char *tmp; 773 773 774 774 /* if it's an HMACK ignore it */ 775 775 if (retnotice->z_kind == HMACK) return; … … 880 880 } 881 881 #endif 882 882 883 883 void owl_zephyr_zaway(const owl_message *m) 884 884 { … … 886 886 char *tmpbuff, *myuser, *to; 887 887 owl_zwrite *z; 888 888 889 889 /* bail if it doesn't look like a message we should reply to. Some 890 890 * of this defined by the way zaway(1) works … … 1032 1032 char *line, *subsfile; 1033 1033 int linesdeleted; 1034 1034 1035 1035 line=owl_zephyr_makesubline(class, inst, recip); 1036 1036 line[strlen(line)-1]='\0'; 1037 1037 1038 1038 subsfile = owl_zephyr_dotfile(".zephyr.subs", filename); 1039 1039 1040 1040 linesdeleted = owl_util_file_deleteline(subsfile, line, 1); 1041 1041 if (linesdeleted > 0) { … … 1082 1082 char *filename; 1083 1083 FILE *file; 1084 1084 1085 1085 filename = owl_zephyr_dotfile(".anyone", NULL); 1086 1086 file = fopen(filename, "a"); … … 1118 1118 } else { 1119 1119 return ("UNKNOWN"); 1120 } 1120 } 1121 1121 } 1122 1122 #else … … 1254 1254 return 0; 1255 1255 } 1256 1256 1257 1257 /* Strip a local realm fron the zephyr user name. 1258 1258 * The caller must free the return
Note: See TracChangeset
for help on using the changeset viewer.