Cut and Paste with other applications
VMail supports the standard X11 Selection method for cut and paste functions.
To paste text from another application into VMail, select the text from the other window by dragging the cursor with the Left button down. Release the button and then move the cursor into the target VMail window. Press the Middle button to paste the selected text. Alternatively, you could use the Insert key on the keyboard to paste the text.
To paste into another application, the reverse process should work. Simply select the text in the VMail window using the Left button and then paste it into the other application's window using the Middle button. Please note that the Insert Key will not work for this unless the other application specifically supports it.
Note that some applications such as the Sun cmdtool, shelltool, and textedit programs do not support the standard X11 Cut/Paste under OpenWindows 3.0. There is currently no known way to paste into these windows from VMail.
Creating and using forms
VMail has the capability of using pre-defined forms in compose windows. These forms can be used to fill in default values for existing header fields as well as to create new fields. Fields can be readonly (label) or read/write (entry). Menus and buttons can be created to assist a user in filling in the fields.
Forms can be selected for insertion into an existing Compose window by using the "Insert Form..." menu item under the "File..." menu. Compose windows can also be started from the command line (vcomp) and a form loaded by specifying the -form flag with the full pathname of the form as a parameter.
Rules for setting up a form file are listed below.
- Up to the first blank line or a line without a ":" present will be treated as "sub-header" information and will have header lines created in compose windows.
- This "sub-header" information will not actually be included in the message header but in the message body.
- Each line consists of the following ":" separated fields :
- field name
- default value
- type of field (entry (default) or label)
- type of selection
- parameters
- If the field name matches a standard header field, then that field will be filled in with the supplied default value (or blanked out if none)
- Valid selection types and required parameters are listed below :
- file
- file name to read and create menu from
- menu
- comma separated list of menu items
- button
- comma separated list of buttons
- nuad
- field name to load as the default value
- date
- (none)
- cat
- file name to cat (contents loaded as the default value)
Attachments
To identify a file type for an attachment that is being added to a compose window, VMail does the following :
- try to match the extension against ~/.mime.types, $VMAILHOME/etc/mime.types, /usr/local/etc/mime.types, and /etc/mime.types in that order.
- failing this, it then tries content based detection by using the file command, specifying $VMAILHOME/etc/magic as the magic file to use.
- failing this, it gives up and puts "unknown" as the file type.
Forwarding Messages with Attachments
Please note that messages that are sent to you in mime or sun format will keep whatever the sending email package has set the file type to. When you forward the note to someone else, it sends it with the same file type.
Viewing Attachments
When you view an attachment (either from a compose or the main window), it will first do any decoding required. If the existing file type was empty, unknown, application/octet-string, or application/octet-stream, then it will attempt to come up with a different file type (same rules as above).
Then it matches the file type against ~/.mailcap, $VMAILHOME/etc/mailcap, /usr/local/etc/mailcap, and /etc/mailcap (in that order) to get the command to execute. Note that the temporary file is placed in /tmp with the name userid.pid.filename.ext and the command should contain a "%s" that the filename is substituted into.
After the command line is built, it is executed in the background as a completely independant process. When the "viewer" exits, the temporary file is removed.
Options
View options...
This menu item selects various functions to do with the viewing of folders and messages.
- Show full message header information
- This menu item
- Normal message order
- This menu item displays the message header list in the order that the messages are stored in the folder.
- Reverse message order
- This menu item displays the message header list in reverse order such that the last message in the folder is at the top of the list.
- Sort by sender
- This menu item sorts the message header list according to the sender. The sort is case insensitive.
- Sort by date/time
- This menu item sorts the message header list according to the date and time of the message. Note that if the folder contains messages that go back into a previous year, the sort will not be correct.
- Sort by size
- This menu item sorts the message header list according to the size of the message.
- Sort by subject
- This menu item sorts the message header list according to the subject. The sort is case insensitive.
Other Options...
This menu item sets miscellaneous user preferences that can be toggled or selected from a menu.
- Open main window when new mail
- This user option will pop up the main VMail screen when new mail arrives if is currently iconified.
- Pull in new messages as they arrive
- This user option will automatically pull new messages into the user's inbox as they arrive. The effect is the same as if the user pressed the New Mail button as soon as new mail was detected. Note that if the user is viewing a message at this time or is in another folder, then the current folder will be updated and the inbox folder opened. The message in the viewing window will be then jump to the first unread message. (This can be annoying)
- Sound audible beep on new mail
- This user option sounds an audible beep when new mail is detected. A BELL character is sent to stdout. If stdout was redirected to /dev/null when VMail was started, then no beep will be heard.
- Sound audible beep on errors
- This user option sounds an audible beep for error messages. A BELL character is sent to stdout. If stdout was redirected to /dev/null when VMail was started, then no beep will be heard.
- Startup compose windows as separate processes
- This user option will start NUAD, LIST, QUERY and compose windows as separate applications that are independent of VMail. If VMail is quit, these windows will remain.
- Do not log messages
- This user option disables logging to the File Carbon Copy on all compose windows.
- Ask for a return receipt
- This user option will automatically set the return receipt option on all compose windows. A "Return-Receipt-To:" header line will be inserted in the message before sending.
- Encrypt messages
- This user option will automatically set the encrypt option on all compose windows. (Note that encryption is not currently available)
- Include message in Reply/Replyall
- This user option will automatically include messages that are being replied to. If the message quote string is empty, the message will be included using the Sun style with "----- Begin Message -----" inserted at the start and "----- End Message -----" inserted at the end. If the message quote string is not empty, then the message will be quoted using the internet style. Note that the message will be wordwrapped in this case to the width of the compose window (normally 79 characters) less the length of the quote string.
- Insert signature file in all compose windows
- This user option will insert the user's ~/.signature file (if one exists) into all compose windows by default. For messages that are being forwarded or replied to, the signature will be inserted at the top of the message.
- Show Bcc field in all compose windows
- This user option will show the Bcc: (Blind Carbon Copy) field in all compose windows by default.
- Show Fcc field in all compose windows
- This user option will show the Fcc: (File Carbon Copy) field in all compose windows by default.
- Default attachment format...
- This user option selects the default attachment format to use when sending messages. Current options are "Sun attachment format", "Mime attachment format" and "Generic attachment format". The "Sun attachment format" is the default for new users and the recommended choice for sending email.
Edit User Preferences
This menu item opens a User Preferences screen.
Save Startup Options
This menu item saves the current state of the user options into the ~/.vmailrc file.
Edit Secondary Files...
This menu item shows a list of files that VMail uses that can be edited by the user.
- Signature
-
- Names menu
-
- Subjects menu
-
- VMail startup options
-
- Attachment view options
-
- Standard mail options
-
Gripe
This menu item opens a compose window with the To: and Subject: fields already initialized to send in a Suggestion or Gripe about VMail to its author.
NUAD Database
This menu item opens a NUAD Database update screen.
LIST Database
This menu item opens a LIST Database update screen.
General Query
This menu item opens a QUERY screen.