Main Page   Compound List   File List   Compound Members   File Members  

zaway.vtc File Reference

Respond to personal messages when we're away. More...

#include "zsend.vtc"
#include "zsend-zwrite.vtc"

Include dependency graph for zaway.vtc:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

func Zaway (s)
 User command to become away. More...

func Zback ()
 User command to return from being away. More...

func zaway_respond (z, sig)
 Internal command to respond to a zephyr while away. More...


Variables

 zaway = 0
 Global variable determining whether or not the user is away. More...


Detailed Description

Respond to personal messages when we're away.

Author:
David Maze <dmaze@mit.edu>
Version:
$Id$

This file contains code for allowing a vt user to become "away". An away user sends an automatic response to all personal zephyrgrams indicating that they are away, if the incoming message is not itself an away message.

Definition in file zaway.vtc.


Function Documentation

func Zaway ( s )
 

User command to become away.

Zaway() allows the user to leave the terminal, as described above. The zaway variable is set to 1, allowing automated responses, and a message is sent to instance ``zaway'' of the user's personal zephyr class. The message is the parameter s, or ``Away for a while.'' if that is not specified.

Parameters:
s   String message to send when announcing away.

Definition at line 36 of file zaway.vtc.

func Zback ( )
 

User command to return from being away.

Zback() is called when the user returns. zaway is set to 0, disabling message auto-replies, and a ``Back now.'' message is sent to instance ``zaway'' of the user's personal class.

Definition at line 59 of file zaway.vtc.

func zaway_respond ( z,
sig )
 

Internal command to respond to a zephyr while away.

This function is called by the incoming-message code in .local.vtc to possibly respond to a message. The message is ignored if the zaway flag is 0, the message is not a personal message, the signature contains the string ``automated reply'', or the message was not to class ``message''. If none of these conditions are met, a reply message is sent with the contents of the zaway variable.

Parameters:
z   Incoming message structure with the message being considered.
sig   Signature from the message.

Definition at line 89 of file zaway.vtc.

Referenced by zephyr_output().


Variable Documentation

zaway = 0
 

Global variable determining whether or not the user is away.

If this variable is 0, the user is not away and no away messages will be sent. Otherwise, this variable should contain a pointer to the away message.

Definition at line 23 of file zaway.vtc.


Generated at Mon Aug 13 16:45:54 2001 for dzm-vtc by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001