Sponsored Content
Full Discussion: unix question
Top Forums UNIX for Dummies Questions & Answers unix question Post 3815 by Neo on Wednesday 11th of July 2001 09:19:17 PM
Old 07-11-2001
You can edit or just view the mailbox for the user. This is normally located in spool directories such as /var/spool/mail or similar places. When you locate the mailboxes for your system, you can simply edit them using any text editor or view them using any file viewer (if you has appropriate access permissions).

Often, you can get to this directory by:

Code:
cd ~mail

...... this is possible because mail is often a user on UNIX systems.
 

9 More Discussions You Might Find Interesting

1. IP Networking

unix to unix serial connection question

hi there i'm a new bie just got few simple questions to ask. I got expert in windows configuration but totally new to unix environment . I want to make sure a com port (com1) is working, so I connect a 9-pin cable (CB9) for both PC using Unix environment (unix to unix). The question are (1)... (1 Reply)
Discussion started by: typsam
1 Replies

2. UNIX for Dummies Questions & Answers

Unix 10.2 question

I'm a verteran to Windows but i newbie to UNIX so i hope this isn't too dumb of a question. I have an HP 9000 D Class Server that has 10.2 and uses a console. The console died and i was told i can put a standard EISA video card in it and use a regualr monitor and keyboard. My question is how do i... (5 Replies)
Discussion started by: egress1
5 Replies

3. UNIX for Dummies Questions & Answers

Unix History Question: Why are filenames/dirnames case sentsitive in Unix?

I tried looking for the answer online and came up with only a few semi-answers as to why file and directory names are case sensitive in Unix. Right off the bat, I'll say this doesn't bother me. But I run into tons of Windows and OpenVMS admins in my day job who go batty when they have to deal... (3 Replies)
Discussion started by: deckard
3 Replies

4. UNIX for Dummies Questions & Answers

Question about unix

Hey everyone i am new to unix as well, has anybody heard of the script that allows you screen to look just like the Windows screen, if yea, what is it? (3 Replies)
Discussion started by: Gueso
3 Replies

5. Solaris

Unix Question

IF A program or database routine is writing in a file laying on unix box then how can be identify the process id which is writing in the file. Please let me know how can we do using root command and without root command? Regards, Shashank (10 Replies)
Discussion started by: TAPARIA
10 Replies

6. UNIX for Dummies Questions & Answers

a question about UNIX 5.0.6 , help me please

Dear friends I'm really new comer to this place and to this subject you will make me so happy if you help me about these questions: 1- I must install UNIX 5.0.6 because one of my work software will works ONLY on this version , so , I want to know WHERE CAN I DOWNLOAD A COMPELETE PACKAGE OF... (1 Reply)
Discussion started by: mrr53
1 Replies

7. UNIX for Dummies Questions & Answers

Unix question

When you enter your login id and password, what determines what program startsup? Is it always a Unix shell? (3 Replies)
Discussion started by: Alice Klein
3 Replies

8. UNIX for Dummies Questions & Answers

UNIX question

Pleas I want answer this question or reference or link website can find answer to this question? 1. We consider that we are running on a UNIX system which uses ACL as a mechanism for file protection. Where is the protection information of the file stored? 2. In UNIX, each device is... (1 Reply)
Discussion started by: tamer11007
1 Replies

9. UNIX for Beginners Questions & Answers

Question on UNIX

Hi, Can you please advise on answers of below 4 questions as I am not sure on the answers. 1. You are porting a C program that interacts over a network with remote systems. The program was originally written on AMD64 Linux. You are migrating it to SPARC Solaris architecture. Question Based on... (1 Reply)
Discussion started by: Vivekit82
1 Replies
MAILPLATE(1)															      MAILPLATE(1)

NAME
mailplate - reformat mail drafts according to templates SYNOPSIS
mailplate [[--new | -n] | [--editor | -e]] [--keep-unknown | -k] [--verbose | -v] [--debug | -d] template-name message-file mailplate [--keep-unknown | -k] [--verbose | -v] [--debug | -d] template-name < message-data mailplate [[--auto | -a] | [--menu | -m]] [[--new | -n] | [--editor | -e]] [--keep-unknown | -k] [--verbose | -v] [--debug | -d] message-file mailplate [[--auto | -a] | [--menu | -m]] [--keep-unknown | -k] [--verbose | -v] [--debug | -d] < message data mailplate [--help | -h] mailplate [--version | -V] DESCRIPTION
mailplate is a programme that reformats mail drafts according to a given template. The template may be specified on the command line, but mailplate can also use control information from the template files to automatically select an appropriate template (--auto). A selection menu feature is planned (--menu). Applying a template means obtainined select data from an existing mail message (unless --new is specified) and to fill it into appropriate slots in the template. Messages are processed in three parts: headers, body, and signature. When --new is given, an empty instantiation of the template is written to stdout. At the moment, --new cannot be combined with --editor. The template can define two types of headers: mandatory and preservatory. Mandatory headers take precedence over headers in the existing message and thus overwrite them. Preservatory headers instruct mailplate to port their data from the existing mail message. Headers in the existing message but not defined in the template are dropped, unless --keep-unknown is given. Body and signature are separated by '-- '. If this sentinel is not found, no signature is extracted. Templates can be interpolated and data filled into slots. Helper slots are filled with the output of helper commands (which must be defined in the configuration), environment variable slots are just that, and mail variable slots can be filled with data obtained by running regexps or commands over the message. This script can be run in multiple ways: o As a filter, it applies a template to data from stdin and writes the result to stdout. o When --editor is passed, the script spawns sensible-editor on the result. It may thus be used as the editor for your mail user agent. o Given a file, it modifies the file, unless it cannot write to the file, in which case it writes to stdout. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`--'): --auto, -a Turn on template auto-discovery. --menu, -m Choose from a list of templates (not yet implemented) --new, -n Create a new message. --editor, -e Spawn editor once template is applied. --keep-unknown, -k Preserve mail headers not specified in template. --verbose, -v Write informational messages to stderr. --debug, -d Start a debugger after initialisation. --help, -h Show summary of options. --version, -V Show version of program. MUTT INTEGRATION
I use mailplate as my $editor for mutt, with the following setting in my ~/.mutt/muttrc: set editor="~/.bin/mail/mailplate --edit --auto --keep-unknown" mailplate currently has a bit of a limitation, or at least I have not figured out a way how to work around it sensibly yet. If you re-edit a message from mutt's compose menu, it causes mailplate to reprocess the message, which you may not want. Similarly, if you find yourself editing messages from the index or pager, you probably also don't want mailplate to get in the way. For these cases, I currently use the following two keybindings: macro compose e ':set my_editor="$editor"<enter>:set editor=sensible-editor<enter><edit-headers>:set editor="$my_editor"<enter>' "invoke normal editor to edit message" macro index,pager e ':set my_editor="$editor"<enter>:set editor=sensible-editor<enter><edit>:set editor="$my_editor"<enter>' "invoke normal editor to edit message" VIM INTEGRATION
I am often editing a message with vim and find that I need to use a different identity. For this purpose, I have the following keybindings in my ~/.vim/ftplugin/mail.vim: nmap <buffer> <F1> :w<CR>:%!mailplate --keep-unknown --auto<CR> nmap <buffer> <C-P><F1> :w<CR>:%!mailplate --keep-unknown private<CR> nmap <buffer> <C-P><F2> :w<CR>:%!mailplate --keep-unknown debian<CR> Now when I reply to a message, mailplate automatically choses the right template, and if I later change my mind, I can press C-p, to override the choice and select the private template, or just hit to have it re-run the auto-detection. SEE ALSO
http://madduck.net/code/mailplate/ /usr/share/doc/mailplate/README AUTHOR
This manual page was written by martin f. krafft <madduck@madduck.net> with help from Carl Furstenberg. COPYRIGHT
Copyright (C) 2007 martin f. krafft September 30, 2007 MAILPLATE(1)
All times are GMT -4. The time now is 03:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy