home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / x / volume19 / xmail / part03 < prev    next >
Encoding:
Text File  |  1993-04-27  |  58.5 KB  |  1,301 lines

  1. Newsgroups: comp.sources.x
  2. From: markham@cadence.com (Jeff Markham)
  3. Subject: v19i028:  xmail - X Window System interface to the mail program, Part03/10
  4. Message-ID: <1993Mar10.202538.10196@sparky.imd.sterling.com>
  5. X-Md4-Signature: d6d5a1a21381750b1847c818f468aae6
  6. Date: Wed, 10 Mar 1993 20:25:38 GMT
  7. Approved: chris@sparky.imd.sterling.com
  8.  
  9. Submitted-by: markham@cadence.com (Jeff Markham)
  10. Posting-number: Volume 19, Issue 28
  11. Archive-name: xmail/part03
  12. Environment: X11
  13. Supersedes: xmail: Volume 15, Issue 18-26
  14.  
  15. #! /bin/sh
  16. # This is a shell archive.  Remove anything before this line, then feed it
  17. # into a shell via "sh file" or similar.  To overwrite existing files,
  18. # type "sh file -c".
  19. # Contents:  Imakefile xmail.man
  20. # Wrapped by chris@sparky on Wed Mar 10 14:17:45 1993
  21. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin ; export PATH
  22. echo If this archive is complete, you will see the following message:
  23. echo '          "shar: End of archive 3 (of 10)."'
  24. if test -f 'Imakefile' -a "${1}" != "-c" ; then 
  25.   echo shar: Will not clobber existing file \"'Imakefile'\"
  26. else
  27.   echo shar: Extracting \"'Imakefile'\" \(2662 characters\)
  28.   sed "s/^X//" >'Imakefile' <<'END_OF_FILE'
  29. X/* */#
  30. X/* */# @(#)Imakefile - for xmail version 1 patchlevel 5
  31. X/* */#
  32. X/* */# Uncomment USE_DIRENT if readdir() uses <dirent.h> instead of <sys/dir.h>
  33. X/* */#
  34. X     USE_DIRENT = -DUSE_DIRENT
  35. X/* */#
  36. X/* */# Uncomment X_FACE and COMPFACE if you have the compface library installed
  37. X/* */# and you want xmail to automatically display the X-Face: header, if found
  38. X/* */# in a message.
  39. X/* */#
  40. X/* */#         X_FACE = -DX_FACE
  41. X/* */#       COMPFACE = -lcompface
  42. X/* */#
  43. X/* */# Uncomment XPM if you have the Xpm version 3 library and want color icons
  44. X/* */#
  45. X/* */#            XPM = -DXPM
  46. X/* */#         LIBXPM = -lXpm
  47. X/* */#
  48. X/* */# Uncomment LPT if you require att environment support for pseudo ports.
  49. X/* */#
  50. X/* */#            LPT = -lpt
  51. X/* */#
  52. X/* */# Uncomment REGEXP if your system supplies the regexp.h include file.
  53. X/* */# Otherwise, xmail will use the regex procedures re_comp and re_exec.
  54. X/* */#
  55. X/* */#   REGEXP = -DUSE_REGEXP
  56. X/* */#
  57. X/* */# Define MAILBOX_DIRECTORY if your mail spool is located in other than the
  58. X/* */# default /usr/spool/mail.  (If not specified, the default will be used.)
  59. X/* */#
  60. X/* */#    MAILBOX_DIR = -DMAILBOX_DIRECTORY=\"/usr/spool/mail\"
  61. X/* */#
  62. X/* */# Define DEFAULT_VISUAL if your copy of vi lies in some place other than
  63. X/* */# /usr/ucb.  (If not specified, /usr/ucb/vi will be the default editor.)
  64. X/* */#
  65. X/* */#     DEF_VISUAL = -DDEFAULT_VISUAL=\"/usr/ucb/vi\"
  66. X/* */#
  67. X/* */# Define DEFAULT_MAILER if your mail program is not the standard
  68. X/* */# /usr/ucb/Mail.  CAUTION - Operation is NOT guaranteed with other mailers.
  69. X/* */#
  70. X/* */#     DEF_MAILER = -DDEFAULT_MAILER=\"/usr/ucb/Mail\"
  71. X/* */#
  72. X/* */# Define SIGACTION if your system utilizes the sigaction() call rather
  73. X/* */# than the sigvec() call (true on most SYSV and POSIX compilant systems)
  74. X/* */# You may also need to add the following BSD define (true on SGI systems)
  75. X/* */#
  76. X/* */#         SIGDEF = -D_BSD_SIGNALS
  77. X/* */#
  78. X/* */#         SIGACT = -DSIGACTION
  79. X/* */#
  80. X
  81. X  XMAIL_DEFINES = $(MAILBOX_DIR) $(DEF_VISUAL) $(DEF_MAILER) $(SIGACT) $(SIGDEF)
  82. X        DEFINES = $(USE_DIRENT) $(X_FACE) $(XPM) $(REGEXP) $(XMAIL_DEFINES)
  83. X
  84. X        DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  85. XLOCAL_LIBRARIES = $(LIBXPM) $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) $(COMPFACE) $(LPT)
  86. X
  87. X           SRCS = Mailwatch.c HelpText.c actions.c callMail.c callbacks.c \
  88. X          confirm.c directory.c environs.c handler.c mail.c parser.c \
  89. X          utils.c windows.c xmail.c
  90. X
  91. X           OBJS = Mailwatch.o HelpText.o actions.o callMail.o callbacks.o \
  92. X          confirm.o directory.o environs.o handler.o mail.o parser.o \
  93. X          utils.o windows.o xmail.o
  94. X
  95. XComplexProgramTarget(xmail)
  96. X
  97. XInstallAppDefaults(XMail)
  98. X
  99. END_OF_FILE
  100.   if test 2662 -ne `wc -c <'Imakefile'`; then
  101.     echo shar: \"'Imakefile'\" unpacked with wrong size!
  102.   fi
  103.   # end of 'Imakefile'
  104. fi
  105. if test -f 'xmail.man' -a "${1}" != "-c" ; then 
  106.   echo shar: Will not clobber existing file \"'xmail.man'\"
  107. else
  108.   echo shar: Extracting \"'xmail.man'\" \(53609 characters\)
  109.   sed "s/^X//" >'xmail.man' <<'END_OF_FILE'
  110. X.\"
  111. X.\" @(#)xmail.l 1.5 92/02/20 NSC;
  112. X.\"
  113. X.\" Copyright 1990,1991,1992 by National Semiconductor Corporation.
  114. X.\"
  115. X.\" Permission to use, copy, modify, and distribute this software and its
  116. X.\" documentation for any purpose is hereby granted without fee, provided that
  117. X.\" the above copyright notice appear in all copies and that both that
  118. X.\" copyright notice and this permission notice appear in supporting
  119. X.\" documentation, and that the name of National Semiconductor Corporation not
  120. X.\" be used in advertising or publicity pertaining to distribution of the
  121. X.\" software without specific, written prior permission.  National Semiconductor
  122. X.\" Corporation makes no representations about the suitability of this software
  123. X.\" for any purpose. It is provided "as is" without express or implied warranty.
  124. X.\"
  125. X.\" NATIONAL SEMICONDUCTOR CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO
  126. X.\" THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  127. X.\" FITNESS, IN NO EVENT SHALL NATIONAL SEMICONDUCTOR CORPORATION BE LIABLE FOR
  128. X.\" ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
  129. X.\" RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
  130. X.\" CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  131. X.\" CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  132. X.\"
  133. X.\" Author:  Michael C. Wagnitz - National Semiconductor Corporation
  134. X.\"
  135. X.ds nS National Semiconductor Corporation
  136. X.ds xM xmail
  137. X.if n .ds Q \&"
  138. X.if n .ds U \&"
  139. X.if t .ds Q ``
  140. X.if t .ds U ''
  141. X..
  142. X.\"
  143. X.TH XMAIL 1 "February 20, 1992" "NSC"
  144. X.SH NAME
  145. Xxmail \- X11 visual interface to the mail program
  146. X.SH SYNOPSIS
  147. X.B \*(xM
  148. X.RB "[\|" \-\fItoolkitoptions\fP "\|]"
  149. X.RB "[\|" \-\fIxmailoptions\fP "\|]"
  150. X.SH DESCRIPTION
  151. X.B \*(xM
  152. Xis an X11 window based visual interface to the standard Berkeley
  153. X.B Mail
  154. Xprogram.  \*(xM offers functionality similar to the Sunview mailtool, but with
  155. Xsome differences.
  156. X
  157. XUsers may use mouse button actions in the (\fItop\fP) index window to select a
  158. Xmessage for
  159. Xfurther processing (\fIby pressing the left mouse button\fP), or automatically
  160. Xread the selected message (\fIby pressing the right mouse button\fP).
  161. X
  162. XFolder specification is aided by a selection menu which can walk down through
  163. Xthe user's folder directory hierarchy (\fIby pressing the right mouse button in
  164. Xthe \fBFolder\fP command button window\fR). 
  165. X
  166. XA short description of each command button's function is presented in the
  167. Xstatus window whenever the mouse cursor enters any of the xmail command button
  168. Xwindows.  Additional help information is presented for any command button or
  169. Xother part of xmail by pressing the middle mouse button while the mouse cursor
  170. Xis within the window or
  171. Xcommand button. In the case of windows which normally accept the pasting
  172. Xof text via the middle mouse button, help is available while also holding
  173. Xdown either \fIShift\fR key.  Those special case windows are so indicated by the
  174. Xmessage displayed in the status window while the mouse cursor is within those
  175. Xparticular windows.
  176. X
  177. XMessage composition and modification are provided by the user's preferred
  178. Xeditor (\fB/usr/ucb/vi \fIby default\fR).  Editor preference may be specified
  179. Xusing either the user's process or Mail environment variable
  180. X.SB VISUAL, 
  181. Xor the xmail command line or application resource \fBeditorCommand\fR.
  182. X
  183. XSupport can also be provided for displaying the content of an X-Face mail
  184. Xheader, should such a header string be present in the received message,
  185. Xand for adding your own X-Face header to outgoing mail, if available.
  186. X
  187. XAlmost all of the xmail functionality depends upon the existence and
  188. Xproper installation of the XMail default resources file (\fItypically
  189. Xin the directory \fB/usr/lib/X11/app-defaults\fR).  Functionality may be
  190. Xmodified to some extent by the user's specification of some or all of those
  191. Xresources.
  192. X
  193. X.SH OPTIONS
  194. XAn unrecognized or illegal command line option specification will cause
  195. Xdisplay of a usage statement and termination of \*(xM.
  196. X.TP
  197. X\fB\-toolkitoptions\fR
  198. XAll standard X11 toolkit options are accepted on the command line.
  199. X.TP
  200. X\fB\-xmailoptions\fR
  201. X\*(xM also accepts the following additional options:
  202. X.RS
  203. X.TP
  204. X\fB\-buttonfont \fIfontname\fR
  205. Xspecifies the font to use when creating command buttons.  This option overrides
  206. Xthe \*(xM resource specification \*Q\fB*buttonFont: \fIfontname\fR\*U.
  207. X.TP
  208. X\fB\-e\fR
  209. XSets the \*(xM resource specification \*Q\fB*expert: \fITrue\fR\*U.  This
  210. Xresource determines whether \*Q\fBconfirm\fR\*U popups will be presented
  211. Xwhen committing changes to a folder or deleting a new message composition.
  212. XBy default the resource is False, which means confirm popups will be used.
  213. XThis resource may be toggled while running xmail, using the \fIset\fP menu
  214. Xprovided with the \*Qpreserve\*U command button.  See the section on
  215. X.SB CHANGING VARIABLES
  216. Xfurther down in this document, or the on-line help information for the
  217. Xpreserve button, for additional details.
  218. X.TP
  219. X\fB\-editorCommand \fI<quoted command string>\fR
  220. XSpecifies the editor resource that \*(xM should use when editing a message
  221. Xcomposition.  The quoted command must be an \fIsprintf\fR\-able format string
  222. Xcontaining two string declarations.  The first of these declarations will be
  223. Xreplaced with the name of the display connection for the xmail process, to
  224. Xallow the edit window to appear on the correct display screen.  The second
  225. Xdeclaration will be replaced with the name of the file to be edited.
  226. XIf \*(xM cannot locate the two separate string declarations in the command,
  227. Xthe command will be rejected and processing will default to the older
  228. X.SM VISUAL
  229. Xmethodology.  See the additional description of this feature in the
  230. X.SB SENDING MESSAGES
  231. Xsection of this document.
  232. X.TP
  233. X\fB\-f\ \fI[+]foldername\fR
  234. Xtells Mail to start by processing the specified folder.
  235. XThis is actually a Mail program option, passed to it during startup.
  236. XUnlike the regular Mail program, there is \fIno default\fP file for this option,
  237. Xand a foldername \fBmust\fP be included in the specification.  The leading
  238. X\fIplus\fP sign identifies the folder file as existing within the folder
  239. Xdirectory and is a shorthand notation for the full folder directory path name.
  240. XThis feature can also be specified as an \*(xM resource
  241. Xusing the specification \*Q\fB*MFileName: \fI[+]foldername\fR\*U.
  242. X.TP
  243. X\fB\-fn\ \fIfontname\fR
  244. X\- or \-
  245. X.TP
  246. X\fB\-font\ \fIfontname\fR
  247. Xtells \*(xM to use the indicated font for \fBall\fR windows and buttons.
  248. XDifferent fonts can be specified for buttons, text and help, if desired, using
  249. Xthe other appropriate designations.
  250. XThis feature can also be specified as an \*(xM resource
  251. Xusing the specification \*Q\fB*Font: \fIfontname\fR\*U.
  252. X.TP
  253. X\fB\-h\fR
  254. Xtells \*(xM to include the host name in the icon window when displaying
  255. Xthe icon.  The option can also be specified as an \*(xM resource
  256. Xusing the specification \*Q\fB*icon*useHost: \fITrue\fR\*U.
  257. X.TP
  258. X\fB\-helpfont \fIfontname\fR
  259. Xspecifies the font to use when displaying help text.  This option overrides
  260. Xthe \*(xM resource specification \*Q\fB*helpFont: \fIfontname\fR\*U.
  261. X.TP
  262. X\fB-iconGeometry \fI[+-]XOff[+-]YOff\fR
  263. Xprovides a command line option for specifying the preferred geometry
  264. Xlocation for the \*(xM icon window.  This overrides any \*(xM resource
  265. Xspecification for \*Q\fB*iconGeometry: \fI[+-]XOff[+-]YOff\fR\*U.
  266. X.TP
  267. X\fB\-ls\fR
  268. Xtells \*(xM to \fBnot\fR show the last message of a folder by default.  This
  269. Xoption is equivalent to setting the \*(xM resource \fB*Show_Last\fR to
  270. X\fIFalse\fR.  If disabled, \*(xM (\fIactually Mail\fP) will display the default
  271. X(\fIusually first\fP) message of a folder when switching to or re-reading a
  272. Xfolder.
  273. XBy default, \*(xM attempts to read the latest (or last) message of a folder.
  274. X.TP
  275. X\fB\-n\fR
  276. Xtells Mail to \fBnot\fR initialize from the system default Mail.rc file.
  277. XThis option is also a Mail program option, passed on to it during
  278. Xstartup from \*(xM.
  279. XThe option can also be specified as an \*(xM resource
  280. Xusing the specification \*Q\fB*mailopt_n: \fITrue\fR\*U.
  281. X.TP
  282. X\fB\-nb\fR
  283. Xtells \*(xM to \fBnot\fR ring the terminal bell when issuing status and
  284. Xerror messages.  This is equivalent to setting the \*(xM resource
  285. Xspecification \*Q\fB*bellRing: \fIFalse\fR\*U.  The default will be to
  286. Xring the bell for error and appropriate status messages.
  287. X.TP
  288. X\fB\-noinfo\fR
  289. Xtells \*(xM to \fBnot\fR display the info messages in the status window
  290. Xnormally generated whenever the mouse cursor is moved into or out of any \*(xM
  291. Xcommand button window.  By default, text would be displayed to provide specific
  292. Xinformation about the particular command button currently under the mouse
  293. Xcursor.  This option allows you to disable this feature, if desired.
  294. XThis is equivalent to setting the \*(xM resource specification
  295. X\*Q\fB*show_Info: \fIFalse\fR\*U.
  296. X.TP
  297. X\fB\-nx\fR
  298. Xtells \*(xM to \fBnot\fR include any X-Face header strings when displaying the
  299. Xtext of an incoming message.  This is equivalent to setting the \*(xM resource
  300. Xspecification \*Q\fB*No_X_Hdr: \fITrue\fR\*U.  The default will be to include
  301. Xall text of the incoming message, including any X-Face header strings.  Either
  302. Xsetting will not deter the display of the X-Face bitmap if it exists in the
  303. Xmessage headers (\fIprovided the X_FACE option was specified during compilation\fP).
  304. X.TP
  305. X\fB\-rv\fR
  306. Xtells \*(xM to reverse the foreground and background colors of the icon
  307. Xwindow when displaying the icon.  The option can also be specified as an
  308. X\*(xM resource using the specification \*Q\fB*icon*reverseVideo: \fITrue\fR\*U.
  309. XThis option or resource has no effect if the program is utilizing the
  310. X.SB XPM
  311. Xfull-colored pixmap icons.
  312. X.TP
  313. X\fB\-textfont \fIfontname\fR
  314. Xspecifies the font to use when writing information in text windows.  This
  315. Xoption overrides
  316. Xthe \*(xM resource specification \*Q\fB*textFont: \fIfontname\fR\*U.
  317. X.TP
  318. X\fB\-u\fR
  319. Xtells \*(xM to include the user's login name in the icon window when displaying
  320. Xthe icon.  The option can also be specified as an \*(xM resource
  321. Xusing the specification \*Q\fB*icon*useName: \fITrue\fR\*U.
  322. X.TP
  323. X\fB\-U\fR
  324. Xtells Mail to convert internet style addresses into uucp format.
  325. XThis option also is a Mail option, passed on to it during startup.
  326. XThe option can also be specified as an \*(xM resource
  327. Xusing the specification \*Q\fB*mailopt_U: \fITrue\fR\*U.
  328. X.RE
  329. X.SH USAGE
  330. XThe \*(xM shell appearance is similar in layout to mailtool.
  331. XA \fItitle bar\fR decorates the top of the shell, and carries the name and
  332. Xversion of the program, as well as information about the current mail folder
  333. Xand its content.
  334. X
  335. XImmediately below the title bar, an \fIindex window\fR displays header
  336. Xinformation for the current mail folder.
  337. XMessage selection is indicated by a \fBgreater-than \*Q>\*U\fR symbol located
  338. Xat the beginning of the header line for the particular message.
  339. XNew and unread messages are indicated by \*Q\fBN\fR\*U and \*Q\fBU\fR\*U
  340. Xcharacters respectively, preceding the message number.
  341. XDeleted messages not yet removed from the index list have the letter
  342. X\*Q\fBD\fR\*U preceding the message number.
  343. XSaved messages are now marked with the letter \*Q\fBS\fR\*U, to denote the fact
  344. Xthat such messages in your system folder would normally disappear from that
  345. Xfolder
  346. Xwhen you finally commit the changes.  (\fIAlthough messages in other folders
  347. Xthat are saved will also be marked with an \*Q\fBS\fR\*U, they do not by
  348. Xdefault get removed from that
  349. Xfolder when the changes are committed.  Such messages must be explicitly
  350. Xdeleted if so desired.\fR)
  351. XMessages that are marked for preservation in the system folder are now marked
  352. Xwith the letter \*Q\fBP\fR\*U until the folder changes are committed.
  353. XKeyboard keys can be used to scroll the index window in much the fashion of
  354. Xtext display programs such as \fBmore\fP or \fBless\fP,
  355. Xin addition to the more traditional mouse on scrollbar mechanism.
  356. X
  357. XJust below the index
  358. Xwindow, a \fIstatus\fR window displays information, status, and error messages.
  359. XAs the mouse cursor is moved between the various command button windows in
  360. Xthe xmail
  361. Xprogram, a short description of the particular button's function(s) is
  362. Xdisplayed
  363. Xin the status window.  Moving the mouse cursor out of that command button's
  364. Xwindow restores the default
  365. Xinformation about obtaining help on any part of xmail.
  366. XError and status messages are also displayed in this same status window.
  367. XThe terminal bell is usually rung to draw attention to these messages.
  368. XThe status bell can be disabled using a command line option or resource
  369. Xspecification.
  370. X
  371. XImmediately below the status window and attached to it, the xmail
  372. Xshell displays a panel with a selection of commonly used Mail commands.
  373. XPressing and then releasing (\fIalso known as \*Q\fBclicking\fP\*U\fR)
  374. Xthe \fBleft\fR mouse button while the mouse cursor is within a
  375. Xparticular command button box invokes that Mail command.
  376. X
  377. XA grip at the top right corner of the command panel permits the user to slide
  378. Xthe status window/command panel combination up and down in the \*(xM shell, to
  379. Xaccommodate those times when the user is reviewing a short list of longer than
  380. Xaverage messages, or a longer list of relatively short messages.
  381. X
  382. XEach button in the command panel also offers an expanded menu of choices related
  383. Xto that particular command.
  384. XPressing the \fBright\fR mouse button presents the user with the
  385. Xexpanded menu.  \fBDragging\fR the cursor over one of these selections
  386. X\fIwhile still holding down the right mouse button\fR causes the particular menu
  387. Xselection to highlight.  A description of the highlighted command's function is
  388. Xalso displayed in the status window.  \fBReleasing\fR the right mouse button
  389. Xwhile a selection is highlighted invokes that particular command.
  390. X
  391. XKeyboard accelerators for these actions are indicated by appropriate entries
  392. Xin the command menus.  Users may take advantage of these accelerators by
  393. Xholding down the Shift and/or Control key(s) prior to clicking the left mouse
  394. Xbutton on the desired command, in lieu of raising the command popup menu.
  395. X
  396. XMessages are displayed in the bottom text window of the \*(xM shell.
  397. XLike the index window above, scroll bars provide easy access to any portion of
  398. Xthe text.  Keyboard keys can also be used to scroll the text window.  If the
  399. Xdisplayed message contains an X-Face header string, the content of that string
  400. Xis displayed as a bitmap in the upper right-hand corner of the text window.
  401. X(\fIThis feature is a compile time option, and requires the existence of the
  402. X\fBcompface\fP library routines, which are not supplied with the xmail sources.
  403. XSee the section on \s-1X-FACE HEADERS\s+1 for details on acquiring
  404. Xthis library.\fR)
  405. X
  406. XIn addition, both the text window and index window have duplicate keyboard
  407. Xdefinitions to augment using the
  408. Xmouse on the command buttons for normal \*(xM command operation.  Like many of
  409. Xthe resources for xmail, these key bindings are now declared in the application
  410. Xresource file, to allow the user to modify them as desired.
  411. X
  412. XUpon completion of the editing phase of a send/reply operation, the user is
  413. Xpresented with a \fIcompletion\fR popup window which contains areas for
  414. Xspecifying the
  415. Xmessage header addressees, subject, and carbon and blind carbon copy
  416. Xrecipients.  This information can now also be modified directly within the
  417. Xmessage
  418. Xcomposition, by specifying the \fIeditheaders\fP Mail program option.  This
  419. Xoption is normally declared within the user's \fI\&.mailrc\fP file, but can be
  420. X\fItoggled\fP on and off using the special \fBSet\fP option menu provided with
  421. Xthe \fIpreserve\fP command button.  (\fISee the section on
  422. X.SB CHANGING VARIABLES
  423. X\fIor the on-line help
  424. Xinformation for the preserve button for additional details.\fR)  Also present
  425. Xin the
  426. Xcompletion popup are command buttons to add one of two forms of user signature,
  427. XRe-Edit the message composition, Cancel and save, Abort, or Deliver the
  428. Xmessage to the
  429. Xindicated recipients.  The pressing of these command buttons using the mouse
  430. Xmay also be simulated by using the keyboard \fBmeta\fP keys and the first
  431. Xletter of the particular command, with
  432. Xthe exception that the adding of autograph signatures is denoted by the use of
  433. Xeither the \*Q\fBS\fP\*U (\fIfor upper-case Autograph Signature\fP) or
  434. X\*Q\fBX\fP\*U
  435. X(\fIfor the lower-case version\fP) keys, since the \*Q\fBA\fP\*U key
  436. Xis used for effecting the \fBAbort\fP function.  When either the Cancel, Abort,
  437. Xor Deliver function is executed, the composition popup is automatically
  438. Xremoved from the display.
  439. X
  440. XA modified mailWatch widget (\fIala xwatch\fP) is used as the \*(xM icon window.
  441. XThe mailbox flag in the icon window will be raised and mail shown inside the
  442. Xbox, whenever new mail arrives while the application is in its iconic state.
  443. XIn the non-iconic state, the \fBNewmail\fR command button is highlighted
  444. Xto signal new mail arrival.  Clicking on the Newmail button will
  445. Xreset the flag and highlighting, and deliver the new mail to your display.
  446. X
  447. XPressing the \fBmiddle\fR mouse button while the mouse cursor is within any
  448. Xwindow or command button of
  449. Xthe \*(xM shell (\fIin some cases while also holding down either \fBShift\fP
  450. Xkey\fR)
  451. Xwill cause help
  452. Xinformation relating to that window (\fIor button\fP) to be displayed in
  453. Xthe (\fIbottom\fP) text window.
  454. XReleasing the mouse button will cause that help information to be removed.
  455. XPressing the \*Q\fB?\fR\*U key in the text window will cause a second page
  456. Xof help information, relating to the default bindings for the keyboard keys,
  457. Xto appear.
  458. XPressing the \*Q\fBLineFeed\fR\*U or Control_J key will cause that second help
  459. Xwindow to be removed.
  460. X
  461. XDuring command execution, the cursor is changed to a watch face
  462. Xto indicate that \*(xM is busy.  Upon completion of the activity, the
  463. Xcursor is restored to its previous value.
  464. X.\"
  465. X.SH "ENVIRONMENT"
  466. XSeveral process environment variables are of a special interest to \*(xM.
  467. X.sp
  468. X.RS
  469. X.TP 3
  470. X.SB DEAD
  471. XNormally specified in the user's \&.mailrc file,
  472. Xthis variable indicates the name of the file to use when storing dead or
  473. Xcanceled letters.
  474. XIf unspecified, it defaults to \*Qdead.letter\*U in the user's HOME directory.
  475. X.TP 3
  476. X.SB HOME
  477. XDefines the path to the user's home directory, and is used in determining
  478. Xthe complete path for mail folder and dead letter files.  If unspecified,
  479. Xthis information will be extracted from the user's entry in the password file.
  480. X.TP 3
  481. X.SB MAILRC
  482. XIf defined, denotes the full name of the user preferred Mail program startup
  483. Xfile, used to define various mail state variables.  By default, Mail (\fIand
  484. X\*(xM\fP) will look for the file \fI\&.mailrc\fP, in the user's home directory.
  485. X.TP 3
  486. X.SB MBOX
  487. XNormally specified in the user's \&.mailrc file, this variable denotes the
  488. Xpreferred file to use when storing letters that are
  489. Xno longer to be preserved in the system mail folder, and letters copied or
  490. Xsaved to no other specific file.
  491. X.TP 3
  492. X.SB VISUAL
  493. XNormally specified in the user's \&.mailrc file,
  494. Xthis variable denotes the preferred editor to use when composing messages in
  495. X\*(xM.  This information can be overridden by specifying a value for the
  496. X\fIeditorCommand\fP command line or resource declaration.
  497. X.TP 3
  498. X.SB XMAILER
  499. XIf defined, points to the particular executable to be used as the Mail
  500. Xprogram.  Normally, \*(xM establishes connections with Mail in the default
  501. Xpath of the process (\fIassumed to be at least \*Q/bin /usr/bin /usr/ucb\*U\fP).
  502. XIf need be, this
  503. Xenvironment variable can be used to provide a specific path to the Mail or
  504. Xother named
  505. Xprogram.  Note: \*(xM may not work correctly with any mail program
  506. Xother than the intended Berkeley Mail program.
  507. X.RE
  508. X.\"
  509. X.SH FOLDERS
  510. XIf the \fBright\fR mouse button is pressed while the cursor is within the
  511. Xcommand panel \fBFolder\fR button, \*(xM will display a menu of available
  512. Xmail folders.  (\fIIf the user has not set their mail \fRfolders\fP variable,
  513. Xa message so indicating will be displayed instead.\fR)
  514. XDragging the cursor while still holding the right mouse button down will allow
  515. Xthe user to highlight a particular folder name.  Releasing the right button
  516. Xwhile a name is highlighted causes a copy of that name to be written in
  517. Xthe command panel \fIFile\fP window.  The menu list is then unmapped.
  518. XReleasing the right button while outside
  519. Xany folder selection causes the folder menu list to disappear.
  520. X
  521. XFolders which are actually directories (\fIthat might possibly contain
  522. Xadditional folder files\fP)
  523. Xare displayed with a trailing slash (/) character.  Clicking the \fBleft\fR
  524. Xmouse
  525. Xbutton within a directory folder while still holding down the right
  526. Xmouse button (\fIalso known as \*Q\fBexpanding\fR\*U) causes \*(xM to expand
  527. Xthat directory and display (\fIon a new menu level\fP) any files found there.
  528. XDragging the cursor over
  529. Xone of these selections and releasing the right mouse button copies the
  530. Xcomplete folder path name to the file window.  This nesting of folder names
  531. Xmay be repeated as often as there are legitimate folder directories.  Clicking
  532. Xthe left mouse button on an empty folder directory rings the terminal bell.
  533. XDragging the cursor beyond one of these nested menu levels causes that menu to
  534. Xdisappear, without making a selection.  Re-clicking the left mouse button on
  535. Xthe directory folder redisplays the nested menu.
  536. X
  537. XBecause of the methodology utilized in determining the folder list menu widget
  538. Xhierarchy, certain restrictions must apply when declaring folder directories.
  539. XNo folder directory name may contain an embedded period (.) or asterisk (*),
  540. Xsince these
  541. Xitems are utilized by the resource manager (\fIand toolkit function
  542. XXtNameToWidget\fP) to indicate the potential widget hierarchy.  If a folder
  543. Xdirectory name
  544. Xexists at any level with one or more of these characters embedded in its name,
  545. Xattempts to access that folder directory will result in a beep and no further
  546. Xexpansion.
  547. X
  548. XThe first request for the folder menu extracts (\fIfrom Mail or the system\fP)
  549. Xthe
  550. Xnecessary information to create the menu.  Subsequent requests simply redisplay
  551. Xthat menu.  To force \*(xM to recalculate the folder menu content, use the
  552. X\fBNewmail\fR button option which causes \*(xM to destroy all current folder
  553. Xmenus.  This mechanism provides access to folders created since the startup
  554. Xof \*(xM.
  555. XPressing the right mouse button
  556. Xon the Newmail command box will present the Newmail command menu, which has a
  557. Xchoice to drop the current folder list.  This same option is also available
  558. Xusing the designated accelerator key and left mouse button on the Newmail
  559. Xcommand button box.
  560. X
  561. XAs message are stored or otherwise delivered to one of the folder files, the
  562. X\fIaccessed\fP and \fImodified\fP time stamps for that folder file are updated
  563. Xby the system.  \*(xM uses that information to indicate (\fIvia the addition of
  564. Xa hatching pattern to the background of a particular folder button label\fP)
  565. Xwhen a
  566. Xfolder has been modified since the last time it was accessed.  This feature
  567. Xpresents a method of indicating when new messages exists in a particular folder
  568. Xfile.  Reading the particular folder automatically resets this indicator,
  569. Xalthough
  570. Xin some instances remotely accessed folder files (\fIsuch as those on an NFS
  571. Xmounted file system\fP) may not properly or consistently update this time
  572. Xinformation.
  573. X.\"
  574. X.SH FONTS
  575. XSeparate fonts may now be specified for mail message (\fIand index\fP) text,
  576. Xhelp
  577. Xmessage text, and for the command buttons.  (\fISee the options descriptions
  578. Xfor a list of the command line options to use.\fP)  You may also declare all
  579. Xfonts using the resource declaration \fB*Font: <fontname>\fP, or the command
  580. Xline option \fB-fn\fP <\fIfontname\fP> or \fB-font\fP <\fIfontname\fP>, which
  581. Xcause all three fonts specifications to utilize the same font.
  582. XPrevious restrictions against the use of proportional width fonts have now
  583. Xbeen hopefully resolved.  Although the result of choosing such a font may still
  584. Xproduce less than optimal results, the window shell should be of a reasonable
  585. Xsize, and the support menu entries should now be readable.  Of course, no
  586. Xamount of coding can overcome inappropriate font selections.
  587. X.\"
  588. X.SH ICONIFICATION
  589. X\*(xM establishes access to a dummy mail folder whenever the application is
  590. Xin the iconified state.
  591. XThis is done to prevent potential corruption of a real mail folder, should the
  592. Xuser choose to read their mail from another process while \*(xM is running.
  593. XBecause of this action, iconifying \*(xM \fBalways\fR
  594. X.SB COMMITS
  595. Xchanges made to the current folder, prior to switching to the dummy folder.  No
  596. Xconfirmation for committing folder changes will occur when iconifying \*(xM.
  597. X
  598. XThe original folder being read by the user will be 
  599. Xautomatically reinstated as current whenever \*(xM is again deiconified.
  600. XThis action will flush any deleted messages from the index headers and renumber
  601. Xthe remaining messages in the folder.  The last message in the folder will then
  602. Xbecome the current message displayed (\fIunless \*(xM was started with the
  603. X\fB*Show_Last\fP resource option disabled, in which case the first message
  604. Xwould be made current\fR).
  605. X
  606. XIf the \*Qcurrent\*U folder was the user's system folder, any new mail
  607. Xreceived since the iconification would be automatically included by the
  608. Xre-access.  If some other folder were current (\fIor no folder, due to initial
  609. Xconditions of no mail for the user\fR), deiconification would not cause the
  610. Xreading of any new mail.  Under those circumstances the user must press the
  611. X\fBNewmail\fR command button to change to the system mail folder (\fIand read
  612. Xthe new mail\fR).
  613. X
  614. XThe icon window also supports an auxiliary identification mechanism,
  615. Xfor users that might have more than one account, possibly on more than
  616. Xone machine, and that wish to be able to identify otherwise duplicate \*(xM
  617. Xicons.  Pressing the \*Q\fBh\fR\*U key while the mouse cursor is within the icon
  618. Xwindow will cause the icon to be tagged with the machine's hostname.
  619. XPressing the \*Q\fBu\fR\*U key will cause the user's login name to be displayed.
  620. XPressing the \*Q\fBspace\fR\*U bar will clear the icon window of either name.
  621. XChanging the tag space content of the icon will also change the title of the
  622. Xapplication for window managers.  This allows the user to distinguish between
  623. Xseveral xmail invocations from the window (or icon) selection menus of the
  624. Xvarious window managers.
  625. XThe hostname or login name addition may also be pre-selected using either
  626. Xcommand line options or resource declarations if desired.
  627. X
  628. XIconification is typically promoted by user definable button events which are
  629. Xparticular to the window manager in use at the time.  Pressing the \*(nS logo
  630. Xdisplayed at the left of the title bar will also cause xmail to issue a window
  631. Xmanager request for iconification.  ICCCM compliant window managers should
  632. Xhonor that request by iconifying the xmail application.
  633. X
  634. XPressing the \*Q\fBq\fR\*U key while the mouse cursor is within the \*(xM icon
  635. Xwindow will cause \*(xM to terminate.  \*(xM also honors the
  636. X.SB ICCCM
  637. XWindow Manager protocol request
  638. X.SB WM_DELETE_WINDOW
  639. Xto terminate the \*(xM application.
  640. X.\"
  641. X.SH "KEYBOARD ACCELERATORS"
  642. XThe index and text windows support two methods of scrolling displayable
  643. Xtext.  The use of the mouse buttons in the scrollbar region is standard.
  644. XIn addition, keyboard keys have been defined in keeping with conventions
  645. Xused in text display programs such as \*Qmore\*U and \*Qless\*U.
  646. X
  647. XThese keyboard accelerators will \fBonly\fP be available if the resources are
  648. Xdeclared either in the application defaults file (\fIwhich must be properly
  649. Xinstalled\fP) or the
  650. Xuser adds the necessary declarations to their local default resources.
  651. X
  652. XThe following table lists the key definitions and their respective actions.
  653. XThe abbreviation \*QCtrl\*U means to press down and hold the \fBControl\fR
  654. Xkey while pressing the specified letter key.  \*QMeta\*U likewise refers
  655. Xto the \fBmeta\fR keys (\fIlabeled \*QLeft\*U and \*QRight\*U or with a
  656. Xdiamond symbol on Sun type-4 keyboards\fR).
  657. X.sp
  658. X.RS
  659. X.nf
  660. XKey Name         Action Taken
  661. X--------        -----------------------------
  662. X Ctrl V         move to the next page
  663. X space          move to the next page
  664. X Meta V         move to the previous page
  665. X   b            move to the previous page
  666. X Ctrl Z         scroll one line up
  667. X Return         scroll one line up
  668. X   j            scroll one line up
  669. X Meta Z         scroll one line down
  670. X   k            scroll one line down
  671. X   -            scroll one line down
  672. X   \'            move to the beginning of file
  673. X Meta <         move to the beginning of file
  674. X Meta >         move to the end of file
  675. XShift G         move to the end of file
  676. X.fi
  677. X.RE
  678. X.sp
  679. X.LP
  680. XIn addition to the scroll key definitions, both windows also support
  681. Xkeyboard accelerators for most of the command buttons.  Where possible,
  682. Xthese keyboard keys replicate the actual commands that would be typed
  683. Xif the user were running the native mail program directly.  Thus, to begin
  684. Xsending a mail message to some recipient, the user could press the
  685. X\*Q\fBm\fR\*U key, and to delete a current message, the user could press the
  686. X\*Q\fBd\fR\*U key.
  687. XCertain exceptions and additions have been made, in order to avoid conflicts
  688. Xwithin the \*(xM program.
  689. X.sp
  690. X.RS
  691. X.nf
  692. XKey Name         Command Action Taken
  693. X--------        -----------------------------
  694. XShift A         reply to all, include the current message
  695. XShift C         copy the message to the author's name
  696. XShift F         forward the current mail message
  697. XShift M         reply to a mail message
  698. XShift N         bring new mail into your system folder
  699. XShift P         send the current message to the printer
  700. XShift R         include the current message in a reply
  701. XShift S         save the message to the author's name
  702. X   a            reply to all recipients of a message
  703. X   c            copy the message to the indicated folder
  704. X   d            delete the current message
  705. X   f            read the full header of the message
  706. X   i            incorporate new mail without commit
  707. X   m            mail (compose) a new mail message
  708. X   n            read the next mail message
  709. X   p            read the previous mail message
  710. X   q            quit xmail, committing any changes
  711. X   r            read the current mail message
  712. X   s            save current message in specified folder
  713. X   u            undelete the most recently deleted message
  714. X   w            writes the message to the indicated file
  715. X   x            exit xmail, without committing changes
  716. X   ?            displays help for these key definitions
  717. X <LF>           removes help for these key definitions
  718. X.fi
  719. X.RE
  720. X.\"
  721. X.SH RESOURCES
  722. XMost of the options and features of this version of \*(xM depend heavily on
  723. Xthe installation of the application default resources file in the proper
  724. Xlocation (\fItypically /usr/lib/X11/app-defaults/XMail\fP).  If this file is
  725. Xnot installed, xmail will still run, but only in a severely restricted manner,
  726. Xand with almost none of the features mentioned in this man page.
  727. XThe resource declarations were moved from the program sources to the defaults
  728. Xfile to allow for a greater degree of flexibility in the appearance and actions
  729. Xof \*(xM at the discretion of the user.
  730. X
  731. X\*(xM recognizes resource definitions for each of its component windows and
  732. Xcommand buttons.  Wherever possible, button resources have been named for the
  733. Xlabel (or first word in the label) of the command button.  (\fIThe exception
  734. Xis the preserve \*Qset\*U menu, whose resources are identified by the second
  735. Xword in each label.\fR)
  736. XThus :
  737. X.RS
  738. X.TP 3
  739. X\fB*read\fR
  740. Xspecifies resources for the \fIread\fR command button
  741. X.TP 3
  742. X\fB*save\fR
  743. Xspecifies resources for the \fIsave\fR command button
  744. X.TP 3
  745. X\fB*autoprint\fR
  746. Xspecifies resources for the \fIset autoprint\fR command button, and
  747. X.TP 3
  748. X\fB*noautoprint\fR
  749. Xspecifies resources for the \fIset noautoprint\fR command button.
  750. X.RE
  751. X.LP
  752. XColor may be added (on a color display device) to enhance
  753. Xthe appearance of \*(xM.  Example resources in the application defaults file
  754. Xhave been left in a commented condition.  They may be implemented by
  755. Xuncommenting the appropriate lines in the defaults file, or
  756. Xoverridden by designations in the user's \&.Xdefaults file, or (\fIin some
  757. Xcases\fR) by command line options.
  758. XResources specified in the user's \&.Xdefaults file should be preceded with
  759. Xeither the \fB\*(xM\fR application or \fBXMail\fR Class resource identifier.
  760. X
  761. XIn addition to those resources named for a particular \*(xM command button,
  762. Xthe following additional resource names are recognized:
  763. X.sp
  764. X.RS
  765. X.TP 3
  766. X\fB*buttonFont: \fI<fontname>\fR
  767. Xdenotes a preferred font to use when creating the command buttons.  The width
  768. Xof the \*(xM shell, and thus its general appearance is controlled by the
  769. Xfont specified for buttons.  If different fonts are specified for buttons and
  770. Xtext, and the font for text is of a larger point size than that specified for
  771. Xbuttons, then text in the index and text windows will most likely wrap during
  772. Xdisplay.
  773. X.TP 3
  774. X\fB*Bcc\fR
  775. Xcontrols resources for the \fIBcc:\fR entry window
  776. X.TP 3
  777. X\fB*bellRing: \fI<boolean>\fR
  778. XNormally true, this boolean enables ringing of the terminal bell during
  779. Xstatus and error message display.
  780. X.TP 3
  781. X\fB*Cc\fR
  782. Xcontrols resources for the \fICc:\fR entry window
  783. X.TP 3
  784. X\fB*commandPanel\fR
  785. Xcontrols resources for the \fIcommand panel\fR
  786. X.TP 3
  787. X\fB*customHeader\fR
  788. XThis resource can be used to specify additional mail headers to be included
  789. Xin the headers of all outgoing messages created by the user.  The information
  790. Xcontained in this resource
  791. X.SB MUST
  792. Xconform to the format of mail headers, namely a keyword, such as
  793. X\fBOrganization:\fP (\fIwhich must include the trailing colon character\fP),
  794. Xfollowed by a space character, and the text of the information.  An example
  795. Xcustom header resource declaration would be:
  796. X.RS
  797. X.nf
  798. X
  799. Xxmail*customHeader: Organization: Your_Company_Name
  800. X.fi
  801. X.RE
  802. X.TP 3
  803. X\fB*editorCommand: \fI<quoted command string>\fR
  804. XSpecifies the editor resource that \*(xM should use when editing a message
  805. Xcomposition.  The quoted command must be an \fIsprintf\fR\-able format
  806. Xcontaining two string declarations.  The first of these declarations will be
  807. Xreplaced with the name of the display connection for the xmail process, to
  808. Xallow the edit window to appear on the correct display screen.  The second
  809. Xdeclaration will be replaced with the name of the file to be edited.
  810. XIf \*(xM cannot locate the two separate string declarations in the command,
  811. Xthe command will be rejected and processing will default to the older
  812. X.SM VISUAL
  813. Xmethodology.  See the section on
  814. X.SB SENDING MESSAGES
  815. Xfor additional details.
  816. X.TP 3
  817. X\fB*expert: \fI<boolean>\fR
  818. XThis boolean defines whether the \*(xM user requires confirmation of
  819. Xfolder commits or composed message deletions.  Whenever an action
  820. Xwould make a permanent un-recoverable change to the \*(xM environment, a
  821. Xpopup confirmation window will be presented for the user, to assure that
  822. Xthe action should take place.  These confirmations include changing a
  823. Xfolder when deletions have occurred, or deleting the text of a newly
  824. Xcomposed message instead of sending it.  Setting this resource to True
  825. Xeliminates those confirmation popups.
  826. X.TP 3
  827. X\fB*fileWindow\fR
  828. Xcontrols resources for the \fIfile window\fR within the command panel
  829. X.TP 3
  830. X\fB*Font\fR
  831. Xprovides font specifications for the three optionally separate fonts used in
  832. X\*(xM, buttonFont, helpFont, and textFont.
  833. X.TP 3
  834. X\fB\&.geometry: \fI[+-]XOff[+-]YOff\fR
  835. XThis resource defines the initial startup location for the \*(xM window.
  836. XNote the dot (.) just in front of the geometry resource name.
  837. XUsers are cautioned to \fBnot\fR specify this resource with the
  838. Xwildcard (*) designation, as this would force all popup windows (help, menus,
  839. Xand send/reply) to orient to that same starting location, rather than be
  840. Xanchored to the intended window.
  841. X.TP 3
  842. X\fB*helpFont: \fI<fontname>\fR
  843. Xdenotes a preferred font to use when displaying help information.
  844. X.TP 3
  845. X\fB*icon\fR
  846. Xcontrols resources for the \fIicon\fR window.  In addition to 
  847. Xspecifications of foreground and background colors, it is also possible
  848. Xto specify the following mailWatch widget resources :
  849. X.RS
  850. X.TP 3
  851. X\fB*icon*useHost: \fI<Boolean>\fR
  852. XIf set to true, tells \*(xM to include the mail host name in the icon window
  853. Xwhen displaying the icon.  This option is now alterable at runtime by keypress
  854. Xin the icon window.  \*Q\fBh\fR\*U sets the host name, \*Q\fBu\fR\*U sets the
  855. Xuser name, and \*Q\fBspace\fR\*U clears either entry.
  856. X.TP 3
  857. X\fB*icon*useName: \fI<Boolean>\fR
  858. XIf set to true, tells \*(xM to include the user login name in the icon window
  859. Xwhen displaying the icon.
  860. X.TP 3
  861. X\fB*icon*reverseVideo: \fI<boolean>\fR
  862. XIf set to true, reverses the foreground and background colors for the icon.
  863. XSetting this resource has no effect if the \*(xM program is utilizing the
  864. X.SB XPM
  865. Xfull-colored pixmap icons.
  866. X.TP 3
  867. X\fB*icon*update: \fI<seconds>\fR
  868. XSpecifies the update interval for checking new mail (default is 30 seconds).
  869. X.TP 3
  870. X\fB*icon*bell: \fI<boolean>\fR
  871. XIf set to False, prevents the mailWatch widget from ringing the bell when
  872. Xnew mail arrives.  See also the \&.mailrc variable setting for \fIbell\fR.
  873. X.RE
  874. X.TP 3
  875. X\fB*iconic: \fI<boolean>\fR
  876. XThis boolean defines whether the \*(xM application should be started in
  877. Xiconic state or not.  It is highly recommended that only the application
  878. Xresource identifier be used if specifying this resource.
  879. XUse of the \fBXMail\fR Class identifier would also constrain any
  880. Xmessage entry windows to be started iconic, which could prove confusing
  881. Xto the unaware user.
  882. X.TP 3
  883. X\fB*iconGeometry: \fI[+-]XOff[+-]YOff\fR
  884. XThis resource defines an initial location for the icon, whenever the
  885. X\*(xM application is iconified.
  886. X.TP 3
  887. X\fB*indexWindow\fR
  888. Xcontrols resources for the \fIindex\fR window
  889. X.TP 3
  890. X\fB*list\fR
  891. Xcontrols resources for the \fIfolder list\fR popup window
  892. X.TP 3
  893. X\fB*mailFlag:\fP \fI<string>\fP
  894. Xis the resource which defines the icon bitmap (\fIor
  895. X.SB XPM
  896. X\fIpixmap\fR) to use when
  897. Xindicating new mail.  If the XPixMap compile time option was not
  898. Xspecified, a string
  899. Xto bitmap resource converter is supplied which automatically converts
  900. Xthe specified string to a bitmap.  If the
  901. X.SM XPM
  902. Xoption \fBwas\fR declared at compile
  903. Xtime, an internal conversion of string to pixmap is performed.  If the
  904. Xstring does not define an
  905. X.SM XPM
  906. Xpixmap, an attempt is made to convert the
  907. Xstring to a bitmap.  Thus, with the
  908. X.SM XPM compile time option, either an
  909. X.SM XPM
  910. Xpixmap or
  911. Xa standard bitmap may be declared.  Without the
  912. X.SM XPM
  913. Xoption, only a standard
  914. Xbitmap file may be specified.  In either case, if the conversion should fail,
  915. Xthe program would default to an appropriate internal representation.
  916. X.TP 3
  917. X\fB*mailopt_n: \fI<boolean>\fR
  918. XNormally false, this resource
  919. Xduplicates the effect of the \fI-n\fR command line option.
  920. X.TP 3
  921. X\fB*mailopt_U: \fI<boolean>\fR
  922. XNormally false, this resource
  923. Xduplicates the effect of the \fI-U\fR command line option.
  924. X.TP 3
  925. X\fB*menu\fR
  926. Xcontrols resources for all of the command button popup menus
  927. X.TP 3
  928. X\fB*MFileName: \fI<foldername>\fR
  929. XNormally null, this resource
  930. Xduplicates the effect of the \fI-f folder\fR command line option.
  931. X.TP 3
  932. X\fB*noMailFlag:\fP \fI<string>\fP
  933. Xis the resource which defines the icon bitmap to use when indicating that new
  934. Xmail is not available.
  935. X.TP 3
  936. X\fB*No_X_Hdr:\fP \fI<boolean>\fP
  937. XNormally False, if set to True this resource
  938. Xtells \*(xM to \fBnot\fP include any X-Face header strings when displaying the
  939. Xtext of an incoming message.  This is equivalent to specifying the \*(xM
  940. Xcommand line option \fB-nx\fP.  Either setting will not deter the display of
  941. Xthe X-Face bitmap if it exists in the message headers.
  942. X.TP 3
  943. X\fB*Show_Info: \fI<boolean>\fR
  944. XNormally true, this boolean enables display of command button information
  945. Xmessages in the status window, whenever the mouse cursor enters or leaves one of
  946. Xthe command button windows.  Information messages are also displayed for each
  947. Xof the popup sub-menus as well.  Setting this resource to false prevents these
  948. Xinformation messages from being displayed.
  949. X.TP 3
  950. X\fB*Show_Last: \fI<boolean>\fR
  951. XNormally true, this boolean enables display of the last message in a folder,
  952. Xproviding no other is newer or unread.  Setting this resource to false causes
  953. Xfolder displays to start with the first (or new or unread) message.
  954. X.TP 3
  955. X\fB*statusWindow\fR
  956. Xcontrols resources for the \fIstatus\fR window
  957. X.TP 3
  958. X\fB*Subject\fR
  959. Xcontrols resources for the \fISubject:\fR entry window
  960. X.TP 3
  961. X\fB*textFont: \fI<fontname>\fR
  962. Xdenotes a preferred font to use when creating text and index windows.
  963. X.TP 3
  964. X\fB*textWindow\fR
  965. Xcontrols resources for the \fItext\fR window
  966. X.TP 3
  967. X\fB*titleBar\fR
  968. Xcontrols resources for the \fItitleBar\fR window
  969. X.TP 3
  970. X\fB*To\fR
  971. Xcontrols resources for the \fITo:\fR entry window
  972. X.RE
  973. X
  974. XA set of default resource definitions are provided in the
  975. Xfile \fB/usr/lib/X11/app-defaults/XMail\fR.  User's may wish to include
  976. Xappropriate alternate definitions in their 
  977. X.SB $HOME/.Xdefaults
  978. Xfile, to tailor preferences for colors and/or fonts.
  979. X.\"
  980. X.SH "SENDING MESSAGES"
  981. XAll send and reply operations invoke the user's preferred editor to create or
  982. Xmodify the message.  The editor preference may be specified using either the
  983. X.SB VISUAL
  984. X\&.mailrc environment specification, or the newer \fBeditorCommand\fR resource
  985. Xspecification (\fIor \-editorCommand command line option\fR).
  986. X
  987. XThe editorCommand resource must define a string with two \fBsprintf\fR\-able
  988. Xformat declarations, one for the name of the X11 server display connection,
  989. Xand one for the name of the file to be edited.  The editorCommand specification
  990. Xmust also ensure the proper creation of an appropriate X11 window for
  991. Xcompleting the desired editing session.
  992. X
  993. XThe resource may be specified on the command line, either as an option, or as
  994. Xa resource manager string.  It may also be specified in the user's applications
  995. Xdefault file as an xmail resource.  Examples of editorCommand specification
  996. Xstrings include:
  997. X
  998. X.RS
  999. X.nf
  1000. X\fBxmail\ \-editorCommand\ 'emacs\ \-display\ %s\ \-name\ XMail\ %s'
  1001. X.sp
  1002. X\fBxmail\ \-xrm\ '*editorCommand:\ xterm\ \-display\ %s\ \-e\ vi\ %s'
  1003. X.sp
  1004. Xxmail.editorCommand:\ \ xedit\ -name XMail_Edits \-display\ %s\ %s
  1005. X.sp
  1006. Xxmail.editorCommand:\ \ emacs\ \-display\ %s\ %s
  1007. X.sp
  1008. Xxmail.editorCommand:\ \ xterm\ \-display\ %s\ -name XMail -e vi %s
  1009. X.fi
  1010. X.RE
  1011. X
  1012. XIf the editorCommand resource fails to provide the required string declarations
  1013. Xfor the display and file names, or it is not defined, \*(xM will default to
  1014. Xthe older method of utilizing the information in the user or Mail process
  1015. X.SB VISUAL
  1016. Xenvironment variable.
  1017. XThe \fIdefault\fR editor will be \fBvi\fR, if no
  1018. X.SM VISUAL
  1019. X(\fImailrc or process\fR) environment variable definition exists.
  1020. X
  1021. XUpon completion of the send/reply editing session, a popup window will be
  1022. Xdisplayed containing \fITo:\fR, \fISubject:\fR, \fICc:\fR, and \fIBcc:\fR
  1023. Xfields for the current message composition.  Help is available for each of
  1024. Xthese fields, as it is for all of \*(xM.
  1025. X
  1026. XA menu of mail aliases (\fIextracted from the user's .mailrc file\fR) is
  1027. Xavailable for access from any of the To:, Cc:, or Bcc: windows.  Pressing the
  1028. Xright mouse button while the mouse
  1029. Xcursor is in any of these input fields causes the alias names menu to be
  1030. Xdisplayed.  If the user has not defined any mail aliases, the terminal bell
  1031. Xwill be rung instead, to indicate that no alias names menu is available.
  1032. X
  1033. XLike the \fIFile:\fR window used to enter file and mail folder names, the
  1034. Xcontent of the send window popup fields may be modified by the user as needed.  
  1035. XBackspace and delete keys remove the previous character, control_W
  1036. Xdeletes the previous word, and control_U deletes the entire
  1037. Xline of information.  Pressing the Return key in any of these four
  1038. Xfields causes the cursor to automatically warp to the next field.
  1039. X
  1040. XUsers may append their \fISign\fP or \fIsign\fP autograph (see \fBMail(1)\fR)
  1041. Xonce only to the end of the composed message text.  If the user does not set
  1042. Xa [Ss]ign value in their .mailrc file, this version of xmail will also look in
  1043. Xtheir home directory for either a .signature or .Signature file (\fIdepending
  1044. Xon which of the two [Aa]utograph buttons was pressed\fP) to append to the
  1045. Xmessage text.
  1046. X
  1047. XPressing the \fIRe-Edit\fR button allows the message to be re-edited,
  1048. Xwhile the \fICancel\fR button terminates delivery but saves any partial
  1049. Xcomposition in your dead.letter file.
  1050. XPressing the \fIAbort\fR button cancels delivery but does not save the
  1051. Xcomposition, while the
  1052. X\fIDeliver\fR button causes the message to be delivered to the sendmail daemon.
  1053. X
  1054. XThe pressing of any of these command buttons may also be simulated while the
  1055. Xmouse cursor is anywhere within the popup window,
  1056. Xby using the keyboard \fBmeta\fP keys and the first letter of the command, with
  1057. Xthe exception that the adding of autograph signatures is denoted by the use of
  1058. Xeither the \*Q\fBS\fP\*U (\fIfor upper-case Autograph Signature\fP) or
  1059. X\*Q\fBX\fP\*U
  1060. X(\fIfor the lower-case version\fP) keys, since the \*Q\fBA\fP\*U key
  1061. Xis used for effecting the \fBAbort\fP function.
  1062. X
  1063. XWhen either the Cancel, Abort,
  1064. Xor Deliver function is selected, the composition popup is automatically
  1065. Xremoved from the display.
  1066. X
  1067. XIf the user attempts to deliver a message with no designated recipient or
  1068. Xno message body and no message Subject line specified, \*(xM will re-display
  1069. Xthe completion popup, to permit the user to Re-Edit the message body,
  1070. Xadd a Subject designation and/or recipient, or specifically Abort the
  1071. Xmessage delivery.
  1072. X
  1073. XMail forwarded to another user will be bracketed by a \*Q\fIBegin Forwarded
  1074. XMessage/End Forwarded Message\fR\*U string
  1075. Xpair when using the \*Q\fIforward message\fR\*U Send command menu option.  Also 
  1076. Xincluded will be a \*Q\fIForwarded: Mail from ...\fR\*U line in the mail header.
  1077. X
  1078. XReply messages will include a \*Q\fIIn-Reply-To: Mail from ...\fR\*U string
  1079. Xin the mail
  1080. Xheader.  Like the \*Q\fIForwarded:\fR\*U header described above, it will include
  1081. Xthe name of the original sender, as well as the date the original message was
  1082. Xreceived.
  1083. X
  1084. XIf an X-Face header exists for the user, it will be inserted in the mail header
  1085. Xsection of the outgoing message.  This header must be stored in the file
  1086. X\fB\&.face\fR located in the user's home directory.
  1087. X
  1088. XUsers may provide additional custom header information to be applied to all
  1089. Xoutgoing message compositions, by using the \fB*customHeader\fP \*(xM resource
  1090. Xdesignation.  Specified information must conform to the format of mail
  1091. Xheaders as noted elsewhere in this documentation.
  1092. X.\"
  1093. X.SS "X-FACE HEADERS"
  1094. XX-Face headers are compressed bitmap images, typically of the face of the
  1095. Xperson owning such a header.  The compressed header contains only printable
  1096. Xcharacters, which allows it to be included in a mail message.
  1097. XThe \s-1USENIX\s+1 (\fI\s-1UNIX\s+1 Users Association\fR)
  1098. XFaceSaver project is the typical
  1099. Xsource for these bitmaps, which are compressed into X-Face header
  1100. Xformat using the \fBcompface\fR software tools written and distributed by
  1101. XJames Ashton <jaa@cs.su.oz.au>.  The compface library is also included with the
  1102. Xdistribution of the \fBfaces\fR software, written and distributed by Rich
  1103. XBurridge, and is available from the
  1104. XRich Burridge Archive Service <rb-archive-server@Aus.Sun.COM>.
  1105. X.\"
  1106. X.SS "EDITING RESOURCES"
  1107. XThe editing session invoked within \*(xM runs as a child process of the
  1108. X\*(xM application.  As such, it does not use those resources that were declared
  1109. Xfor the \*(xm process.  Resources for the editing session should be tied to the
  1110. Xuse of the \fB\-name\fR toolkit option in the editorCommand specification.
  1111. X
  1112. XThe default
  1113. X.SM VISUAL
  1114. Xmechanism invokes the vi editor in an xterm window, using the \*(xM Class
  1115. Xresource as it's name identifier.  This allows message composition window
  1116. Xresources to be declared
  1117. Xusing the \*(xM Class resource name followed by the xterm terminal resources
  1118. Xidentifier \*Qvt100\*U, as in \*Q\fBXMail*vt100.\fI<resource: value>\fR\*U.
  1119. X
  1120. XFor example, the author uses the following resource definitions in his
  1121. X\&.Xdefaults file, to control the size and placement of message composition
  1122. Xwindows.
  1123. X.sp
  1124. X.RS
  1125. X.nf
  1126. XXMail*vt100.geometry:           80x27+30+100
  1127. XXMail*vt100.font:               fg-22
  1128. XXMail*vt100.foreground:         white
  1129. XXMail*vt100.background:         blue
  1130. XXMail*vt100.mouse:              white
  1131. X.fi
  1132. X.RE
  1133. X.\"
  1134. X.SH "VARIABLES"
  1135. X\*(xM also uses the existence and value of several Mail environment
  1136. Xvariables (\fIdefined in the user's \&.mailrc file\fP) to aid in controlling
  1137. Xit's operation.
  1138. X.sp
  1139. X.RS
  1140. X.TP 3
  1141. X\fBalwaysignore\fR
  1142. XIf set, causes \*(xM to ignore those header fields specified with the
  1143. X\fIignore\fR \&.mailrc environment variable, when printing messages 
  1144. Xor when including message text in a send/reply composition.  This variable
  1145. Xcan be altered during the execution of \*(xM.  (See the section below
  1146. Xon \fIChanging Variables\fR.)
  1147. X.TP 3
  1148. X\fBautoprint\fR
  1149. XIf enabled, causes the current message text to be displayed when deleting or
  1150. Xundeleting messages.  If \fInot\fR enabled, users must select or read the
  1151. Xdesired
  1152. Xmessage.  This variable can also be altered within the current \*(xM execution.
  1153. X.TP 3
  1154. X\fBbell=\fIvalue\fR
  1155. XIf defined, determines the number of times the terminal bell would be rung to
  1156. Xindicate the arrival of new mail.  A minimum of once and a maximum of five
  1157. Xtimes is the permissible range.  Whether the terminal bell rings at all when
  1158. Xnew mail arrives is controlled by the \*Q\fB*icon*bell: \fI<boolean>\fR\*U
  1159. Xresource (\fIor \fB\-nb\fP command line option\fR) described above.
  1160. X.TP 3
  1161. X\fBeditheaders\fR
  1162. XLike Mail and mailtool, \*(xM permits the user to set and modify the outgoing
  1163. Xmessages mail headers while composing the message, if this variable is set.
  1164. XThis variable can be toggled during \*(xM execution, using the capabilities
  1165. Xof the \fBSet\fR menu provided under the \fBpreserve\fR command button.
  1166. X.TP 3
  1167. X\fBhold\fR
  1168. XLike mailtool, \*(xM sets \*Qhold\*U on the user's system mail folder,
  1169. Xunless \*Qnohold\*U has been \fIexplicitly\fR specified in the user's
  1170. X\&.mailrc file.  This variable can also be altered during \*(xM execution.
  1171. X.TP 3
  1172. X\fBprintmail=\fIprinter command\fR
  1173. XThis variable, originally created for the Sunview mailtool, allows the user
  1174. Xto specify a preferred command to use when printing messages.  The default
  1175. Xcommand is \*Qlpr -p\*U.  If the user is not using Sun's version of the mail
  1176. Xhandler, then the print mechanism will first copy the selected message to a
  1177. Xtemporary file before printing it.  This implies that the printmail command
  1178. Xmust also remove this temporary file when the print job has been completed.
  1179. XThis is typically accomplished by including the \fB\-r\fP (\fIremove\fP) option
  1180. Xwhen specifying the printmail command.  This is the default for non-Sun
  1181. Xspecific printing in the xmail program.
  1182. X.TP 3
  1183. X\fBsendmail=\fIshell-command\fR
  1184. XIf set, specifies an alternate procedure to use in lieu of the default
  1185. X\&/usr/lib/sendmail for delivering mail. User supplied procedures must be
  1186. Xprepared to search the message file for recipients and ignore or process
  1187. Xunexpected options (which ultimately must be passed on to the real sendmail
  1188. Xprogram).
  1189. X.RE
  1190. X.LP
  1191. XSome Mail variables have no effect on \*(xM operation, and are in fact ignored
  1192. Xif found to be set.
  1193. X.RS
  1194. X.TP 3
  1195. X\fBreplyall\fR
  1196. Xhas no effect on the meaning of commands within \*(xM.  This prevents confusion
  1197. Xdue to a difference between how a command is labeled, and how it reacts in use.
  1198. X.TP 3
  1199. X\fBcmd=\fI<value>\fR
  1200. Xis ignored, and is always defeated.  This provides a mechanism to determine if
  1201. Xthe pipe command is supported in the user's mail environment, and determines
  1202. Xthe method to use when printing a message on the system printer (\fIusing the
  1203. Xdefault or user specified\fP \fBprintmail\fP \fIcommand\fP).
  1204. X.TP 3
  1205. X\fBcrt=\fI<value>\fR
  1206. Xis ignored, and always defaults to \fBnocrt\fR.  This prevents user specified
  1207. Xpaging mechanisms from interfering with full message delivery to \*(xM.
  1208. X.TP 3
  1209. X\fBscreen=\fI<value>\fR
  1210. XThe current release of \*(xM can safely handle up to a
  1211. Xmaximum of 10,000 mail message in any one mail folder.  Users with more than
  1212. X10,000 messages in any one folder should seriously consider either creating
  1213. Xsome additional sub-folders, or at least deleting older messages.
  1214. X.\"
  1215. X.SS "CHANGING VARIABLES"
  1216. X\*(xM provides a mechanism for altering the state of four of the Mail (\fIand
  1217. Xone \*(xM specific\fP)
  1218. Xenvironment variables used to control \*(xM (and Mail) operations.
  1219. XThe states of \fBalwaysignore, autoprint, editheaders, hold,\fR and
  1220. X\fBexpert\fR can now be \*Qtoggled\*U from a special menu attached to the
  1221. X\fBpreserve\fR command button.
  1222. X.LP
  1223. XPressing the right mouse button while the
  1224. Xmouse pointer is within the preserve command button box presents a
  1225. Xmenu of \*Qset\*U
  1226. Xcommands which indicate the state the variables would be changed to
  1227. Xif the mouse button were released while one of these commands was highlighted.
  1228. X.LP
  1229. XChanging the state of the variable alters the next presentation of the menu,
  1230. Xsuch that the opposite state will always be presented as the command option.
  1231. X.RE
  1232. X.\"
  1233. X.SH "SEE ALSO"
  1234. XMail(1)
  1235. X.\"
  1236. X.SH BUGS
  1237. XUsers finding a problem in
  1238. Xthis xmail application are encouraged to notify the author at the
  1239. Xindicated address.  A complete (as possible) description of the problem, and
  1240. Xa context diff of the changes needed to fix the flaw, if available, would be
  1241. Xgreatly appreciated.  I will make every effort to fix any such bugs reported.
  1242. X
  1243. XSend any bug reports or other requested changes to:
  1244. X
  1245. X.RS
  1246. X.nf
  1247. XMichael C. Wagnitz                        M/S D3-677
  1248. XNational Semiconductor Corporation
  1249. X2900 Semiconductor Drive  Santa Clara, CA 95052-8090
  1250. X
  1251. XDomain: michael@berlioz.nsc.com  Phone: 408/721-3266
  1252. XUUCP: {apple|decwrl|hplabs|sun}!nsc!berlioz.nsc.com!michael
  1253. X.fi
  1254. X.RE
  1255. X.\"
  1256. X.SH AUTHOR
  1257. X.ce 3
  1258. XCopyright 1989, 1990, 1991, 1992 - \*(nS
  1259. XALL RIGHTS RESERVED
  1260. X
  1261. XMichael Wagnitz, \*(nS, Santa Clara, CA
  1262. X.LP
  1263. XMuch of the original design and insight for the development of \*(xM
  1264. Xwas provided by contributions from the following authors:
  1265. X
  1266. XThe xdbx contribution by Po Cheung (po@volta.ece.utexas.edu)
  1267. X.RS
  1268. XCopyright 1989 The University of Texas at Austin
  1269. X.RE
  1270. X
  1271. XThe mailWatch widget by Dan Heller (argv@sun.com)
  1272. Xwas used as the source for the \*(xM icon window.
  1273. END_OF_FILE
  1274.   if test 53609 -ne `wc -c <'xmail.man'`; then
  1275.     echo shar: \"'xmail.man'\" unpacked with wrong size!
  1276.   fi
  1277.   # end of 'xmail.man'
  1278. fi
  1279. echo shar: End of archive 3 \(of 10\).
  1280. cp /dev/null ark3isdone
  1281. MISSING=""
  1282. for I in 1 2 3 4 5 6 7 8 9 10 ; do
  1283.     if test ! -f ark${I}isdone ; then
  1284.     MISSING="${MISSING} ${I}"
  1285.     fi
  1286. done
  1287. if test "${MISSING}" = "" ; then
  1288.     echo You have unpacked all 10 archives.
  1289.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1290. else
  1291.     echo You still must unpack the following archives:
  1292.     echo "        " ${MISSING}
  1293. fi
  1294. exit 0
  1295. exit 0 # Just in case...
  1296. -- 
  1297.   // chris@IMD.Sterling.COM            | Send comp.sources.x submissions to:
  1298. \X/  Amiga - The only way to fly!      |
  1299.  "It's intuitively obvious to the most |    sources-x@imd.sterling.com
  1300.   casual observer..."                  |
  1301.