How to check email with attachment received or not from UNIX shell script?

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to check email with attachment received or not from UNIX shell script?
# 1  
Old 04-05-2017
How to check email with attachment received or not from UNIX shell script?

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!!

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Unable to send attachment with html tables in UNIX shell script

Discussion started by: Harsha Vardhan
2 Replies

2. UNIX for Advanced & Expert Users

Reading the Attachment from UNIX email

Hi - How would you read in the attachment from your unix mail account? The attachment is in BASE64 so I need to isolate those lines so I can convert them. The number of lines varies from a few to a few hundred. To complicate matters, the mail box gets non related emails I want to ignore. The lines... (3 Replies)
Discussion started by: Oliver Burns
3 Replies

3. UNIX for Dummies Questions & Answers

Send email attachment using Operating System Script(UNIX) in Oracle Alerts

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

4. Shell Programming and Scripting

html format email with attachment in unix

Team, I have the below code, which is working fine and it sends the html report using sendmail command. I want to attach one more file ( which goes as attachment ) in that email. How to achieve it. i tried with uuencode. But no luck :mad: outputFile="/tmp/out.html" ( echo... (2 Replies)
Discussion started by: itkamaraj
2 Replies

5. Shell Programming and Scripting

Check email and download attachment

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 and download the .zip attachment into a specified folder. Anyone could assist or give me some... (1 Reply)
Discussion started by: mynullvoid
1 Replies

6. Linux

Run PHP script when new email received

I have been looking around for a solution to this, i have been developing for a wile though am very new to CGI, PHP and a lot of the web based tech. I have a web site hosted with a cPanel web host. I am looking to have a script(prefer PHP) to run everytime i get a new email to (16 Replies)
Discussion started by: iKris
16 Replies

7. Shell Programming and Scripting

perl check email script not seeing attachment

The following script does pull the sender and Subject of the email but it is not seeing the attachment name. I know there is an attachment. I line in red SHOULD pull the filename out. this line is in the message: Content-Disposition: attachment; filename="Picture 243.jpg" ... (1 Reply)
Discussion started by: Ikon
1 Replies

8. UNIX for Advanced & Expert Users

Check EOF char in Unix. OR To check file has been received completely from a remote system

Advance Thanks. (1) I would like to know any unix/Linux command to check EOF char in a file. (2) Or Any way I can check a file has been reached completely at machine B from machine A. Note that machine A ftp/scp the file to machine B at unknown time. (5 Replies)
Discussion started by: alexalex1
5 Replies

9. Shell Programming and Scripting

UNIX file attachment in email

Hi, I have a syntax for mail attachment as $EMAIL "Wrapper $wrapper_script_name has failed" " $wrapper_script_name has Failed " $failed_email_address and $EMAIL is as below MSGSub=${1} MSGText=${2} RMAIL=${3} #set LANG='' export LANG='' echo "${MSGSub}" | mailx -s "${MSGText}" ... (1 Reply)
Discussion started by: satgur
1 Replies

10. Shell Programming and Scripting

send email from unix with attachment

Hello All, This is a common question that I found lot of results in the forums. I am trying to use uuencode to attach a file and send email. I have no issues sending email, but not able to attach any files using sendmail. Is uuencode part of sendmail or does 'uuencode' utility need to be... (1 Reply)
Discussion started by: chiru_h
1 Replies
Login or Register to Ask a Question
vboxmail(8)						    Linux System Administration 					       vboxmail(8)

vboxmail - script to send notification of new voice message SYNOPSIS
vboxmail messagename callername callerid mail-to-address DESCRIPTION
vboxmail is used by vboxgetty to send notification of a new voice message via email. It is not meant to be called directly by any user. You can make local modifications to this script by copying it from /usr/sbin/vboxmail to /etc/isdn/vboxmail, and editing the copy there. Note that there is an enhanced version of this script available as /usr/share/doc/isdnvboxserver/vboxmail.enhanced . To use it, copy it to /etc/isdn/vboxmail . This enhanced version will send the recorded message as a MIME attachment in the email notification. If lame or xingmp3enc are installed in /usr/local/bin, then the message will be converted to MP3 format; otherwise, it will be sent as a WAV file. For this to work, you also need the following packages installed: mime-construct sox and of course an MP3 encoder if you want MP3 format. Note that the MP3 format will only be 50% smaller (instead of the 90% you might other- wise expect), because of the relatively bad sound quality to begin with (8kHz sampling, mono). If you want to use another MP3 encoder than lame or xingmp3enc, you'll have to make patches to the script. I'll be happy to implement your changes. Send them as a wishlist bug report on isdnvboxserver. SEE ALSO
vboxgetty(8), vboxgetty.conf(5) AUTHOR
This manual page was written by Paul Slootman <>, for Debian GNU/Linux and isdn4linux. ISDN 4 Linux 3.25 1998/11/17 vboxmail(8)

Featured Tech Videos