# CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # Copyright 2000 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" # BSD compatible Mail defaults. # like mailx... source /etc/mail/mailx.rc # except... unset showname autoinc set escapeok # ident "%Z%%M% %I% %E% SMI" mailx commands alias,group user ... declare alias for user names alternates user declare alternate names for your login cd,chdir [directory] chdir to directory or home if none given !command shell escape copy [msglist] file save messages to file without marking as saved delete [msglist] delete messages discard,ignore header discard header field when printing message dp,dt [msglist] delete messages and type next message echo string print the string edit [msglist] edit messages folder,file filename change mailboxes to filename folders list files in directory of current folder followup [msglist] reply to authors of messages and save copy Followup [message] reply to all recipients of message and save copy from [msglist] give header lines of messages header [message] print page of active message headers help,? print this help message hold,preserve [msglist] hold messages in mailbox inc incorporate new messages into current session list list all commands (no explanations) mail user mail to specific user Mail mail to specific user, saving copy mbox [msglist] messages will go to mbox when quitting next [message] goto and type next message pipe,| [msglist] shell-cmd pipe the messages to the shell command print,type [msglist] print messages Print,Type [msglist] print messages with all headers quit quit, preserving unread messages reply,respond [msglist] reply to authors (only) of the messages Reply,Respond [message] reply to the author and recipients of the msg save [msglist] file save (appending) messages to file Save [msglist] save messages to file named after author set variable[=value] set variable to value size [msglist] print size of messages source file read commands from file top [msglist] print top 5 lines of messages touch [msglist] force the messages to be saved when quitting undelete [msglist] restore deleted messages undiscard,unignore header add header field back to list printed unread,new [msglist] mark messages unread version print version visual [msglist] edit list with $VISUAL editor write [msglist] file write messages without headers xit,exit quit, preserving all messages z [+/-] display next [last] page of 10 headers [msglist] is optional and specifies messages by number, author, subject or type. The default is the current message. # ident "%Z%%M% %I% %E% SMI" -------------------- ~ ESCAPES ---------------------------- ~~ Quote a single tilde ~a,~A Autograph (insert 'sign','Sign' variable) ~b users Add users to Bcc list ~c users Add users to Cc list ~d Read in dead.letter file ~e Edit the message buffer ~f messages Read in messages, do not right-shift ~h Prompt for Subject and To, Cc and Bcc lists ~i variable Insert variable into message (~a := ~i sign) ~m messages Read in messages, right-shifted by a tab ~p Print the message buffer ~q,~Q Quit, save letter in $HOME/dead.letter ~r,~< file Read a file into the message buffer ~r,~< !command Read output from command into message ~R Mark message for return receipt ~s subject Set subject ~t users Add users to To list ~v Invoke display editor on message ~w file Write message onto file (no header) ~x Quit, do not save letter ~!command Run a shell command ~|,~^ command Pipe the message through the command ~:,~_ command Execute regular mailx command ~. end of input ~? print this help message ----------------------------------------------------------- # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # Copyright 2000 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # The following 3 settings produce the familiar Solaris behavior. set appenddeadletter unset pipeignore unset replyall set append dot showname if t # mailx-only defaults here # # automatically incorporate new messages as they arrive. # would be nice if mailtool supported this as well. set autoinc else # mailtool-only defaults here # # this should probably not be mailtool-only, but for # compatibility we only put it here. set hold # following so hierarchical menu is the default set LISTER="ls -LF" # default is to allow editing of message windows set editmessagewindow endif # most mail headers are uninteresting to most people. here we ignore all # the uninteresting headers that are at all common. a better approach # might've been to retain only the interesting headers... # ignore uninteresting headers ignore apparently-to default-options errors-to in-reply-to precedence priority ignore received reply-to return-path return-receipt-to sender status via # ignore headers from news ignore approved company confirmed-by distribution expires followup-to keywords ignore lines message-id newsgroups organization path posted-date posting-number ignore references submitted-by summary # ignore strange headers from other mail systems ignore auto-forward-count auto-forwarded-from email-version ignore end-of-header end-of-protocol message-protocol message-service ignore message-type message-version mts-message-id report-version sent-by ignore transport-options ua-content-id ua-message-id # ignore content headers, but they'll still be saved ignore content-length content-type content-charset # ignore common non-standard headers ignore x-lines x-mailer x-postmark x-sequence x-zippy ignore x-sun-charset