- Timestamp:
- Jul 2, 2003, 6:15:24 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 373b7e7
- Parents:
- 7c9c847
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
message.c
r1d3e925 r09489b89 1 #include <zephyr/zephyr.h>2 1 #include <stdlib.h> 3 2 #include <unistd.h> … … 434 433 return(&(m->notice)); 435 434 } 435 #else 436 void *owl_message_get_notice(owl_message *m) 437 { 438 return(NULL); 439 } 436 440 #endif 437 441 … … 473 477 if (strcasecmp(owl_message_get_class(m), "message")) return(0); 474 478 if (strcasecmp(owl_message_get_instance(m), "personal")) return(0); 475 if (!strcasecmp(owl_message_get_recipient(m), ZGetSender()) ||476 !strcasecmp(owl_message_get_sender(m), ZGetSender())) {479 if (!strcasecmp(owl_message_get_recipient(m), owl_zephyr_get_sender()) || 480 !strcasecmp(owl_message_get_sender(m), owl_zephyr_get_sender())) { 477 481 return(1); 478 482 } … … 484 488 { 485 489 if (owl_message_is_type_zephyr(m)) { 486 if (!strcasecmp(owl_message_get_sender(m), ZGetSender())) {490 if (!strcasecmp(owl_message_get_sender(m), owl_zephyr_get_sender())) { 487 491 return(1); 488 492 } else { … … 534 538 535 539 if (owl_message_is_type_zephyr(m)) { 536 strcpy(sender, ZGetSender());540 strcpy(sender, owl_zephyr_get_sender()); 537 541 ptr=strchr(sender, '@'); 538 542 if (ptr) *ptr='\0'; … … 620 624 } 621 625 626 #ifdef HAVE_LIBZEPHYR 622 627 void owl_message_create_from_znotice(owl_message *m, ZNotice_t *n) 623 628 { … … 654 659 owl_message_set_realm(m, ptr+1); 655 660 } else { 656 owl_message_set_realm(m, ZGetRealm());661 owl_message_set_realm(m, owl_zephyr_get_realm()); 657 662 } 658 663 … … 667 672 668 673 /* is the "isprivate" attribute if it's a private zephyr */ 669 if (!strcasecmp(n->z_recipient, ZGetSender())) {674 if (!strcasecmp(n->z_recipient, owl_zephyr_get_sender())) { 670 675 owl_message_set_isprivate(m); 671 676 } … … 716 721 m->time[strlen(m->time)-1]='\0'; 717 722 } 723 #else 724 void owl_message_create_from_znotice(owl_message *m, void *n) 725 { 726 } 727 #endif 718 728 719 729 void owl_message_create_from_zwriteline(owl_message *m, char *line, char *body, char *zsig) … … 730 740 owl_message_set_direction_out(m); 731 741 owl_message_set_type_zephyr(m); 732 owl_message_set_sender(m, ZGetSender());742 owl_message_set_sender(m, owl_zephyr_get_sender()); 733 743 owl_message_set_class(m, owl_zwrite_get_class(&z)); 734 744 owl_message_set_instance(m, owl_zwrite_get_instance(&z)); … … 765 775 int i, j; 766 776 owl_pair *p; 767 777 #ifdef HAVE_LIBZEPHYR 768 778 if (owl_message_is_type_zephyr(m) && owl_message_is_direction_in(m)) { 769 779 ZFreeNotice(&(m->notice)); 770 780 } 781 #endif 771 782 if (m->time) owl_free(m->time); 772 783 if (m->zwriteline) owl_free(m->zwriteline);
Note: See TracChangeset
for help on using the changeset viewer.