12-09-2010
Need to check POP3 email
Hey there!
I have this problem: i'm in need to check the subject from e-mails from some generic account. This subjects are used as parameters for some program.
The thing is, i can do the second, but not the first. I don't know how to handle POP3 accounts from shell. Is there an application that could use this kind of email accounts, or some configuration to replace the common shell mail account (that one which is managed by the command "mail" and the messages are saved in the /var/mail) for a POP3 one?
Thanks in advance!
And sorry for my bad english!
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
if {ping -c 1 www || { "Destination Host Unreachable" ; }}
then
{ echo "neveikia senas-pastas, web serveris" | mailx -s "Senas web serveris" mail }
endif;
this is my script but it does not work... :confused:
this script will be used to check if website is online if not then sends an... (7 Replies)
Discussion started by: big_nobody
7 Replies
2. Shell Programming and Scripting
Dears,
i have user called dellsh
i hope to make this script
when this user recieve email
check the budy of the email about (StatusRequest)
when i find this email contain this subject
run crontab do this job (create file in my home directory called index)
thanks for your attention (1 Reply)
Discussion started by: dellsh
1 Replies
3. Shell Programming and Scripting
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
4. 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
5. Shell Programming and Scripting
Hello All,
I have a requirement where i need to get the EXTRACT_DATE from a file and check if the date is of valid format or not and then mail it if it is not valid. Appreciate if you can help me with this.
I did the following so far.
awk '{for(i=1;i++<=NF;)if($i~/^EXTRACT_DATE/) print $i}'... (11 Replies)
Discussion started by: Ariean
11 Replies
6. 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
7. UNIX for Dummies Questions & Answers
Hi!
i have bash script in witch I connect to my gmail account with
openssl s_client -connect pop.gmail.com:995
then using pop 3 command I view my emails (with retr ). But problem is I don't find sollution to how I can write output of command to a file when using retr. Command logsave doesn't... (1 Reply)
Discussion started by: Akyloji
1 Replies
8. Shell Programming and Scripting
I'm working on a bash script to move files from one location, to two. The first part of my challenge is intended to check a particular directory for contents (e.g. files or other items in it), if files exists, then send the list of names to a txt file and email me the text file. If files do not... (4 Replies)
Discussion started by: Nvizn
4 Replies
9. Shell Programming and Scripting
We have a unix/linux server , that send mass email from it , the emails will pass the smtp gateway , email server and sent to the client , but sometimes the client do not receive the mail , we do not know the reason and when it will happen .
We would like to have a script that check when the... (2 Replies)
Discussion started by: ust4
2 Replies
LEARN ABOUT CENTOS
ocf_heartbeat_mailto
OCF_HEARTBEAT_MAILTO(7) OCF resource agents OCF_HEARTBEAT_MAILTO(7)
NAME
ocf_heartbeat_MailTo - Notifies recipients by email in the event of resource takeover
SYNOPSIS
MailTo [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
This is a resource agent for MailTo. It sends email to a sysadmin whenever a takeover occurs.
SUPPORTED PARAMETERS
email
The email address of sysadmin.
(required, string, no default)
subject
The subject of the email.
(optional, string, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 10.
stop
Stops the resource. Suggested minimum timeout: 10.
status
Performs a status check. Suggested minimum timeout: 10. Suggested interval: 10.
monitor
Performs a detailed status check. Suggested minimum timeout: 10. Suggested interval: 10.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a MailTo resource using the crm(8) shell:
primitive p_MailTo ocf:heartbeat:MailTo
params
email=string
op monitor depth="0" timeout="10" interval="10"
SEE ALSO
http://www.linux-ha.org/wiki/MailTo_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_MAILTO(7)