Sponsored Content
Top Forums Shell Programming and Scripting READING mail from /var/mail/user Post 302074165 by petoSVK on Saturday 20th of May 2006 07:50:06 PM
Old 05-20-2006
THIS IS ONE MESSAGE(TEXT in RED is written by MAIL program as Message content - I'd like the same):
Code:
From newbie@gmail.com Thu May 18 10:17:58 2006
Return-Path: <newbie@gmail.com>
Received: from relay.cv.cm (relay.cv.cm[147.32.80.7])
	by cv.cm (8.12.10+Sun/8.12.10) with ESMTP id k4I8Hw9W010121
	for <newbie@cv.cm>; Thu, 18 May 2006 10:17:58 +0200 (MEST)
Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181])
	by relay.cv.cm (8.13.4/8.13.4) with ESMTP id k4I8Hanf067227
	for <cv.cm>; Thu, 18 May 2006 10:17:55 +0200 (CEST)
	(envelope-from newbie@gmail.com)
Received: by py-out-1112.google.com with SMTP id t32so538943pyc
        for <newbie@cv.cm>; Thu, 18 May 2006 01:17:55 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:mime-version:content-type;
        b=nX4ViyhbdhgEfk92jDdHtfB1+4gGMImzF5znA9m/g3tJsqhAzg9LPI/b3NllfQB51SpfbP8NyG9oh8W7LSB8d9xBINz2rdPPX4HIAGBqSYvbOKod4eNU=
Received: by 10.35.40.10 with SMTP id s10mr241034pyj;
        Thu, 18 May 2006 01:17:55 -0700 (PDT)
Received: by 10.35.9.4 with HTTP; Thu, 18 May 2006 01:17:55 -0700 (PDT)
Message-ID: <7a04f4e906051098098516abbab9@mail.gmail.com>
Date: Thu, 18 May 2006 01:17:55 -0700
From: "ppppp" <newbie@gmail.com>
To: newbie@cv.cm
Subject: Noooo
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_107903_11845770.1147940275262"
X-FELK-MailScanner-Information: Please contact the ISP for more information
X-FELK-MailScanner: Found to be clean
X-FELK-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.388,
	required 5, BAYES_00 -2.60, HTML_MESSAGE 0.00,
	HTML_SHORT_LENGTH 1.57, SARE_MSGID_LONG40 0.64, SPF_PASS -0.00)
X-FELK-MailScanner-From: newbie@gmail.com

Content-Length: 495

------=_Part_107903_11845770.1147940275262
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Nemam co napssaaat.


sssss

------=_Part_107903_11845770.1147940275262
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div>Nemam co napssaaat.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>sssss</div>

------=_Part_107903_11845770.1147940275262--

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can I zero var/spool/mail/mail

The mail file in the directory var/spool/mail is very large. Can I zero this (>) without losing any unopened mails there may be? There are about 10 mail accounts. Using RedHat Linux. Thanks in advance. (0 Replies)
Discussion started by: dennisheazle
0 Replies

2. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

3. UNIX for Dummies Questions & Answers

How do I read mail in /var/spool/mail?

How can I read mail sent to /var/spool/mail? I do not have pine installed so forget about that...is there some generic utility I can use? (3 Replies)
Discussion started by: mojoman
3 Replies

4. UNIX for Dummies Questions & Answers

/var/spool/mail

Hi, How can i get my mail on either /var/spool/mail or /var/mail? I use mail and sendmail command to send mail. But everytime I send mail it comes to my outlook inbox and when I check with mail command I get the message "No mail for siba". (Note siba is my user Id.) (2 Replies)
Discussion started by: siba.s.nayak
2 Replies

5. UNIX for Advanced & Expert Users

Mail going to /var/spool/mqueue instead of being sent

Hello, I have a bunch of cron jobs in the crontab. For some reason mail from the cron jobs started going to /var/spool/mqueue instead of being sent. Does anyone know why mail from cron jobs would go to the queue instead of being sent? (9 Replies)
Discussion started by: xadamz23
9 Replies

6. UNIX for Dummies Questions & Answers

Parse /var/mail

Hi all... We have a box that receives a lot of incoming emails. I have a .procmailrc file that in turn invokes a python script, which process each of these incoming email. All is nice and good. However, before the .procmailrc and python script were in place, we still were receiving emails and... (0 Replies)
Discussion started by: khader69
0 Replies

7. Shell Programming and Scripting

importance of /var/mail

Hi When an entry will be made to the file /var/mail/<user-id> . I have 100 scripts under a specific user id(dgircc) in cron .SO inrder to check the whether the script has sucessfully run or not and if not to generate an email if i mention the code like #!/bin/ksh -p 2 fsize=`ls -lrt... (0 Replies)
Discussion started by: mskalyani
0 Replies

8. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

9. AIX

/var/spool/mail/ issues

Hi My box is running with AIX 6100-06 and Im the root user of this box My /var gets filled up often to 100% When I investigate I find that it is the below file which increases rapidly /var/spool/mail/pdgadmin I dont know why this file is growing up. Can any one assist me on this.... (2 Replies)
Discussion started by: samsungsamsung
2 Replies

10. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
msgchk(1mh)															       msgchk(1mh)

Name
       msgchk - check for messages

Syntax
       msgchk [ -help ] [ -nodate ] [ -notify all|mail|nomail ] [ users ...  ]

Description
       The  program checks all known mail drops for mail that is waiting for you.  It displays whether you have mail waiting to be read or not and
       shows the date that you last read your mail.

       You can check other user's maildrops by specifying their user names as the users argument on the command line.

Options
       -help	 Prints a list of the valid options for this command.

       -date
       -nodate	 Prints the date when you last read your mail.	This is the default behavior of The -nodate option can be used of you do not  want
		 to print this date.

       -notify
       -nonotify Indicates  under  what circumstances should produce a message.  There are three legal values: all, mail, and nomail.  The default
		 is -notify all, which reports the status of the maildrop regardless of whether it has mail in it or not.  The -notify mail option
		 reports  the  status of the maildrop only if there is mail waiting.  The -notify nomail option reports the status of the maildrop
		 only if there is no mail in it.

       -source file
		 Specifies the source which are checked for mail.  The only value allowed is file, which is the user's maildrop.  Additional  val-
		 ues are supported only for use with other mail systems.

Restrictions
       does  not  understand the $MAILDROP environmental variable.  If mail is fetched from a location other than will not be able to determine if
       new mail has arrived.  However, can still be used to fetch mail when it arrives.

       For this version, the -source option only supports the value file.  Additional values are supported for use only with other mail systems.

Examples
       This example shows a user Smith checking his own maildrop:
       % msgchk
       Smith:
	  New file source mail waiting ; last read on Tue, 07 Jun 88 17
       :21:49 WET

       The next example shows a user checking the maildrops of two other local users on the same system, Rabb and Jones:
       % msgchk Rabb Jones
       Rabb:
	  No file-source mail waiting ; last read on Tue, 07 Jun 13:22:
       25 WET
       Jones:
	  New file source mail waiting ; last read on Tue, 07 Jun 17:30
       :05 WET

Files
       The user profile.

       The system customization file.

       The user's maildrop.

See Also
       inc(1mh)

																       msgchk(1mh)
All times are GMT -4. The time now is 04:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy