Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
10.  Using Mailer Acting on Your Mail Messages To Save an Incoming or an Outgoing Message as Text  Previous   Contents   Next 
   
 

To Append a Message to A Text File

  1. Select a received message, then choose Save As Text from the Message menu or, for an outgoing message in a Compose window, choose Text from the Save As submenu of the File menu.

    Mailer displays a file selection dialog box.

  2. Type the file name and location of an existing file, and click Append.

    Mailer appends the text of the mail message to the file.

To Delete a Mail Message

To remove a message from the Message Header List:

  1. Select the message for deletion.

    You can drag to select multiple messages. Shift+Click selects several messages in a row by moving the highlight up or down the Message Header List. Control+Click selects discontiguous messages from the list, one at a time.

  2. Choose Delete from the Message menu, or click the Delete button in the Toolbar.

    The messages are deleted from the list.


    Note - Even if a message has been deleted, you can get it back unless you made your deletions permanent by choosing Destroy Deleted Messages from the Mailbox menu. See the following section.


To Undelete a Mail Message

Do one of the following to undelete a mail message:

  • To restore a message you just deleted, choose Undelete Last from the Message menu.

  • To restore an earlier message, choose Undelete from List from the Message menu, then select one or more messages from the list of deleted messages, and click the Undelete button.


Note - To make the deletions in the list permanent, choose Destroy Deleted Messages from the Mailbox menu.


To Destroy Deleted Messages When Closing the Mailbox

You can set your options so that when you close your mailbox, the messages you deleted will be permanently destroyed. Doing so means that once you close your mailbox, you cannot restore the messages that you deleted.

  1. Choose Basic from the Options menu.

    The Basic Options dialog box is displayed.

  2. Select "When I close the mailbox" under Destroy Deleted Messages.

    To remove the confirmation notice that appears each time you close the mailbox and asks if you want to destroy deleted messages, deselect "Show confirmation notice."

  3. Click OK or Apply to make your changes take effect.

Searching for Mail Messages Within a Mailbox

You can search for mail messages within a mailbox according to the search criteria that you define. Basic search criteria fields in the Basic window of the Search dialog box include: the addressees (To), the sender (From), the subject (Subject), the carbon copy recipients (Cc), and the message text, including the headers (Entire Message).

By creating a search script in the Advanced window of the Search dialog box with keywords and arguments, you can define more sophisticated search criteria for finding messages.

The tables that follow show the keywords you can use in search scripts, grouped under the following categories:

  • Headers - Keywords that denote the headers or the text part of the messages (Table 10-1)

  • Dates - Keywords that indicate when the messages were sent (Table 10-2)

  • States - Keywords that describe the status of the messages (Table 10-3)

  • Operators - Keywords that join together other keywords to form a search criterion (Table 10-4)


Note - Those keywords you can type manually but are not available through the menus in the Advanced window of the Search dialog box are marked with an asterisk (*).


Table 10-1 Headers Search Keywords

Keyword

Explanation

TO

 

FROM

 

SUBJECT

 

Cc

 

TEXT

A keyword that pertains to the entire message, including headers and attachments

BCC

 

HEADER*

A keyword to use according to the syntax: header HeaderName HeaderValue, such as header x-sun-charset us-ascii

BODY*

A keyword that applies to the message text and the text attachments, but not the headers

Table 10-2 lists and describes the Dates keywords.


Note - The date format is dd-mmm-yyyy (for example, 02-Apr-1996).


Table 10-2 Dates Search Keywords

Keyword

Explanation

BEFORE

 

SINCE

 

ON

 

DURING

 

SENTSINCE*

 

SENTBEFORE*

 

SENTON*

 

TODAY

An argument for the keywords that are associated with dates, such as before

YESTERDAY

Same as above

LASTWEEK

Same as above

THISMONTH

Same as above

LASTMONTH

Same as above

JANUARY..DECEMBER

 

SUNDAY..SATURDAY

 

Table 10-3 lists and describes the States keywords.

Table 10-3 States Search Keywords

Keyword

Explanation

READ

 

UNREAD

 

NEW*

 

OLD*

 

DELETED*

A keyword for messages that you have deleted, but not permanently

UNDELETED*

 

RECENT*

 

FLAGGED*

 

ANSWERED*

 

UNANSWERED*

 

KEYWORD*

 

UNKEYWORD*

 

DRAFT*

 

UNDRAFT*

 

ALL*

A keyword that denotes all the messages in the mailbox

LARGER/SMALLER*

A keyword that requires two arguments, such as smaller 300, the numeric denoting bytes

Table 10-4 lists and describes the search operators.

Table 10-4 Search Operators

Operator

Explanation

AND

 

OR

 

~ (not)

A symbol that represents the logical

not
operator. Place it in front of the search keyword, for example: ~ text "good morning"

(

A symbol that denotes the beginning of an expression

)

A symbol that denotes the end of an expression

 
 
 
  Previous   Contents   Next