Changeset e50cd56 for message.c


Ignore:
Timestamp:
Jul 11, 2002, 12:47:16 AM (22 years ago)
Author:
Erik Nygren <nygren@mit.edu>
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:
aa2f33b3
Parents:
e173507
Message:
Fixed some buffer overruns in the "reply" command.
When repying to "all" on a message that begins with "CC:" (eg, sent
         with "zwrite -C", the reply line will be constructed
         from the sender and the usernames on the CC: line
         of the message being replied to.
There is no such thing as C-R, so left C-r as it is but added:
         M-r --- edit reply to all
         M-R --- edit reply to sender
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r1aee7d9 re50cd56  
    607607}
    608608
     609/* caller must free return value. */
     610char *owl_message_get_cc(owl_message *m) {
     611  char *cur, *out, *end;
     612
     613  cur = owl_message_get_body(m);
     614  while (*cur && *cur==' ') cur++;
     615  if (strncasecmp(cur, "cc:", 2)) return(NULL);
     616  cur+=3;
     617  while (*cur && *cur==' ') cur++;
     618  out = owl_strdup(cur);
     619  end = strchr(out, '\n');
     620  if (end) end[0] = '\0';
     621  return(out);
     622}
     623
    609624int owl_message_get_id(owl_message *m) {
    610625  return(m->id);
Note: See TracChangeset for help on using the changeset viewer.