7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I 'm trying to find a way to send my contents of a file as a body of email in the format shown below. However, the format of the contents are messed up when I receive the email.
---------------------------------------------------------------------------------------------------------... (2 Replies)
Discussion started by: shash
2 Replies
2. UNIX for Dummies Questions & Answers
Hi
I am using the below command to send mail from unix with body as well as attachment.
But the attachment is in encoded form in the body itself.
I am not receiving as attachment:
(cat body_success.txt;uuencode Log.txt Log.txt)| mailx -s "success" $ToID
I am receiving... (5 Replies)
Discussion started by: pandeesh
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
i am trying the below script for sending mail.
if
then
count=`cat $sfile|wc -l`
echo "There are $count abends.Please take care " > body.txt
(cat body.txt;uuencode $sfile $sfile) | mailx -s "Alert:there are failures" pandeesh@gmail.com
fi
In the mail, i am getting like:
... (4 Replies)
Discussion started by: pandeesh
4 Replies
4. AIX
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
5. SCO
I wish to mount a USB pen drive to allow me copy files from the pc to the pen drive.
when I insert the dirve I get a message
umass Attached: Kingston DataTraveler 2.0, rev 2.0, usb_id 2
The version of unix is SCO_SV.
I cannot see any new file in the /dev folder. I was looking for... (5 Replies)
Discussion started by: ralph2010
5 Replies
6. UNIX for Dummies Questions & Answers
Please help...I forgot how to do a linecount in Solaris. I'm list a report & I'm trying to count how many instances.
Also, I need to read & clean up mail for root. What directory is that again.
Thanks (3 Replies)
Discussion started by: Remi
3 Replies
7. UNIX for Dummies Questions & Answers
Don't know if this is too in-depth for the ".. Dummies .." forum, but I figured I'd try this one first.
I have a file from a client that I need to save to our UNIX server. If the file is sent as an email attachment from UNIX (via command line or Twiggi Mail), the following occurs: if the... (0 Replies)
Discussion started by: jumpinfallout
0 Replies
LEARN ABOUT SUSE
mmdf_mutt
mmdf(5) User Manuals mmdf(5)
NAME
MMDF - Multi-channel Memorandum Distribution Facility mailbox format
DESCRIPTION
This document describes the MMDF mailbox format used by some MTAs and MUAs (i.e. scomail(1)) to store mail messages locally.
An MMDF mailbox is a text file containing an arbitrary number of e-mail messages. Each message consists of a postmark, followed by an e-
mail message formatted according to RFC822 / RFC2822, followed by a postmark. The file format is line-oriented. Lines are separated by line
feed characters (ASCII 10). A postmark line consists of the four characters "^A^A^A^A" (Control-A; ASCII 1).
Example of a MMDF mailbox holding two mails:
^A^A^A^A
From: example@example.com
To: example@example.org
Subject: test
>From what I learned about the MMDF-format:
^A^A^A^A
^A^A^A^A
From: example@example.com
To: example@example.org
Subject: test 2
bar
^A^A^A^A
In contrast to most other single file mailbox formats like MBOXO and MBOXRD (see mbox(5)) there is no need to quote/dequote "From "-lines
in MMDF mailboxes as such lines have no special meaning in this format.
If the modification-time (usually determined via stat(2)) of a nonempty mailbox file is greater than the access-time the file has new mail.
Many MUAs place a Status: header in each message to indicate which messages have already been read.
LOCKING
Since MMDF files are frequently accessed by multiple programs in parallel, MMDF files should generally not be accessed without locking.
Three different locking mechanisms (and combinations thereof) are in general use:
o fcntl(2) locking is mostly used on recent, POSIX-compliant systems. Use of this locking method is, in particular, advisable if MMDF
files are accessed through the Network File System (NFS), since it seems the only way to reliably invalidate NFS clients' caches.
o flock(2) locking is mostly used on BSD-based systems.
o Dotlocking is used on all kinds of systems. In order to lock an MMDF file named folder, an application first creates a temporary
file with a unique name in the directory in which the folder resides. The application then tries to use the link(2) system call to
create a hard link named folder.lock to the temporary file. The success of the link(2) system call should be additionally verified
using stat(2) calls. If the link has succeeded, the mail folder is considered dotlocked. The temporary file can then safely be
unlinked.
In order to release the lock, an application just unlinks the folder.lock file.
If multiple methods are combined, implementors should make sure to use the non-blocking variants of the fcntl(2) and flock(2) system calls
in order to avoid deadlocks.
If multiple methods are combined, an MMDF file must not be considered to have been successfully locked before all individual locks were
obtained. When one of the individual locking methods fails, an application should release all locks it acquired successfully, and restart
the entire locking procedure from the beginning, after a suitable delay.
The locking mechanism used on a particular system is a matter of local policy, and should be consistently used by all applications
installed on the system which access MMDF files. Failure to do so may result in loss of e-mail data, and in corrupted MMDF files.
CONFORMING TO
MMDF is not part of any currently supported standard.
HISTORY
MMDF was developed at the University of Delaware by Dave Crocker.
SEE ALSO
scomail(1), fcntl(2), flock(2), link(2), stat(2), mbox(5), RFC822, RFC2822
AUTHOR
Urs Janssen <urs@tin.org>
Unix February 18th, 2002 mmdf(5)