How to redirect all mails to text file?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to redirect all mails to text file?
# 1  
Old 09-12-2006
How to redirect all mails to text file?

Hi,
I need to develop one application that reads all my mails (in unix mail box), and write into one txt file, My server is AIX .My mails are in AIX mail box.
Any idea?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cat files listed in text file and redirect to new directory with same filename

I have a directory that is restricted and I cannot just copy the files need, but I can cat them and redirect them to a new directory. The files all have the date listed in them. If I perform a long listing and grep for the date (150620) I can redirect that output to a text file. Now I need to... (5 Replies)
Discussion started by: trigger467
5 Replies

2. Shell Programming and Scripting

Script to call a menu script and redirect each option to a text file

Hello, I want to design a script that will call an existing menu script and select options one by one and redirict the out put to a file. For example;- In the script MENU.sh there are 10 options i want to design a script MENU2.sh that will select option 2 3 4 6 7 10 and redirict the output... (4 Replies)
Discussion started by: spradha
4 Replies

3. Shell Programming and Scripting

Redirect output to a different text file depending source of data

I have a list of DNS servers I need to look up information on. Each of these servers has a master and a slave database. Essentially what I need to do is create two text files for each server. One with the Master view and one with the Slave view. There's 20 servers, in the end I should have 40 text... (4 Replies)
Discussion started by: spartan22
4 Replies

4. UNIX for Advanced & Expert Users

shell script to send separate mails to different users from a text file

Hi Friends, Could you guys help me out of this problem... I need to send an email to all the users and the email has to be picked from the text file. text file contains the no. of records like: Code: giridhar 224285 847333 giridhar276@gmail.com ramana 84849 33884... (0 Replies)
Discussion started by: giridhar276
0 Replies

5. Shell Programming and Scripting

How to redirect a input of find command into a text file

Hello friends, I want a command to print the reult files from find command into a text file.:) Iam looking from forum memebers. PLZ help me.ASAP Thanks in Advance, Siva Ranganath CH (5 Replies)
Discussion started by: sivaranga001
5 Replies

6. Shell Programming and Scripting

cat redirect EOF missing text

Hello attempting to redirect out to create a startup script in solaris. The steps are working but the $1 entry is being left out. syntax below and content of output file below. cat > S99build << EOF > #!/bin/bash > case $1 in > 'start') > /usr/os-buildsol.sh > > ;; > esac > exit 0 >... (3 Replies)
Discussion started by: juanb25
3 Replies

7. Shell Programming and Scripting

Redirect text to image file

How can I redirect text data to an image (png, jpg, gif... etc) file using perl on unix solaris environment?? Please suggest. Pooja (1 Reply)
Discussion started by: wadhwa.pooja
1 Replies

8. UNIX for Dummies Questions & Answers

Parse Text file and send mails

Please help. I have a text file which looks something like this aaa@abc.com, c:FilePath\Eaaa.txt bbb@abc.com, c:FilePath\Ebbb.txt ccc@abc.com, c:FilePath\Eccc.txt ddd@abc.com, c:FilePath\Eddd.txt...so on I want to write a shell script which will pick up the first field 'aaa@abc.com' and... (12 Replies)
Discussion started by: Amruta Pitkar
12 Replies

9. UNIX for Advanced & Expert Users

sending mails with attachment and also some text in mail body

Hi, Can some one help me with the syntax of the mailx that should send an attachment and also some text in the message body together. When I am using the following syntax it is not sending the attachment but only the message body. unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s... (7 Replies)
Discussion started by: guptan
7 Replies

10. Shell Programming and Scripting

How to attach an excel file/ dat file thru unix mails

Hi. I want to attach a .xls or .dat file while sending mail thru unix. I have come across diff attachments sending options, but allthose embeds the content in the mail. I want the attachement to be send as such. Please help me out. regards Diwakar (1 Reply)
Discussion started by: diwakar82
1 Replies
Login or Register to Ask a Question
NEWMAIL(1)							  Mail Utilities							NEWMAIL(1)

NAME
newmail - biff like tool for the terminal SYNOPSIS
newmail [-b] [-h] [-i interval] [-r] [-w] [ mbox [...]] DESCRIPTION
The newmail program monitors a given set of mailboxes and looks for new mail. If new mail is received the sender and subject will be writ- ten on the terminal it was started from. By default newmail puts itself in the background so the console is still usable. newmail is able to monitor arbitrary numbers of mailbox files. If no mailbox was specified on the commandline it will monitor the default mailbox, which may be overwritten by the MAIL environment variable. If more than one mailbox is being monitored, a prefix is printed for each mail line so the user can distinguish between the different mail- box files. By default the prefix is the name of the mailbox without its path. If a mailbox is specified as path=string then string will be used as prefix for mails received in the mailbox denoted by path. newmail is able to decode header lines when non-ascii characters are transported. They will be displayed properly if the locale (LC_CTYPE) is set accordingly. OPTIONS
-b Ring a bell after one or more incoming mails have been detected for at least one mailbox. -h Print a help message. -i interval Set the interval between two mailbox checks to interval seconds. The default is 60 seconds which is suffient for the terminal. For the use inside of a window or dock application a lower value may be prudent. -r Emit raw data from the mail. This will bypass routines to decode character encodings used for mail headers as described in RFC 2047. This may be useful for window applications that want to decode the strings on their own. -w Run as window application. This will prevent newmail from moving itself into the background so its output can be used as input for a window application. This will also change the output format slightly and prevent a bell to be rung after new mail has been received. OUTPUT FORMAT
The output format differs from being read by humans and programs (-w). newmail: >> Mail from <from> - <subject> >> Priority mail from <from> - <subject> >> <folder>: Mail from <from> - <subject> >> <folder>: Priority mail from <from> - <subject> newmail -w: <from> - <subject> Priority: <from> - <subject> <folder>: <from> - <subject> <folder>: Priority: <from> - <subject> It should be easy for third party programs which are interested in such information to parse the output when newmail is running with the -w option. ENVIRONMENT
newmail supports the following environment variables: LANG Locale setting for the output character set. LC_CTYPE Locale setting only for the output character set. MAIL Full path of the user's spool mailbox. NOTES
This program is inspired by the newmail program from the Elm interactive mail program. It is a rewrite from scratch though. Many thanks go to Dave Taylor and the Elm Development Group who have provided me with a great mail program for several years. Many addi- tional thanks go to the former lead developer Dave Taylor who started the program back in 1986. SEE ALSO
locale(7). AUTHOR
Joey Schulze <joey@infodrom.org> Infodrom Oldenburg February 8th, 2006 NEWMAIL(1)