Changeset 247cbc9


Ignore:
Timestamp:
Feb 4, 2008, 6:20:08 PM (17 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
005fc22
Parents:
af1920fd
Message:
Add the variable 'zsender' to customize the outgoing Zephyr username.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    raf1920fd r247cbc9  
    208208               "messages.  It will not be run again until the first\n"
    209209               "instance exits"),
     210
     211  OWLVAR_STRING( "zsender" /* %OwlVarStub */, "",
     212             "zephyr sender name",
     213         "Allows you to customize the outgoing username in\n"
     214         "zephyrs.  If this is unset, it will use your Kerberos\n"
     215         "principal. Note that customizing the sender name will\n"
     216         "cause your zephyrs to be sent unauthenticated."),
    210217
    211218  OWLVAR_STRING( "zsig" /* %OwlVarStub */, "",
  • zephyr.c

    r10e3963 r247cbc9  
    501501  }
    502502  notice.z_default_format="Class $class, Instance $instance:\nTo: @bold($recipient) at $time $date\nFrom: @bold{$1 <$sender>}\n\n$2";
    503   notice.z_sender=NULL;
     503  if (*owl_global_get_zsender(&g))
     504      notice.z_sender=owl_global_get_zsender(&g);
     505  else
     506      notice.z_sender=NULL;
    504507  if (opcode) notice.z_opcode=opcode;
    505508
Note: See TracChangeset for help on using the changeset viewer.