10 More Discussions You Might Find Interesting
1. Red Hat
hi
I installed Openvas we have the following problem
internet Connection is Ok
Even Reinstall the problem is not resolved
Openvas Setup, Version: 0.5
Step 1: Update NVT's and SCAP data
Please note this step could take some time.
Once completed, NVT's and SCAP data will be updated... (12 Replies)
Discussion started by: mnnn
12 Replies
2. UNIX for Dummies Questions & Answers
Hi there, I am in need to compile an old project for cygwin, but it needs some old packages to compile. I tried to download the x86 setup.exe from cygwin web site. Then downloaded the old packages from various sites and put it in an empty directory I run the setup.exe file and install from local... (1 Reply)
Discussion started by: lucky7456969
1 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I have been trying to setup a email server here at home, for me and a few friends. Nothing fancy, just a super basic - but secure - email server.
I have been having trouble over the course of the past 2-3 weeks fumbling through various online tutorials. It shouldn't be SO hard =)
... (0 Replies)
Discussion started by: jalisco
0 Replies
4. UNIX for Advanced & Expert Users
Hello,
Firstly, I am using Debian 7.1, updated (as of today), I installed postfix, sasl, and dovecot. I have read through various online tutorials and quick installation guides, videos etc. And, ventured into the actual text of postfix, sasl and dovecot.
Everything is installed and "appears"... (5 Replies)
Discussion started by: jalisco
5 Replies
5. UNIX for Dummies Questions & Answers
I have a Solaris box that I need to enable outgoing email from alarm purposes. How do I do that so the command echo "test this email" | mailx test@address.com will go through?
---------- Post updated at 02:24 PM ---------- Previous update was at 02:04 PM ----------
Needed to open port 25/smtp... (1 Reply)
Discussion started by: SIFT3R
1 Replies
6. Shell Programming and Scripting
Hi All,
I am using Mac OS X (Leopard OS). I am very new to UNIX. My requirement is that, by running a shell script, I create a log file. So I have to send a mail having that log file attached. What I tried to do is, I simply tried to check,whether this direct command works or not. So I... (2 Replies)
Discussion started by: Afreen
2 Replies
7. Infrastructure Monitoring
Hi, I recently research on how auto-mailing to notify the increase of storage size. I try avoid schedule/routine checkup the storage to determine increase the storage size. It is time-consuming. Any comment on how to get the storage size %? and automatically trigger mailing function instead... (16 Replies)
Discussion started by: i-counsellor
16 Replies
8. SCO
Hello,
How do a schedule a reboot of a SCO 5.0 box like every wednesday at 3:30 am. Doesn't have a /etc/crontab file like our Suse boxes have. Thanks for any help. (6 Replies)
Discussion started by: benefactr
6 Replies
9. Shell Programming and Scripting
Hi guys,
I'm trying to write a small script that sets up RAID using MDADM without asking user for any input.
Here's what I'm doing:
start=`mdadm --create $2 --level=$3 --raid-devices=$4 $5 $6 << MAYDAY
y
MAYDAY`
When I it, I get this
./redundancy -setup /dev/md0 1 2 /dev/files/test0... (3 Replies)
Discussion started by: alirezan
3 Replies
10. SuSE
I setup SUSE Linux 10.
I downloaded from SUSE website. A DVD version.
But I have a problem:
Please click to see the screen shots
Shot 1: (Problem is here, with Software)
http://www.vernoos.net/shot-1.jpg
Shot 2:
http://www.vernoos.net/shot-2.jpg
Shot 3:... (1 Reply)
Discussion started by: HASSELBLAD
1 Replies
Email::Abstract(3pm) User Contributed Perl Documentation Email::Abstract(3pm)
NAME
Email::Abstract - unified interface to mail representations
SYNOPSIS
my $message = Mail::Message->read($rfc822)
|| Email::Simple->new($rfc822)
|| Mail::Internet->new([split /
/, $rfc822])
|| ...
|| $rfc822;
my $email = Email::Abstract->new($message);
my $subject = $email->get_header("Subject");
$email->set_header(Subject => "My new subject");
my $body = $email->get_body;
$rfc822 = $email->as_string;
my $mail_message = $email->cast("Mail::Message");
DESCRIPTION
"Email::Abstract" provides module writers with the ability to write simple, representation-independent mail handling code. For instance, in
the cases of "Mail::Thread" or "Mail::ListDetector", a key part of the code involves reading the headers from a mail object. Where
previously one would either have to specify the mail class required, or to build a new object from scratch, "Email::Abstract" can be used
to perform certain simple operations on an object regardless of its underlying representation.
"Email::Abstract" currently supports "Mail::Internet", "MIME::Entity", "Mail::Message", "Email::Simple" and "Email::MIME". Other
representations are encouraged to create their own "Email::Abstract::*" class by copying "Email::Abstract::EmailSimple". All modules
installed under the "Email::Abstract" hierarchy will be automatically picked up and used.
METHODS
All of these methods may be called either as object methods or as class methods. When called as class methods, the email object (of any
class supported by Email::Abstract) must be prepended to the list of arguments, like so:
my $return = Email::Abstract->method($message, @args);
This is provided primarily for backwards compatibility.
new
my $email = Email::Abstract->new($message);
Given a message, either as a string or as an object for which an adapter is installed, this method will return a Email::Abstract object
wrapping the message.
If the message is given as a string, it will be used to construct an object, which will then be wrapped.
get_header
my $header = $email->get_header($header_name);
my @headers = $email->get_header($header_name);
This returns the values for the given header. In scalar context, it returns the first value.
set_header
$email->set_header($header => @values);
This sets the $header header to the given one or more values.
get_body
my $body = $email->get_body;
This returns the body as a string.
set_body
$email->set_body($string);
This changes the body of the email to the given string.
WARNING! You probably don't want to call this method, despite what you may think. Email message bodies are complicated, and rely on
things like content type, encoding, and various MIME requirements. If you call "set_body" on a message more complicated than a single-part
seven-bit plain-text message, you are likely to break something. If you need to do this sort of thing, you should probably use a specific
message class from end to end.
This method is left in place for backwards compatibility.
as_string
my $string = $email->as_string;
This returns the whole email as a decoded string.
cast
my $mime_entity = $email->cast('MIME::Entity');
This method will convert a message from one message class to another. It will throw an exception if no adapter for the target class is
known, or if the adapter does not provide a "construct" method.
object
my $message = $email->object;
This method returns the message object wrapped by Email::Abstract. If called as a class method, it returns false.
Note that, because strings are converted to message objects before wrapping, this method will return an object when the Email::Abstract was
constructed from a string.
PERL EMAIL PROJECT
This module is maintained by the Perl Email Project
<http://emailproject.perl.org/wiki/Email::Abstract>
AUTHOR
Casey West, <casey@geeknest.com>
Simon Cozens, <simon@cpan.org>
Ricardo SIGNES, <rjbs@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2004 by Simon Cozens
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-02-18 Email::Abstract(3pm)