📄 aaj1qlb-zwwa0yk.html
字号:
<HTML><HEAD> <TITLE>Alerts Option</TITLE></HEAD><BODY bgcolor="#ffffff"><H1><A NAME="AAJ1QLB-zWwA0YK">Alerts Option</H1><P>Alerts are user-specified commands that run when incomingmail arrives. The<B>A</B><U>l</U><B>erts ...</B> option invokes a specific commandwhen incoming mail containing a certain string pattern in itsheader arrives. You can specify a different string pattern for eachcommand you define. When mail arrives, the headers arescanned for a match with any of the patterns. When a match isdetected the associated command is executed.<P>The alert command can be any executable program. You canspecify the program's full path name, or your<CODE>$PATH</CODE> environmentvariable is used to find the program.<P>You can pass the message headers and/or the message body tothe alert command. If<CODE>%m</CODE> is added to the command,<CITE>Ishmail</CITE> willcreate a file with the entire message contents and replace<CODE>%m</CODE>with the name of that file. <CODE>%h</CODE> will be replaced with the name ofa file containing just the message headers. <CODE>%b</CODE> will be replacedwith the name of a file containing just the message body. <CODE>%%</CODE> willbe replaced with %. Here is an example command that willdisplay the<CODE>Subject:</CODE> and<CODE>From:</CODE> headers in a new message using the<CITE>mfyi</CITE> command:<PRE>mfyi -center "`egrep `^(Subject:|From:)' %h`"</PRE><P>Possible uses for alert commands include:<UL><LI>Generate automatic replies to incoming mail, based onsender and subject.<P></LI><LI>Provide the function of the<B>vacation</B> command.<P></LI><LI>Provide the function of the<CITE>xbiff++</CITE> command.<P></LI></UL><P>To add or insert new alerts, and to edit or delete existing alerts,click the<B>A</B><U>l</U><B>erts ...</B> option. The<B>Alerts</B> dialog window appears.<P><H4>Figure: <A NAME="JAJ1QLB-zWwA0YK">Alerts Window</H4><IMG SRC="AAJ1QLB-zWwA0YK.extobj.1.gif"><H2><A NAME="cYZZbLB6WH9X3cS">SpecifyingAlerts</H2><P>The<B>Alerts</B> dialog window shows the list of current string patternsand associated commands in a box containing two text fields-the<B>Pattern</B> name field and the associated<B>Command</B> field. (If noalerts have been defined, both fields are empty). Each patternmust have a command associated with it.<P>Each pattern is evaluated as a<VAR>regular expression</VAR>, as defined bythe UNIX<B>ed</B> command.<P>The<CODE>Enable Alerts</CODE> button in the upper right corner of the<CODE>Alerts</CODE>window lets you temporarily disable all alert commands withouthaving to delete them.<P>You use the four buttons to the left of the text fields to:<UL><LI>Create a new alert.<P></LI><LI>Insert an alert.<P></LI><LI>Edit an existing alert.<P></LI><LI>Delete an existing alert.<P></LI></UL><P>When you click the<B>New ..., Insert ...</B> or<B>Edit ...</B> buttons, the<B>Edit Alert Rule</B>window appears. It contains text fields in which you can createor modify an alert.<P><H4>Figure: <A NAME="MUJ1QLB-zWwA0YK">Edit Alert Rule Window</H4><IMG SRC="AAJ1QLB-zWwA0YK.extobj.2.gif"><H3><A NAME="wJCd.LBUXXwA0YK">Creating a New Alert</H3><P>New alerts are added to the end of the list. Since patterns areevaluated in order, this means that the newest alert pattern ischecked last. To create a new alert:<OL><LI>Click the<B>New ...</B> button. The<B>Edit Alert Rule</B> window appears.<P></LI><LI>Place the pointer in the<B>Pattern</B>: text field and enter astring pattern that would appear in the header field of anincoming message.<P></LI><LI>Place the pointer in the<B>Command:</B> text field and enter anassociated command that will be invoked when thestring pattern is encountered in a message header.<P></LI><LI>Click<B>Ok</B> or<B>Apply</B> in the<B>Edit Alert Rule</B> window. The new alertis added to the end of the<B>Pattern</B> list.<P></LI></OL><H3><A NAME="zf3ZgMB8BJ9X3cS">Inserting an Alert</H3><P>Since patterns are evaluated in order, inserting an alert ahead ofother alerts causes its pattern to be evaluated first. To insert analert:<OL><LI>Select an alert in the<B>Pattern</B> list and click the<B>Insert ...</B>button. The<B>Edit Alert Rule</B> window appears.<P></LI><LI>Place the pointer in the<B>Pattern</B>: text field and enter astring pattern that would appear in the header field of anincoming message.<P></LI><LI>Place the pointer in the<B>Command:</B> text field and enter anassociated command that will be invoked when thestring pattern is encountered in a message header.<P></LI><LI>Click<B>Ok</B> or<B>Apply</B> in the<B>Edit Alert Rule</B> window to insert yourchanges before the selected alert in the<B>Pattern</B> list.<P></LI></OL><H3><A NAME="KKCd.LBUXXwA0YK">Editing an Alert</H3><P>Toedit an alert:<OL><LI>Select an alert in the<B>Pattern</B> list and click the<B>Edit ...</B> buttonor double-click the alert. The<B>Edit Alert Rule</B> windowappears with the alert pattern and associated commandin the text fields.<P></LI><LI>Make your modification(s) in the text fields.<P></LI><LI>Click<B>Ok</B> or<B>Apply</B> in the<B>Edit Alert Rule</B> window to add yourchanges to the selected icon in the<B>Pattern</B> list.<P></LI></OL><H3><A NAME="cKCd.LBUXXwA0YK">Deleting an Alert</H3><P>To delete one or more alerts:<OL><LI>Select the alert(s) you want to remove.<P></LI><LI>Click the<B>Delete</B> button.<P>A pop-up confirmation box prompts you for confirmationbefore completing the operation.<P></LI></OL><H3><A NAME="AcJ1QLB-zWwA0YK">Applying Your Changes</H3><P>Apply or cancel your changes using the row of buttons across thebottom of the window. See<A HREF="1j.-uyBk2I9X3cS.html#9eH1QLB-zWwA0YK">Applying Your Changes</A>.<HR>Preceding Section: <A HREF="8lI1QLB-zWwA0YK.html">Aliases Option</A><BR>Following Section: <A HREF="FcJ1QLB-zWwA0YK.html">Icons Option</A><BR>Parent Section: <A HREF="2EtRqFB0aG9X3cS.html">Main Window Options Menu</A><BR>Contents of <A HREF="zsPsIGBSYWwA0YK.html">Ishmail User's Guide</A><BR><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -