05-16-2010
Your post is somewhat vague and warrants a vague response.
In general unix mail successfully received by sendmail on HP-UX is held in named files in directory /var/mail where the filename is the username. It is usually safe to null a mail file with ">mailfilename". Providing that you avoid filenames which are the same as unix usernames it is usually safe to copy a mailfile within /var/mail prior to nulling the original file.
Of you are talking about undelivered mail stuck in directory /var/spool/mailq it becomes more complicated.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear friends:
I have these data files:
fileaa
fileab
fileac
filead
I want to email these file to someone. How can I email EACH SINGLE FILE with a wild card character?
mail john@mail.com<fileaa
mail john@mail.com<fileab
...............................ac... (4 Replies)
Discussion started by: bobo
4 Replies
2. UNIX for Dummies Questions & Answers
I have a program the will split a large file into smaller files. It works great. I, however, have problem of email these file out to other people:
I may have 1 or more files afer SPLIT
datafileaa
datafileab
datafileac
manually:
mailx -s "data" email@email.com<datafileaa
mailx -s... (5 Replies)
Discussion started by: bobo
5 Replies
3. Shell Programming and Scripting
Hi,
I would like to send an email with more than one attachement. I am using uuencode. I want to achive by suing uuencode. Also please let me know other ways.
-Thambi (7 Replies)
Discussion started by: thambi
7 Replies
4. UNIX for Dummies Questions & Answers
I am trying to find the email log file that would have info on users downloading their pop mail. Our email is hosted on a unix server running apache. I am not sure the exact version of mail software running, but when I telnet to the mail server the response I get is this "+OK POP3 v2003.83rh... (3 Replies)
Discussion started by: mstarcom
3 Replies
5. Shell Programming and Scripting
Hey folks
Thank you for helping me.I find this website so useful and handy.My latest issue is about notifying change in files say file.txt,file2.sh ...etc to a group of people using sendmail.We are using bash here.
--CoolKid (4 Replies)
Discussion started by: coolkid
4 Replies
6. Shell Programming and Scripting
Hi,
New to Unix and trying to do something -
I am trying to zip bunch of file and email -
/sbin/sh
If i use mail then I can not specify subject -
uuencode file.zip file.zip | mail -s "testfile" mailadd@group.com
Error is - mail: illegal option -- s
If i use mailx then I can specify... (7 Replies)
Discussion started by: bhush782003
7 Replies
7. Shell Programming and Scripting
Hi,I would like to send all the files in a particular folder to an e-mail id .I am able to send a particular file via email but that gets displayed in the email as content using the mailx option. I just want to view it in the mailbox as an attached file. Could you please help me out in... (1 Reply)
Discussion started by: arunkumarmc
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I need to zip 4 files and send an email attaching the zipped files...
Pls help..
Win
---------- Post updated at 10:49 AM ---------- Previous update was at 10:36 AM ----------
Hi,
I need to convert 4 text files into xls,zip these 4 files and send an email attaching the... (2 Replies)
Discussion started by: win4luv
2 Replies
9. UNIX for Dummies Questions & Answers
Dear Members,
I am trying to send a file as an attachment from the command prompt in Linux.
I am using the following:
(echo "Find attached Exception Report"; uuencode $DATA_TOP/out/data/$err_rpt_file $err_rpt_file)|/bin/mailx -s "***Exceptions Found" davidk@xyz.com Here err_rpt_file... (2 Replies)
Discussion started by: sandeep_1105
2 Replies
10. UNIX for Beginners Questions & Answers
Hi all,
we have a requirement , we need to check the files availability in the unix folder and their record counts need to be emailed as attached format
Files Count
File_1 123
File_2 1898
File_3 29
File_4 456
File_5 123 (2 Replies)
Discussion started by: KK230689
2 Replies
LEARN ABOUT DEBIAN
email::messageid
Email::MessageID(3pm) User Contributed Perl Documentation Email::MessageID(3pm)
NAME
Email::MessageID - Generate world unique message-ids.
SYNOPSIS
use Email::MessageID;
my $mid = Email::MessageID->new->in_brackets;
print "Message-ID: $midx0Ax0D";
DESCRIPTION
Message-ids are optional, but highly recommended, headers that identify a message uniquely. This software generates a unique message-id.
METHODS
new
my $mid = Email::MessageID->new;
my $new_mid = Email::MessageID->new( host => $myhost );
This class method constructs an Email::Address object containing a unique message-id. You may specify custom "host" and "user" parameters.
By default, the "host" is generated from "Sys::Hostname::hostname".
By default, the "user" is generated using "Time::HiRes"'s "gettimeofday" and the process ID.
Using these values we have the ability to ensure world uniqueness down to a specific process running on a specific host, and the exact time
down to six digits of microsecond precision.
create_host
my $domain_part = Email::MessageID->create_host;
This method returns the domain part of the message-id.
create_user
my $local_part = Email::MessageID->create_user;
This method returns a unique local part for the message-id. It includes some random data and some predictable data.
in_brackets
When using Email::MessageID directly to populate the "Message-ID" field, be sure to use "in_brackets" to get the string inside angle
brackets:
header => [
...
'Message-Id' => Email::MessageID->new->in_brackets,
],
Don't make this common mistake:
header => [
...
'Message-Id' => Email::MessageID->new->as_string, # WRONG!
],
SEE ALSO
Email::Address, Time::HiRes, Sys::Hostname, perl.
PERL EMAIL PROJECT
This module is maintained by the Perl Email Project.
<http://emailproject.perl.org/wiki/Email::MessageID>
AUTHOR
Casey West, <casey@geeknest.com>.
COPYRIGHT
Copyright (c) 2004 Casey West. All rights reserved.
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
perl v5.10.1 2010-07-15 Email::MessageID(3pm)