Changeset b12c219 for message.c


Ignore:
Timestamp:
Oct 12, 2002, 11:19:55 AM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
aa2f6364
Parents:
2527615
Message:
The simple format for "To:" is in effect again
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    rbe97670 rb12c219  
    515515
    516516void _owl_message_make_text_from_zwriteline_simple(owl_message *m) {
    517   _owl_message_make_text_from_zwriteline_standard(m);
     517  char *indent, *text, *zsigbuff, *foo;
     518
     519  text=owl_message_get_body(m);
     520
     521  indent=owl_malloc(strlen(text)+owl_text_num_lines(text)*OWL_MSGTAB+10);
     522  owl_text_indent(indent, text, OWL_MSGTAB);
     523  owl_fmtext_init_null(&(m->fmtext));
     524  owl_fmtext_append_normal(&(m->fmtext), OWL_TABSTR);
     525  owl_fmtext_append_normal(&(m->fmtext), "To: ");
     526  foo=short_zuser(owl_message_get_recipient(m));
     527  owl_fmtext_append_normal(&(m->fmtext), foo);
     528  owl_free(foo);
     529  owl_fmtext_append_normal(&(m->fmtext), "  (Zsig: ");
     530
     531  zsigbuff=owl_malloc(strlen(owl_message_get_zsig(m)));
     532  owl_message_pretty_zsig(m, zsigbuff);
     533  owl_fmtext_append_ztext(&(m->fmtext), zsigbuff);
     534  owl_free(zsigbuff);
     535 
     536  owl_fmtext_append_normal(&(m->fmtext), ")");
     537  owl_fmtext_append_normal(&(m->fmtext), "\n");
     538  owl_fmtext_append_ztext(&(m->fmtext), indent);
     539  if (text[strlen(text)-1]!='\n') {
     540    owl_fmtext_append_normal(&(m->fmtext), "\n");
     541  }
     542
     543  owl_free(indent);
    518544}
    519545
Note: See TracChangeset for help on using the changeset viewer.