[939] in BarnOwl Developers
[D-O-H] r926 - trunk/owl
daemon@ATHENA.MIT.EDU (geofft@MIT.EDU)
Thu Oct 29 18:11:21 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
Date: Mon, 4 Feb 2008 18:20:09 -0500
To: dirty-owl-hackers@mit.edu
From: geofft@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Author: geofft
Date: 2008-02-04 18:20:08 -0500 (Mon, 04 Feb 2008)
New Revision: 926
Modified:
trunk/owl/variable.c
trunk/owl/zephyr.c
Log:
Add the variable 'zsender' to customize the outgoing Zephyr username.
Modified: trunk/owl/variable.c
===================================================================
--- trunk/owl/variable.c 2008-02-04 20:35:39 UTC (rev 925)
+++ trunk/owl/variable.c 2008-02-04 23:20:08 UTC (rev 926)
@@ -208,6 +208,13 @@
"messages. It will not be run again until the first\n"
"instance exits"),
+ OWLVAR_STRING( "zsender" /* %OwlVarStub */, "",
+ "zephyr sender name",
+ "Allows you to customize the outgoing username in\n"
+ "zephyrs. If this is unset, it will use your Kerberos\n"
+ "principal. Note that customizing the sender name will\n"
+ "cause your zephyrs to be sent unauthenticated."),
+
OWLVAR_STRING( "zsig" /* %OwlVarStub */, "",
"zephyr signature",
"If 'zsigproc' is not set, this string will be used\n"
Modified: trunk/owl/zephyr.c
===================================================================
--- trunk/owl/zephyr.c 2008-02-04 20:35:39 UTC (rev 925)
+++ trunk/owl/zephyr.c 2008-02-04 23:20:08 UTC (rev 926)
@@ -500,7 +500,10 @@
notice.z_recipient=recipient;
}
notice.z_default_format="Class $class, Instance $instance:\nTo: @bold($recipient) at $time $date\nFrom: @bold{$1 <$sender>}\n\n$2";
- notice.z_sender=NULL;
+ if (*owl_global_get_zsender(&g))
+ notice.z_sender=owl_global_get_zsender(&g);
+ else
+ notice.z_sender=NULL;
if (opcode) notice.z_opcode=opcode;
notice.z_message_len=strlen(zsig)+1+strlen(message);