How to trigger unread emails for a given period ?

Hello All,
I kindly need your help on the following. I have a mailbox that receives huge number of emails per day , I`m processing those all unread emails every one minute using a third party tool and make them read after successfull processing , my concern is
that I want to receive any alerts if there are unread emails after 5 minutes for example. Because this will mean that the emails are not processing hence the scenario has stopped running.
Hopefully I`m clear enough.
Best Regards,
Haytham Fekry

You should use time-script monitor which run every 5 minutes and return unhealthy if an unread email was found in inbox.
The script as
Set olApp=CreateObject("Outlook.Application")
Set olMAPI=olApp.GetNameSpace("MAPI")
Set oFolder = olMAPI.GetDefaultFolder(6)
Set allEmails = oFolder.Items
dim oAPI, oBag
Dim Status
set oAPI=CreateObject("MOM.SCriptAPI")
set oBag=oAPI.CreatePropertyBag()
Status="Healthy"
For Each email In oFolder.Items
If email.Unread = True Then
Status="UnHealthy"
End If
Next
Call oBag.AddValue("State", Status)
Call oAPI.Return(oBag)
Roger

Similar Messages

  • BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?

    Hi All.
    I have this request.
    BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?
    We have jobs scheduled on BODS running smoothly and absolutely fine.
    But to check, i am logging into the admin console and check for the jobs status.
    I would like to have an email to be received from BODS after each job is finished.
    It could succuessful. Or it could fail.
    Whatsoever, i wish to receive an email alert as soon as a job is finished.
    Can anyone advise me as to whether this could be made possible.
    And if yes, how this could be done.
    Thanks for your help in advance.
    In BOE CMC / for webi / schedule / we find an option to send email for a job success or a job failure.
    Is there any option similar to that in BODS ?
    Also would like to know :
    how to use the smtp_to or mail_to functions ?
    how to set up the smtp server for this ?
    thanks
    REgards
    indu
    Edited by: Indumathy Narayanan on May 31, 2011 3:47 PM

    Hi.
    Since am new to this BODS. I need some help.
    I already have many jobs which are running absolutely fine.
    And when a job runs, and finishes, am able to see the trace saying
    e.g. :
    Job_abc is completed successfully.
    We got the smtp service activated for our test server.
    and we hae a group email id.
    I have put the details of the smtp server / ip address / and said apply restarted.
    The i created a simple test script as below :
    print (' Before email ' );
    smtp_to('abc@company_name.com', 'Job ' || job_name() ||' on ' || host_name() || ' has FAILED',
    ' the job has failed', 0, 0);
    print('After Email ');
    It does send a email to as per smtp_to whatever email is specified.
    But how to differentiate between a job success
    And a job which has failed.
    I wish to have a mail which says on the subject :
    'Job ' || job_name() ||' on ' || host_name() || ' has completed successfully'
    ==> IF it is a success
    OR
    'Job ' || job_name() ||' on ' || host_name() || ' has failed'
    ==> if it has failed
    How to make the system identify, whether
    to send a success message or a error message whatever
    Could anyone advise.
    thanks
    indu

  • Founding number of unread emails for gmail

    Hello
    How can I found number of unread emails for gmail?
    Thank you

    I found this link, but the program was stopped with Error:
    http://www.codeproject.com/Articles/18008/Simple-POP-Email-Class
    With:
    1-strMailServer=pop.gmail.com
    2-TCP.Connect(strServer, 995)

  • How to find what transaction an user was running for a given period

    hi
    could anybody tel me
    how to find what transaction a particular user was running for a given period
    in the past.............

    Hi,
    U need to findout the list of Tcode excuted by SAP user
    1) Tcode: ST03N
    2) Select Expert Mode option
               (there u find  Server Host name & Today)
       If u select Host name u find DAY/WEEK/Month (same thing will in Today option)
    3)Now u need to select the option of DAY,WEEK etc.
    Now u can find in two ways
    1) Transaction profile (Standard / EarlyWatch)
    2) User (user profile)
    If u select the Transaction profile
    Under these u find the option of Aggregation----application/package/tranasation etc.
    I hope these will help u to findout.
    Regards
    ASR

  • HT5622 How to change rescue email for security questions reset

    How to change rescue email for security questions reset

    My Apple ID>Manage your Apple ID>Sign in>Password and Security>Answer Security Questions>Edit your Rescue Email Address
    https://appleid.apple.com

  • How can i send email for suport to rest my questions' please helpe'

    how can i send email for suport to rest my questions' please helpe'

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (109789)

  • Pending  GR / IR Balances report  for a given period

    Hi,
              How can you  check  pending  GR / IR doc's  for a given  period ?  In  MB5S there is no date field in selection sreen as well as output  layout. 
    Please  give  suggetions .
    Thanks &  Regards,
           Aruna.

    Hi,
    Check ME2l, ME2M report..use Selection Parameters as "RECHNUNG" for pending IR and "WE101" or "WE103"  for open GRs and ur required selection of vendor, material and document date
    Regards,
    Vikas

  • Material stock received and issued for a given period of time

    HOW to get the material stock received and issued for a given period of time including the open orders.
    if there is any BAPI Available then please tell me. or give me the table relations thaks.
    thanks inadvance

    hi friend,
    Why don't you try using a TIMER. Try using this code
    Timer timer = new Timer((TIMER), new ActionListener()
         public void actionPerformed(ActionEvent ae)
    // perform your task here...
    timer.setInitialDelay(TIMER);
    timer.setRepeats(true);
    timer.start();
    I think this will work fine.
    Bye,
    Ravi.

  • To find whether the reports are in use or not for a given period

    Hi Basis Gurus,
    We have an requirement here that the client wants to know that the whether the reports for a given period are in use (working) or not.
    I think we can do it when we have audit logging activated ,but now we dont have audit logging activated now.
    Let me give you an example below
    Suppose for past 1 year 100 reports are prepared and out of 100 reports 95 reports are not working and remaining 5 reports are working.How can i get the detials from the SAP system without audit logging activated.
    Please help me
    Regards,
    Anil.

    Hello,
    See if ST03N helps you.
    Switch to expert mode in ST03N. Naviagate to Workload > Month > month . Click on the available month. Then in the " Analysis Views" visible on the lower LHS, Select transaction profiles > standard. See if you have your 'Z' report in that.
    Thanks and regards,
    Anish

  • BAPI to extract from MBEW/MBEWH for a given period

    Hi ABAPpers,
                We have two tables MBEW and MBEWH for Material Valuation. Based on the changes in few fields like VERPR, the record in MBEW will be transferred to MBEWH. Is there any BAPI that helps me to extract the data for a given period of a given fiscal year without asking me to probe from which table we need to fetch data from and which record in MBEWH is valid for that period of that year. Please suggest possible ways to do it.
    Thanks.
    Edited by: VKUPPILI on Dec 19, 2011 2:53 PM

    Hi
    Although it's not your question, see SAP Note 193554 - Stock/valuation data of previous periods, I think that it helps you to understand how to understand how to work the history tables.
    I hope this helps you
    Regards
    Eduardo

  • Generate report for employees on leave for a given period

    Hi,
    I want to know how can i extract a report of a list of employees who are on leave for a given period of time?
    For instance i want to a list of employees who are on vacation / leave (any kind of leave) for the period of April 2010
    Is there a standard report to generate this info? or any other way of doing it?
    Regards,
    Humaira

    HI all,
    Thanx for the response.
    The info set Query was great help.
    the Tcode PT_QTA10 only gives me the leave Quota of the employees which was also helpful. Thanx
    Regards,
    Humaira

  • Automatically log back in for a given period of time

    I just started to work on web and have the following issue:
    We want some (mobile) users to be able to automatically log back in for a given period of time. It is not difficult to set cookie (valid user information without clear text) on the mobile device. For now the question is how we can log in using this cookie info.
    Web application uses "j_security_check", "j_security_check" checks the user/password.
    Question is how we can autologin using cookie information. Thanks guys!

    it is not problem to check cookie on exists and valid. Problem is 'where' where can I do it using 'j_security_check'

  • Need a function to calculate employee attendance data for a given period

    need a function to calculate employee attendance data for a given period
    as
    Working days,
    CL ,
    SL,
    PL,
    LWP
    regards,
    Gaurav Sood.

    Issue resolved

  • Schedule a task for a given period of time

    Hi,
    any body has an idea how to schedule a task for a specified period of time. e.g A program keeps on asking for your name to be input for an hour and then start doing something else?
    /bob

    hi friend,
    Why don't you try using a TIMER. Try using this code
    Timer timer = new Timer((TIMER), new ActionListener()
         public void actionPerformed(ActionEvent ae)
    // perform your task here...
    timer.setInitialDelay(TIMER);
    timer.setRepeats(true);
    timer.start();
    I think this will work fine.
    Bye,
    Ravi.

  • Projectwise settlement report for a given period

    Dear PS experts,
    Is there any report which i can see the projectwise settlement to AUC, Fixed asset and Cost center for a given period?.
    Regards
    Vetrivelan.

    May be you could try Tcode : KSB5 to see the settlement documents through dynamic selection and export to excel and filter it for  your project.

Maybe you are looking for

  • How can you remove the Save button on a survey?

    What options are there to remove the SAVE button from a SharePoint survey? I need to remove this if possible, I was hoping it would be as simple as editing a form in the Survey list... but that is apparently not the case. I need to supress the SAVE b

  • Can't email videos from iPhoto that was imported from iPhone 4

    After importing videos taken with my iPhone 4 into iPhoto, I can't email them with my yahoo email account. Says it exceeds 25MB and will not allow that. I had no problems with my 3Gs emailing long videos. Any ideas?

  • Book table of contents

    How can I make a table of contents when making a book in iphoto?  I am using the folio theme book and I don't see a page layout for a table of contents.  Please help! Lauren

  • Is ios 8 easier to read than ios 7?

    I never updated my ipad to ios 7 because of poor contrast issues and too thin font.  I am visually impaired and was unable to read anything in ios 7 even with all visual accessibility options on.  Is the font easier to read in ios 8?  And is there be

  • Some content missing when access JSP through UNIX

    Hi, everyone:           I have a problem when I access JSP file from UNIX system. It is that I           transfer one variable which will be show up from one page to next.           Only one word can be displayed, the following words are missing. Whe