


ZMAILNOTIFY(1)           USER COMMANDS             ZMAILNOTIFY(1)



NAME
     zmailnotify - retrieve mail headers  from  post  office  and
     transmit via Zephyr

SYNOPSIS
     zmailnotify

DESCRIPTION
     _z_m_a_i_l_n_o_t_i_f_y connects to the invoking user's POP post  office
     and  retrieves  the  From, To, and Subject fields of waiting
     messages, and then sends one Zephyr notice  per  message  to
     class  MAIL,  instance POPRET, recipient <_u_s_e_r@_r_e_a_l_m>, where
     <user@realm> is the invoking  user's  username  concatenated
     with the local Zephyr realm (e.g. jruser@ATHENA.MIT.EDU).

     _z_m_a_i_l_n_o_t_i_f_y is intended  to  be  executed  by  _z_w_g_c(_1)  when
     notifications  of  spooled  mail (such as those generated by
     _z_p_o_p_n_o_t_i_f_y(_8)) are delivered.  By default,  these  notifica-
     tions  are  not  delivered,  nor  are  they  acted upon.  To
     receive the notices,  you  must  subscribe  to  class  MAIL,
     instance POP, recipient username@realm  (see _z_c_t_l(1)).  Once
     you subscribe to these notices, by default they will be sim-
     ply  displayed  on  your  display or terminal by _z_w_g_c(_1). To
     have _z_m_a_i_l_n_o_t_i_f_y executed when they are delivered, you  must
     copy   the   system   default  windowgram  description  file
     (/_u_s_r/_a_t_h_e_n_a/_l_i_b/_z_e_p_h_y_r/_z_w_g_c._d_e_s_c) to your home directory as
     filename ~/._z_w_g_c._d_e_s_c and follow the directions contained in
     that file pertaining to MAIL NOTIFICATION.

     _z_m_a_i_l_n_o_t_i_f_y only retrieves four headers at one time in order
     to  reduce  the competition for the mailbox lock on the post
     office.  If more than four mail messages are waiting, _z_m_a_i_l_-
     _n_o_t_i_f_y will only retrieve the four most recent mail headers.

     To check for mail already waiting when you log in,  use  the
     standard MH program _m_s_g_c_h_k(_1).

BUGS
     _z_m_a_i_l_n_o_t_i_f_y only sends notification of mail which appears to
     be  unique.   Uniqueness is determined by comparing the To:,
     From:, and Subject: fields of  the  message  with  the  last
     checked mail message; if the three fields match exactly, the
     new message is not considered unique.  The To:,  From:,  and
     Subject:  fields  of the last message are stored in the file
     $_H_O_M_E/._m_a_i_l_l_o_c_k.

FILES
     $HOME/.maillock

SEE ALSO
     msgchk(1), zctl(1), zephyr(1), zwgc(1), zhm(8),  zephyrd(8),
     zpopnotify(8), popd(8)



MIT Project Athena  Last change: July 8, 1988                   1






ZMAILNOTIFY(1)           USER COMMANDS             ZMAILNOTIFY(1)



     Project Athena Technical Plan Section E.4.1, `Zephyr Notifi-
     cation Service'

AUTHOR
     Robert S. French (MIT-Project Athena)

RESTRICTIONS
     Copyright (c) 1987,1988 by the  Massachusetts  Institute  of
     Technology.  All Rights Reserved.
     _z_e_p_h_y_r(_1) specifies the terms and conditions for redistribu-
     tion.












































MIT Project Athena  Last change: July 8, 1988                   2



