9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to extract a subject from a mail message but my subject example has 2 lines. How can I manage to extract it and write a string at the end of it?
Consider this example:
From: test@domain.com
Subject: Re: U =?ISO-8859-1?Q?qu=EA=3F!=3F!=3F!!_wtff_=E7=E3o_=ED=F3?=
... (6 Replies)
Discussion started by: twisterbr
6 Replies
2. Shell Programming and Scripting
#!/bin/sh
cd /u02/app/ccalloc/dev/in
CURDIR=`pwd`
echo directory listing of $CURDIR
echo
ls -latr
i have a basic shell script that displays a specific files on a directory. when the script is run and it does not find the file in the directory it display a first line message of
how... (3 Replies)
Discussion started by: wtolentino
3 Replies
3. UNIX for Dummies Questions & Answers
Hi I would like to know how interpret line by line a return mail message sent by unix mailer-daemon (2 Replies)
Discussion started by: alcvrjo
2 Replies
4. Shell Programming and Scripting
Hi all,
i am working with CSH, i want to know that
how to send a mail in UNIX shell script (CSH) with attachment as well as message body.
i know that how to send a mail with attachment and message body. but i want know both things in a single mail
Suggession would be appreciate.
... (1 Reply)
Discussion started by: psiva_arul
1 Replies
5. Shell Programming and Scripting
i have two files --file1 and file2--
how should i send both the contents of files as a message in the mail body
ali@unix.com
i have written the script
----------------------------
#!/bin/ksh
mail -s "the two files are" ali@unix.com < file1 < file2... (2 Replies)
Discussion started by: ali560045
2 Replies
6. Shell Programming and Scripting
Hi,
I have the following small script. How can I just print out the string with missing message and send to hotmail.com? Also,
can i set the message a bit more beautiful such as "Dear All, the following list is missing in our system"?
#!/bin/sh
MSG=/log
cat list11.txt |
awk ' BEGIN { flag... (2 Replies)
Discussion started by: happyv
2 Replies
7. Shell Programming and Scripting
Hi
When I make change in crontab entries , I get below message as a mail. Can any one tell me what this indicates?
*********************************************
From wlsdev05 Fri Sep 22 02:11:23 2006
Date: Fri, 22 Sep 2006 02:11:23 -0400 (EDT)
From: "Geff Thomson - " <wlsdev05>... (1 Reply)
Discussion started by: pankajkrmishra
1 Replies
8. Shell Programming and Scripting
Hi,
I use MIME::Lite to send an e-mail with an attachment:
$msg = MIME::Lite->new(
From =>$usermail,
To =>$tomail,
Subject =>'Nieuw Pegasus Adresboek',
Type =>'multipart/mixed'
);
$msg->attach(Type =>'TEXT',
Data =>$message
);
$msg->attach(Type =>'text/plain',
Path... (4 Replies)
Discussion started by: tine
4 Replies
9. UNIX for Dummies Questions & Answers
First of all: Hi all, i´m a new unix user and i´m swedish so please bare with me.
When i generate an e-mail on a unix server and send it through novell netware 5, i loose the swedish characters å, ä and ö in the body of the message, however they remain in the subject row.
What to do? Anyone?... (4 Replies)
Discussion started by: de98luto
4 Replies
Mail::Message::Convert::TextAutoformat(3pm) User Contributed Perl Documentation Mail::Message::Convert::TextAutoformat(3pm)
NAME
Mail::Message::Convert::TextAutoformat - Reformat plain text messages
INHERITANCE
Mail::Message::Convert::TextAutoformat
is a Mail::Message::Convert
is a Mail::Reporter
SYNOPSIS
use Mail::Message::Convert::TextAutoformat;
my $af = Mail::Message::Convert::TextAutoformat->new;
my $beautified_body = $af->autoformatBody($body);
DESCRIPTION
Play trics with plain text, for instance bodies with type "text/plain" using Damian Conway's Text::Autoformat.
Converters between message objects
Other converters
METHODS
Constructors
Mail::Message::Convert::TextAutoformat->new(OPTIONS)
-Option --Defined in --Default
fields Mail::Message::Convert <see description>
log Mail::Reporter 'WARNINGS'
options { (all, 1) }
trace Mail::Reporter 'WARNINGS'
fields => NAMES|ARRAY-OF-NAMES|REGEXS
log => LEVEL
options => HASH-REF
Options to pass to Text::Autoformat, when its "autoformat" method is called.
trace => LEVEL
Converting
$obj->autoformatBody(BODY)
Formats a single message body (a Mail::Message::Body object) into a new body object using Text::Autoformat. If the Text::Autoformat is
not installed, "undef" is returned.
$obj->selectedFields(HEAD)
See "Converting" in Mail::Message::Convert
Error handling
$obj->AUTOLOAD()
See "Error handling" in Mail::Reporter
$obj->addReport(OBJECT)
See "Error handling" in Mail::Reporter
$obj->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK])
Mail::Message::Convert::TextAutoformat->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK])
See "Error handling" in Mail::Reporter
$obj->errors()
See "Error handling" in Mail::Reporter
$obj->log([LEVEL [,STRINGS]])
Mail::Message::Convert::TextAutoformat->log([LEVEL [,STRINGS]])
See "Error handling" in Mail::Reporter
$obj->logPriority(LEVEL)
Mail::Message::Convert::TextAutoformat->logPriority(LEVEL)
See "Error handling" in Mail::Reporter
$obj->logSettings()
See "Error handling" in Mail::Reporter
$obj->notImplemented()
See "Error handling" in Mail::Reporter
$obj->report([LEVEL])
See "Error handling" in Mail::Reporter
$obj->reportAll([LEVEL])
See "Error handling" in Mail::Reporter
$obj->trace([LEVEL])
See "Error handling" in Mail::Reporter
$obj->warnings()
See "Error handling" in Mail::Reporter
Cleanup
$obj->DESTROY()
See "Cleanup" in Mail::Reporter
$obj->inGlobalDestruction()
See "Cleanup" in Mail::Reporter
DIAGNOSTICS
Error: Package $package does not implement $method.
Fatal error: the specific package (or one of its superclasses) does not implement this method where it should. This message means that
some other related classes do implement this method however the class at hand does not. Probably you should investigate this and
probably inform the author of the package.
SEE ALSO
This module is part of Mail-Box distribution version 2.105, built on May 07, 2012. Website: http://perl.overmeer.net/mailbox/
LICENSE
Copyrights 2001-2012 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See
http://www.perl.com/perl/misc/Artistic.html
perl v5.14.2 2012-05-07 Mail::Message::Convert::TextAutoformat(3pm)