09-03-2010
Nothing obviously wrong at first glance! I'd suggest running it through the debugger and checking the accuracy of the regex.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm looking for a sample of some code that will take the output from a file and generate an email that will include that text as an attachment. the script is in the borne shell. any help? (2 Replies)
Discussion started by: davels
2 Replies
2. Shell Programming and Scripting
I searched through the forum and couldn't quite find what I was looking for. I have a script that looks for a process "DW" to be running. If it is not it will email a notice to an account. I would like to add the functionality to have it also email a seperate notice if there is more that one of... (1 Reply)
Discussion started by: heprox
1 Replies
3. AIX
Hi,
I have .ksh file which internally calls a .sql file. This sql file writes a file with the result. I am using the following command to send email with the result file as attachment
uuencode file.txt file.txt | mail -s "Subject" abc@abc.com.
When i run the .ksh file i get a message you... (5 Replies)
Discussion started by: piyushprabhakar
5 Replies
4. Shell Programming and Scripting
Hello,
I created the following script but i'm trying to figure out why i keep getting an error.
#!/usr/bin/perl -w
use strict;
use warnings;
my $baseDir = '/export/home/omcadmin/bin';
my $attachment = "$baseDir/message.txt";
my $from = 'xxx@xxx.com';
my $to = 'xxx@xxx.com';
my... (10 Replies)
Discussion started by: xmaverick
10 Replies
5. Shell Programming and Scripting
I am trying to send an email body of information and also attachment using perl script, but I am only able to send the body but not an attachment. is there around it without using "use MIME::Lite;" module.
$user = "bataf\@xyz.com";
$subjectt = "mail from perl";
open(MAIL, "| mailx -s... (1 Reply)
Discussion started by: bataf
1 Replies
6. Shell Programming and Scripting
Hi,
I had search the web for a script to download email, but failed to found one.
I need a bash or perl script that will check for email originating from an address such as john@rambo.com and download the .zip attachment into a specified folder.
Anyone could assist or give me some... (1 Reply)
Discussion started by: mynullvoid
1 Replies
7. Solaris
I'm trying to send a .zip file from my unix box to my work email (email client outlook)
The file name that I'm trying to sent is sites.zip and this is how I do it:
uuencode sites.zip | mailx -s "testing" myname@mydomain.com
When I open the .zip, the zip is empty. Looking around the we, I... (17 Replies)
Discussion started by: amb1s1
17 Replies
8. Shell Programming and Scripting
autorep -m bogus
Machine Name Max Load Current Load Factor O/S Status
___________ ________ ___________ ______ ________ ______
bogus --- --- 1.00 Sys Agent Online
Status
______
Online
Offline
Missing
Unqualified
The "Status" always "Online". I like create a script execute run... (6 Replies)
Discussion started by: dotran
6 Replies
9. UNIX for Dummies Questions & Answers
Good Day
Kindly assist:
I am creating an Alert that will notify supervisors of staff members who are due for probation report. I am using Operating System Script(Unix) as source.I have already developed the script.
Now the challenge is if there are 3 employee records then the alert... (2 Replies)
Discussion started by: nosi27
2 Replies
10. Shell Programming and Scripting
Hello Guys,
Here is the requirement!!
I want to check the mail with attachment received or not through unix scripting.
And send an notification email when mail with attachment already received.
Any thoughts on this is much appreciated!!
Regards,
Harry (0 Replies)
Discussion started by: dharry2017
0 Replies
LEARN ABOUT DEBIAN
lr_getbody
LR_GETBODY.IN(1) LogReport's Lire Documentation LR_GETBODY.IN(1)
NAME
lr_getbody - Extract file, sender and subject information from an email
SYNOPSIS
eval `lr_getbody [-c content-type] <messagefile>`
DESCRIPTION
lr_getbody reads an email message on stdin (or specified as argument), will extract the submitter address and the subject from that email.
It will also extract the biggest attachment or the first one having a content-type matching the content-type argument.
This information is passed to the caller by printing that information in a format suitable for eval. The following variable will be printed
on STDOUT:
lr_getbody_SUBMITTER
Email address of the submitter. That is the first email that is found in the headers (searched in the following order): Reply-To, From,
Sender. This will only contains the address portion (without the <>).
lr_getbody_TO
The email address to which the email was sent.
lr_getbody_SUBJECT
Subject of the message. That string is sanitized.
lr_getbody_DATE
The date of the message. That string is sanitized.
lr_getbody_FILE
Path to the temporary file holding the found attachment.
lr_getbody_OK
This will be set if the operation was completed successfully. It is possible for lr_getbody to fail to extract the attachment, but the
header information might still be available.
This script is used by lr_processmail(1) and lr_rawmail2mail(1).
VERSION
$Id: lr_getbody.in,v 1.10 2006/07/23 13:16:33 vanbaal Exp $
COPYRIGHT
Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
AUTHOR
Francis J. Lacoste <flacoste@logreport.org>
Lire 2.1.1 2006-07-23 LR_GETBODY.IN(1)