Changeset 719c699 for message.c


Ignore:
Timestamp:
Aug 3, 2008, 7:27:27 PM (13 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0f9eca7
Parents:
731dd1e
Message:
Clean up _burningears, which is better done in Perl, and _summarymode,
apparently not implemented.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r07bfbc2 r719c699  
    619619}
    620620
    621 int owl_message_is_burningears(owl_message *m)
    622 {
    623   /* we should add a global to cache the short zsender */
    624   char sender[LINE], *ptr;
    625 
    626   /* if the message is from us or to us, it doesn't count */
    627   if (owl_message_is_from_me(m) || owl_message_is_private(m)) return(0);
    628 
    629   if (owl_message_is_type_zephyr(m)) {
    630     strcpy(sender, owl_zephyr_get_sender());
    631     ptr=strchr(sender, '@');
    632     if (ptr) *ptr='\0';
    633   } else if (owl_message_is_type_aim(m)) {
    634     strcpy(sender, owl_global_get_aim_screenname(&g));
    635   } else {
    636     return(0);
    637   }
    638 
    639   if (stristr(owl_message_get_body(m), sender)) {
    640     return(1);
    641   }
    642   return(0);
    643 }
    644 
    645621/* caller must free return value. */
    646622char *owl_message_get_cc(owl_message *m)
Note: See TracChangeset for help on using the changeset viewer.