Changeset 18250fa


Ignore:
Timestamp:
Mar 11, 2012, 11:44:39 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
release-1.8
Children:
ef742ad
Parents:
3965ec3d
git-author:
Anders Kaseorg <andersk@mit.edu> (10/22/11 23:57:44)
git-committer:
David Benjamin <davidben@mit.edu> (03/11/12 23:44:39)
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

    r3965ec3d r18250fa  
    332332}
    333333
    334 int owl_zwrite_is_personal(const owl_zwrite *z)
     334bool owl_zwrite_is_personal(const owl_zwrite *z)
    335335{
    336336  /* return true if at least one of the recipients is personal */
    337337  int i;
    338   char *recip;
    339 
    340   for (i = 0; i < z->recips->len; i++) {
    341     recip = z->recips->pdata[i];
    342     if (recip[0] != '@') return 1;
    343   }
    344   return(0);
     338
     339  for (i = 0; i < z->recips->len; i++)
     340    if (owl_zwrite_recip_is_personal(z->recips->pdata[i]))
     341      return true;
     342  return false;
    345343}
    346344
Note: See TracChangeset for help on using the changeset viewer.