mbox ascii mail text file ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting mbox ascii mail text file ?
# 1  
Old 05-20-2008
Question mbox ascii mail text file ?

Hi,

I am using "fetchmail" and "procmail" combination to trigger a job based on an input mail.Using fetchmail, incoming mail is downloaded from the mailserver to the local host.Once the mail is flushed,procmail starts execution and thereby triggers the application script.

In-between this process,a file under the name "mbox" is created in the home directory.file type is "ASCII mail text".This file has all the mails listed received by the account.

Can anybody say which program configuration is responsible for this?
Is it fetchmail or procmail or the mail program configuration files.

Regards
Dileep
# 2  
Old 05-20-2008
Could be either; depends on how you configured them. It doesn't look like any default value of Procmail's but maybe your system is configured to set up Procmail that way. Do you get log files? By your description, I guess fetchmail doesn't write anything, but passes everything to procmail; and in the absence of any explicit configuration, Procmail will write to where-ever $DEFAULT points to.
# 3  
Old 05-20-2008
Java

Quote:
Originally Posted by era
Could be either; depends on how you configured them. It doesn't look like any default value of Procmail's but maybe your system is configured to set up Procmail that way. Do you get log files? By your description, I guess fetchmail doesn't write anything, but passes everything to procmail; and in the absence of any explicit configuration, Procmail will write to where-ever $DEFAULT points to.
Yes.I got some hints like.After the completion of the job, a mail was sent to the user or the account under which the job is running with a "complete" message.

As usual i got a console messge like "You have a mail in /var/spool/mail/arunb".After i check my mail and exit the mailbox with "q" command i got the message like

"Message 11:
From arunb@seq20.kl03.com Tue May 20 08:05:23 2008
Date: Tue, 20 May 2008 08:05:22 -0400
From: "BArun" <arunb@seq20.kl03.com>
Subject: Output from your job 232
To: undisclosed-recipients:;

complete

? q
Saved 1 message in mbox
Held 10 messages in /var/spool/mail/arunb"

So i think it is something to do with the mail configuration.
Can anypne track this, please help me to avoid this

Regards
Dileep
# 4  
Old 05-20-2008
Java

Finally i got the source of that message.

FOR YOUR INFORMATION :

It is the default behaviour of the "mail" utility to write all the read but undeleted mails to a file.The default file is "mbox" under the home directory.

extract from man mail
"You can end a mail session with the quit `q ' ) command. Messages which have been examined go to your mbox file unless they have been deleted in which case they are discarded. Unexamined messages go back to the post office."

This will happen once you quit the mailbox after reading mail and without deleting the read mails.

"quit
(q ) Terminates the session, saving all undeleted, unsaved messages in the user's mbox file in his login directory, preserving all messages marked with hold or preserve or never referenced in his system mailbox, and removing all other messages from his system mailbox."

Regards
Dileep
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert Hex to Ascii in a Ascii file

Hi All, I have an ascii file in which few columns are having hex values which i need to convert into ascii. Kindly suggest me what command can be used in unix shell scripting? Thanks in Advance (2 Replies)
Discussion started by: HemaV
2 Replies

2. Shell Programming and Scripting

Import ASCII 28 delimited text file

I have an ASCII 28 delimited text file(non-printable delimiter) with 4 columns along with the header.I need to open this text file in Excel or any other tool to view each column content. Please help.. Thanks (6 Replies)
Discussion started by: aneeta13
6 Replies

3. UNIX for Dummies Questions & Answers

ArcGIS shapefile *.dbf file to ascii text

Okay, I search around and couldn't find what I needed, so here goes: I have a series of ArcGIS point shapefiles. If I open them in Excel I can save as an Excel or text file and get a 2 column list: POINTID | GRID_CODE 1 | 2.34234 2 | 4.3425 3 | 6.32456 etc... The problem is that I... (3 Replies)
Discussion started by: jbrandt1979
3 Replies

4. Shell Programming and Scripting

Mail text appending to previous mail text

The following is an extract of code I wrote to produce an email report of accounts that are about to expire. It works fine except each time I run it the output is appended to all text from the previous mail that was sent. Can anybody see what I'm doing wrong? paexpire=`sqlplus -s... (2 Replies)
Discussion started by: runnerpaul
2 Replies

5. Shell Programming and Scripting

ASCII Text formatting

Hi All, I have a requirement to create a formatted text. That is., I have a plain text composed to send it through an Email using mailx. I need to change the formatting of the text like BOLD, ITALIC, UNDERINED, COLOURED, INDENT etc., First of all, is it possible in UNIX? If yes, please let... (3 Replies)
Discussion started by: mohan_kumarcs
3 Replies

6. Programming

Reading a binary file in text or ASCII format

Hi All, Please suggest me how to read a binary file in text or ASCII format. thanks Nagendra (3 Replies)
Discussion started by: Nagendra
3 Replies

7. Shell Programming and Scripting

How to convert English text file to ASCII File?

file abc abc: English text I want to convert the above into file abc file: ascii text (1 Reply)
Discussion started by: laknar
1 Replies

8. UNIX for Dummies Questions & Answers

Creating flat text file (ASCII)

Hi everybody. I need help and I hope someone is willing to help me out here. My wholesale company is currently moving to new software. The old software is running on a UNIX platform. We need to migrate data from the UNIX system, but our former software provider refuses to assist the data... (5 Replies)
Discussion started by: Wdonero
5 Replies

9. UNIX for Dummies Questions & Answers

Send text file to mail

I have a utility that opens a telnet session and allows me to execute commands through a script. The utility allows me to output to a text file whatever is outputted to screen. This utility runs from a DOS prompt in Windows 95/98, NT or 2000. How can I mail text file this to a certain user. I... (2 Replies)
Discussion started by: petrosi
2 Replies
Login or Register to Ask a Question