The main problem with overriding or renaming mailx is how to read the attachment file from the origional command line as
How in the shell script I can read the attachment file - abcd.txt so that I can send the same mail to my email address at place of abc@xyz.com.
Regards
Shubham
Last edited by Franklin52; 12-14-2012 at 03:33 AM..
Reason: Please use code tags for data and code samples
Hi friends,
i have seen the following line in some unix shell script .
can some one explain me what exactly the statement is meant for ?
=========================================================
mailx -s " Master Data Transmission Report for $TODAY at $TIME " < /etc/tr/tmp/$tmplog... (5 Replies)
Hi,
mailx -s "hi" -r "abc@yahoo.com" aaa@yahoo.com<<EOF
Hi,
~<!uuencode a.txt a.txt
EOF
the above code is sending mails, but attachment is not going instead i just get like below
~<!uuencode a.txt a.txt
Thanks. (3 Replies)
Dear All,
I need to send a mail to a group ( the address of which is in a .profile file)..My basic mailing functionality isn't working. When i try to run
mailx -s "Hello" abc@xyz.com the command does not return to the prompt an runs infinitely.
Request you to help me out here along with... (3 Replies)
hi,
i want to pass a unix variable as the subject of the mail alongwith a string. My part of code is as below..
week_end_dt=`sqlplus -s rsamart@martdev.world/rsamart<<EOF
SET FEED OFF;
SET TIMING OFF;
SET HEADING OFF;
SET PAGESIZE 500;
SET LINESIZE 1000;
select... (14 Replies)
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
HI All,
I have an unix server , where sendmail command works for sending mail.
But if i use mailx command it is not working.
Is there any specific settings needed for this.
Kindly help.
Thanks and Regards
Rj (1 Reply)
Dear all,
Every time if i use mailx it is asking for entering the From Address.
I want to set it in some place, So that it will take it by default whenever we send mails.
Pl help on this.
Regards
JeganR (2 Replies)
Hi,
I am seeing that this command is sending mail even when the nawk command in untrue ( does not have any output ). I only want it to send mail, where it goes above the threshold, and has some output.
nawk -F'(MOD dn="uid=)|(DEL dn="uid=)|' '/(MOD dn="uid=)|(DEL dn="uid=)/... (2 Replies)
How can i override options of rm command ??
and how can i implement my own options
when we delete file using rm commad it will not delete file it has to move some folder....plz suggest some solution. (10 Replies)
I need to do below in mailx :
1. to list
2. CC list (I am using tilde command for this)
3. -r option
4. attach .csv file
Below is the command i am using :
( echo '~c abc@xyz.com'; cat mailtext.txt; uuencode attach.csv attach.csv) | mailx -s "${SUBJECT}" -r "abc@xyz.com" -m ${MAIL_LIST}... (4 Replies)
Discussion started by: ManOfSteel
4 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)