Changeset d6b2ae8


Ignore:
Timestamp:
Jan 23, 2012, 6:41:18 PM (9 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.9
Children:
9d206c6
Parents:
bff1f22
git-author:
Anders Kaseorg <andersk@mit.edu> (10/22/11 23:57:44)
git-committer:
Anders Kaseorg <andersk@mit.edu> (01/23/12 18:41:18)
Message:
Don’t treat zwrite '' as personal

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: David Benjamin <davidben@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zwrite.c

    rbff1f22 rd6b2ae8  
    343343}
    344344
    345 int owl_zwrite_is_personal(const owl_zwrite *z)
     345bool owl_zwrite_is_personal(const owl_zwrite *z)
    346346{
    347347  /* return true if at least one of the recipients is personal */
    348348  int i;
    349   char *recip;
    350 
    351   for (i = 0; i < z->recips->len; i++) {
    352     recip = z->recips->pdata[i];
    353     if (recip[0] != '@') return 1;
    354   }
    355   return(0);
     349
     350  for (i = 0; i < z->recips->len; i++)
     351    if (owl_zwrite_recip_is_personal(z->recips->pdata[i]))
     352      return true;
     353  return false;
    356354}
    357355
Note: See TracChangeset for help on using the changeset viewer.