03-20-2008
If by "recall" you mean stop an outgoing email then not in mailx, but if you have rw access to the /var/spool/mqueue (or similar directory) and are quick, you might be able to delete the spooled email before it is sent.
If by "recall" you mean undelete then the 'pre' command in mailx will put it back in the mail as unread.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear All,
I am using HP-UNIX. I want to specify host in mailx command line.
A -> B
I am in Server A. And run a mailx command line to send mail to abc@xyz.com. But Server A don't know where xyz.com is.
It needs to send this mail to Server B to help him to send mail to... (1 Reply)
Discussion started by: wilsonchan1000
1 Replies
2. UNIX for Dummies Questions & Answers
I have used the forum to determine the format required to send attachments from hp-ux 11. the problem I have is that using mailx does not attach the file, but subsititing mailx for mail on the command line attaches the file but i'm not able to specify a subject?
The attachment has been convert... (3 Replies)
Discussion started by: brettmartin99
3 Replies
3. UNIX for Advanced & Expert Users
Hi ,
I am using mailx command for sending the mails. Rightnow I am sending the attachment (by using uuencode $filename) as a seperate mail.I wanna send the attachment also with the same mail. (6 Replies)
Discussion started by: sharif
6 Replies
4. Shell Programming and Scripting
while trying to send a mail, though the output file doesn't contain any exclamatory mark(!), i am getting that in the mail with an extra line. please help me out from this ASAP. (3 Replies)
Discussion started by: pvamsikr
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I sending mail like this:
mailx -s "test" -r "from@me.com" to@you.com
and I have update the /etc/mail/sendmail.cf with:
DSsmtp-relay-nx-vip.xxx.yyy.com (this path is working on the old server)
But all I mail goes to queue.
What do I miss here?
Regards
Mehrdad (1 Reply)
Discussion started by: mehrdad68
1 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I have a unix server on which mailx is configured . Earlier i was getting proper mails but now some mails are getting stuck and i am not receiving the emails from the server.
I can see the mails in mailq.
Can you please help me with this . How can i receive these emails? (2 Replies)
Discussion started by: pratikm23
2 Replies
7. Shell Programming and Scripting
Hi All,
I am using mailx to send the mail. Due to some changes in the requirement, I need to send the mail to CC only (an Email id in CC), with no email ID in "TO" field. Can we do that? bcz I used -c flag only and got the message:":The flags you gave make no sense since you're not sending... (2 Replies)
Discussion started by: unankix
2 Replies
8. Solaris
Hi ,
I'm trying to send a mail from a sunOS machine that is within hp network to my email: eman.el-badawy@hp.com ,the user trying to send
is 'project',,but seems the mail address can not be resolved
checking /var/log/syslog i got the following:
Dec 25 14:34:02 svddev15 sendmail: ... (1 Reply)
Discussion started by: Eman_in_forum
1 Replies
9. Shell Programming and Scripting
Hi All,
I am trying to send a mail from linux server but could'nt able to send the mail.
I tried the below syntax's so far but no luck.
mail -s “Hello world” abc@xyz.com < /usr/g/txt.log
cat "txt.log" | mailx -s "Hello world" abc@xyz.com
mailx -s “Hello world” abc@xyz.com <... (2 Replies)
Discussion started by: scriptscript
2 Replies
10. Red Hat
Whats the difference between mail and mailx?
I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL)
... (1 Reply)
Discussion started by: RedSpyder
1 Replies
LEARN ABOUT DEBIAN
mime-tool
MIME message tool(1) General Commands Manual MIME message tool(1)
NAME
mime-tool - a simple program to construct MIME messages with attached files
SYNOPSIS
mime [ -dDvV ] [ -S subject ] [ -F from-address ] [ -T to-address ] [ -C carbon-copy address ] [ -P prolog-text ] [ -E epiplogue-text ] [
-B boundry ] [ -O overall content-type ] { [ -78abiquxopm ] [ -t content-type ] filename }
DESCRIPTION
The mime program constructs MIME messages with attached files. The user can specify the content type (application/octet-stream, text/plain
or a user specified type), content type encoding (7bit, 8bit, binary, base64 and auto-detect), content disposition (attached or inline) and
the content boundry string. The user can also specify some mail related options: subject, from-address, to-addres, carbon-copy addres,
prolog-text and epilog-text.
The output of the MIME-tool program can be sent directly to the mail, mailx or sendmail commands (or any other command that accepts RFC-822
formatted messages).
NOTE: Specifying 7-bit encoding for an attachment that contains 8-bit data will convert any data bytes whose high-bit is set to question
marks.
OPTIONS
-7 7-bit ASCII encoding
-8 8-bit ASCII encoding
-a application/octet-stream content type
-b binary encoding
-d low detail debugging
-D high detail debugging
-s write a subpart
-i disposition: inline (instead of attachment)
-q quoted-printable encoding
-c content-type
explicit content type
-t text/plain content type
-o omit disposition line
-u unknown encoding, auto-detect
-v verbose messages
-V very verbose messages
-x base64 encoding
-p copy existing MIME part
-o omit content-disposition
-m omit content-transfer-encoding
-n filename
override the filename in the disposition header
-N don't add a filename parameter in the disposition header
-0 no-op
EXAMPLES
Using MIME-tool to write a mail message to a file:
mime -S "test message" -F me@foo.net -T someone@somewhere.net file1 > test.msg
Using MIME-tool with the mail command:
mime -S "test message" -F me@foo.net file1 | mail someone@somewhere.net
Using MIME-tool with the mailx command:
mime -S "test message" -F me@foo.net file1 | mailx someone@somewhere.net
Using MIME-tool with the sendmail command:
mime -S "test message" -F me@foo.net file1 | sendmail someone@somewhere.net
VERSION
This is version 1.5.topal3 from June 2009.
KNOWN BUGS
Most of the header values are not properly quoted or folded, so long or complex values for these headers may cause problems. Specifically,
the from-address, to-address, carbon-copy-address and content-type headers may not be properly quoted or folded.
For some reason, certain e-mail clients (espcially from a large software company located in Redmond, Washington) don't seem to recognize
file attachments as attachments, but instead displays them as inline attachments. (maybe this isn't MIME-tool's fault, but I've gotten a
few e-mails about it, so I'm mentioning it here)
AUTHOR
mime is written by Jeffrey Dutky <dutky@bellatlantic.net>
Oscar Esteban spotted an off-by-one error in the base64 encoding function.
Sergey Lapin spotted a bug in the filename header construction.
Chris Hemphill noticed that the documentation (this manual page and the README file) didn't include any examples of how to call the program
with common mail commands.
Some additional fixes and additions by Phil Brooke to support Topal.
AVAILABILITY
The original MIME-tool package can be downloaded from my web page at http://members.bellatlantic.net/~dutky
This modified version is distributed with Topal:
http://homepage.ntlworld.com/phil.brooke/topal/
MIME tool mime MIME message tool(1)