Conditional email polling

Hello everyone!
I wonder if it is possible to poll an email inbox conditionally (with OSB 11gR1)...
For example, I want to poll only the emails coming from a certain sender... Or only the emails that include a certain substring in its subject...
The purpose is to have several proxy services polling the same inbox, and depending on their properties invoke different services...
If an email arrives to the inbox and does not fulfill any of these conditions, it remains in the inbox.
Is this possible?
Best regards,
Bagagem

Hello,
I've been struggling with this for the past few days, I can't find a reasonable way to fulfill my needs...
At the moment I have only one proxy service polling an email inbox through IMAP, and then, after reading the email, moves it to another folder inside the email (Post read action: Move; IMAP move folder: DestinationFolder ).
However, if I have more than one service polling the same inbox... I cannot distinguish which emails are intended for which service...!
I'm using OSB 11gR1.
Any thoughts about this?
Haven't anybody been working with something similar?
Bagagem

Similar Messages

  • Oracle bpel 11g email polling ?

    could oracle bpel 11g support email polling(checking inbox of an email account for a defined period time) ?
    try to google and find some tutorial to enable email polling in bpel 10g.
    but try to implement it and can't find folder BPEL in <SOA_HOME>
    now i can utilize email polling from fusion middleware Oracle Service Bus. but it would be more suitable if i can do the polling from my bpel instance.
    if someone has experience in this, pls share and will be very appreciated it.

    using the tutorial from amis.nl, how can i get the sender, subject (email header) from the email that i'm polling ? with an empty body message email.
    i'm facing issue the xml that ums adapter poll and send to the bpel process is only the message body part. can not get the header part.

  • OSB Email Polling 10gr3

    Hi,
    I have a problem at one of my customer sites using the OSB email polling mechanism. We created a proxy service that monitors and downloads mail from an Exchange 2007 mailbox. Last week they moved the mailbox to an Exchange 2010 server... After the move I saw the following error in the Service Bus log:
    <2010/08/02 03:38:03 PM> <Error> <WliSbTransports> <SHOESB> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1280756283684> <BEA-381011> <Error occured for the service endpoint ProxyService$MercedesInbound$ProxyService$EmailPollingPX: com.bea.wli.sb.transports.TransportException: Missing start boundary
    com.bea.wli.sb.transports.TransportException: Missing start boundary
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:116)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    javax.mail.MessagingException: Missing start boundary
         at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:713)
         at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:383)
         at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:229)
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:72)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    We moved the mailbox back to 2007 and the server processed the messages normally...
    Does anybody know what would cause this error?
    Another interesting, but alarming fact is that when this error was generated, no messages where written to the error folder location specified in the proxy service configuration... The messages were successfully "popped" from the server and then simply went missing... Is this maybe a bug?

    Hi Anuj,
    I'm using IMAP to connect to the mailbox. Just to give you a bit of background, the mail message contains attachments so will be multipart messages.. I was able to replicate the issue by sending a mail with attachment from my Apple Mail client, so it would seem like this error has something to do with the format of the multipart message...
    Basically to error repeats in the domain log:
    ####<2010/07/30 05:21:55 PM> <Error> <WliSbTransports> <SHOESB> <AdminServer> <[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1280503315053> <BEA-381011> <Error occured for the service endpoint ProxyService$MercedesInbound$ProxyService$EmailPollingPX: com.bea.wli.sb.transports.TransportException: Missing start boundary
    com.bea.wli.sb.transports.TransportException: Missing start boundary
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:116)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    javax.mail.MessagingException: Missing start boundary
         at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:713)
         at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:383)
         at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:229)
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:72)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    ####<2010/07/30 05:22:15 PM> <Error> <WliSbTransports> <SHOESB> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1280503335836> <BEA-381011> <Error occured for the service endpoint ProxyService$MercedesInbound$ProxyService$EmailPollingPX: com.bea.wli.sb.transports.TransportException: Missing start boundary
    com.bea.wli.sb.transports.TransportException: Missing start boundary
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:116)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    javax.mail.MessagingException: Missing start boundary
         at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:713)
         at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:383)
         at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:229)
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:72)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    ####<2010/07/30 05:22:36 PM> <Error> <WliSbTransports> <SHOESB> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1280503356631> <BEA-381011> <Error occured for the service endpoint ProxyService$MercedesInbound$ProxyService$EmailPollingPX: com.bea.wli.sb.transports.TransportException: Missing start boundary
    com.bea.wli.sb.transports.TransportException: Missing start boundary
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:116)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    javax.mail.MessagingException: Missing start boundary
         at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:713)
         at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:383)
         at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:229)
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:72)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    ####<2010/07/30 05:22:57 PM> <Error> <WliSbTransports> <SHOESB> <AdminServer> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1280503377407> <BEA-381011> <Error occured for the service endpoint ProxyService$MercedesInbound$ProxyService$EmailPollingPX: com.bea.wli.sb.transports.TransportException: Missing start boundary
    com.bea.wli.sb.transports.TransportException: Missing start boundary
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:116)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    javax.mail.MessagingException: Missing start boundary
         at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:713)
         at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:383)
         at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:229)
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:72)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    ####<2010/07/30 05:23:18 PM> <Error> <WliSbTransports> <SHOESB> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1280503398233> <BEA-381011> <Error occured for the service endpoint ProxyService$MercedesInbound$ProxyService$EmailPollingPX: com.bea.wli.sb.transports.TransportException: Missing start boundary
    com.bea.wli.sb.transports.TransportException: Missing start boundary
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:116)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    javax.mail.MessagingException: Missing start boundary
         at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:713)
         at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:383)
         at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:229)
         at com.bea.wli.sb.transports.email.util.MessageContent.handlePart(MessageContent.java:72)
         at com.bea.wli.sb.transports.email.util.MessageContent.<init>(MessageContent.java:33)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.processInboxMessages(EmailWorkPartitioningAgent.java:181)
         at com.bea.wli.sb.transports.email.EmailWorkPartitioningAgent.execute(EmailWorkPartitioningAgent.java:100)
         at com.bea.wli.sb.transports.poller.TransportTimerListener.timerExpired(TransportTimerListener.java:77)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Are there any other logs I can look for? Taking into account that this is our production machine...
    Edited by: Ben Taljaard on Aug 3, 2010 2:55 AM

  • Better language for email polling, C# or C++?

    There's currently a small internal debate over what language we should be writing an email polling service.
    It is a part of a much broader system. Various accounts will be set up, and emails will be pulled from them and then encrypted and stored in a database.
    As it is part of a larger system we are planning on using an ORM such as Entity Framework and have a DAL or C# API to handle all things database. C# .NET has a solid networking API and some mail related stuff already, as well as solid encryption.
    Concerns surrounding using C++ include;
    Having to write network code from scratch (limited on external library use)
    Can not use Entity Framework or the C# database API, would require database code to be repeated in 2 languages allowing for transfer of bugs, more time taken etc..
    Encryption.. The clients are going to be .NET and so we want to use .NET encryption from start to finish so that encryption is standardized throughout
    Later in the projects life we want to support more than just Pop3 and IMAP, Microsoft provide a managed API for it's exchange web services. To achieve this in C++ is not elegant and not recommended by Microsoft
    What are the advantages of using C++ in this scenario if any?

    Hi Lee,
    first of all: I would choose C# for the task.
    That said, C++ does have some advantages:
    Better control over memory usage (it's especially easier to vanish sensitive information from memory)
    Having to build it up from scratch means you can optimize performance to your specific needs.
    I don't see how that would justify adding that much more work-hours though.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • Conditional email notifications

    Is there a way to conditionally email or "check this box" to email given address or addresses? This feature would be great in my situation because I may be the creator of the form but others would benefit from specific submissions of collected data. I know I can make them co-authors and such, but they do not want to see every bit of data, just the stuff the pertains to them.

    We currently don't support this. You can submit a feature request here so others can vote on it:
    http://forums.adobe.com/community/formscentral?view=idea&ideaView=5515
    We use this to help prioritize our work.
    Randy

  • How do you email poll results?

    How do you email poll results?

    sorry about the typo error on the p.s
    i have attached my vi with an excel file with my measurements i am talking about.the first column goes from segment 1-35 while the second column goes from 1-42.
    i want to compare these 2 columns on the same time axis
    Attachments:
    segment analysis.xls ‏24 KB
    Testing Cepstrum Algo.vi.vi ‏201 KB

  • How to send a conditional email with interactive report subscription

    Hi,
    i have an interactive report with subscription.
    I would like to send an email with the attachment only when the query returns one or more records.
    How to to this?
    Apex 4.0.2
    Thanks in advance
    lukx

    Well, to understand your requirements can I ask this:
    You said earlier you want a report sent whenever records that meet a criteria exist, correct? So you want the application to query for a condition, and when that condition occurs (a row with primary Key = X, a select COUNT(1) for rows with column X returns a result of 1 or more)
    Then you would schedule a batch job:
    BEGIN
    -- Job defined entirely by the CREATE JOB procedure.
    DBMS_SCHEDULER.create_job (
    job_name => 'Send_Email_Procedure',
    job_type => 'PLSQL_BLOCK',
    job_action => 'BEGIN Test_For_COND_SEND(); END;',
    start_date => SYSTIMESTAMP,
    repeat_interval => 'freq=hourly; byminute=0',
    end_date => NULL,
    enabled => TRUE,
    comments => 'Job defined entirely by the CREATE JOB procedure.');
    END;
    This would in theory run hourly and run your test_for_cond_Send process, in which you would test for the condition and send an e-mail if it was found that would contain the results from your query/report.
    Here is a link to generate a PDF report that could be sent via e-mail: Re: how to save pdf in APEX 3.0
    Thank you,
    Tony Miller
    Webster, TX
    While it is true that technology waits for no man; stupidity will always stop to take on new passengers.

  • Determining the Directories based on a condition to poll the file

    Hi All,
    I have One requirement, that i want to poll the file in the target directory  based on the following condition.
    1) If name1 = "ABC"   the file should go to //xi/test/file1.xml
    2) If name1= "XYZ" the file should go to //xi/develop/file2.xml
    How can i Achieve this requirement.
    Regards
    Bopanna

    How many Message Interfaces have to create
    3 One sender one each for 2 receivers
    howmany interface mappings have to create
    2
    howmany cc's have to create
    3 - 1 sender 2 receiver
    howmany Sender & Receiver agreements have to create
    3 - 1 sender 2 receiver
    howmany interface & Receiver determinations have to create
    1 receiver determination
    2 interface determination
    Regards,
    Prateek

  • IMAP Email Polling

    Hi, I am using IMAP to poll emails (as in http://blogs.bpel-people.com/2007/01/using-email-to-initiate-bpel-process.html), it polls sometimes, but sometimes the messages just dissapear from my email but the bpel process don't get initiated. This happens about 50% of the time, any ideas?

    i had the following problem:
    50% of the messages lost, bpel not initiated...
    => solution:
    the bpel was two times deployed. On two servers....
    Other possible solution:
    the adapter fetches all the mails and the correlation does not match the correlation which the bpel wants...

  • Email polling

    Am I missing something or does the iPhone not poll email accounts?
    I am using pop3.
    I can not find any settings to set how often to poll for email.
    Also, when I remove email off the server from my main computer the email stays on the iPhone thus I have to remove it manually.
    TIA
    Ron
    iMac    

    Am I missing something or does the iPhone not poll
    email accounts?
    I am using pop3.
    I can not find any settings to set how often to poll
    for email.
    Also, when I remove email off the server from my main
    computer the email stays on the iPhone thus I have to
    remove it manually.
    TIA
    Ron
    iMac    
    Ok, there are a couple of different concepts at work here.
    If you want to check for email every XX minutes, go to Settings / Mail and scroll down to Auto-Check. You can choose every 15 minutes, every 30 minutes or every hour.
    Now, if you are using POP mail, you can configure deleted mail behavior by going into Settings / Mail, choose the POP account you want, and choose Advanced. There you can tell it to delete files from server never, 7 days, or when they are removed from the iPhone inbox.
    If you are using IMAP, mailboxes are "synced". You can also configure deleted mail behavior under Mail / Settings, but its a little confusing and I haven't figured it out yet. I have my home PC accessing these accounts using POP, and when I download it from my home PC it automatically deletes them from my iPhone, as my iPhone is syncing with my mailbox using IMAP.

  • Conditional email

    Hi,
    I am trying to use the OdiSendMail tool with a conditional piece of code to change the content of the email depending on whether there were errors in the previous step. I have written the following piece of code:
    <% if (odiRef.getPrevStepLog("ERROR_COUNT")=="0"){ %>
    OdiSendMail "-MAILHOST=mail.server.com" "[email protected]" "-SUBJECT=Test Success Email" "[email protected]"
    <%=odiRef.getPrevStepLog( "STEP_NAME" )%> completed successfully.
    Start: <%=odiRef.getPrevStepLog( "BEGIN" )%>
    End: <%=odiRef.getPrevStepLog( "END" )%>
    Duration: <%=odiRef.getPrevStepLog( "DURATION" )%>s
    <% } else { %>
    OdiSendMail "-MAILHOST=mail.server.com" "[email protected]" "-SUBJECT=Failure Email" "[email protected]"
    <%=odiRef.getPrevStepLog( "STEP_NAME" )%> completed with <%=odiRef.getPrevStepLog( "ERROR_COUNT" )%> errors.
    Start: <%=odiRef.getPrevStepLog( "BEGIN" )%>
    End: <%=odiRef.getPrevStepLog( "END" )%>
    Duration: <%=odiRef.getPrevStepLog( "DURATION" )%>s
    <%}%>
    When I execute this, it appears to be falling into the ELSE category every time, regardless of whether there were errors or not. Does anyone know if what I am trying to do is possible, and if so, is there something wrong with my code above?
    Thanks.
    Edited by: _Phil on Aug 1, 2011 5:10 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thanks for the responses Guru. OK, so I tried the procedure this morning but I'm getting the following error. It looks like the code isn't treating each OdiSendMail statement separately within the IF/ELSE block but rather merging them together:
    ODI-1228: Task email_test (Procedure) fails on the target SUNOPSIS_ENGINE connection SUNOPSIS_MEMORY_ENGINE.
    Caused By: java.sql.SQLException: Unexpected token: ODISENDMAIL in statement [OdiSendMail]
         at org.hsqldb.jdbc.jdbcUtil.throwError(Unknown Source)
         at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java:665)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeUpdate(SnpSessTaskSql.java:3218)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java:1785)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2805)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)

  • Conditional EMAIL Subscription

    Hi
    I want to do a conditional Subscription of Email.i.e when certain condition happens i want to send the Email to a particular person.

    Robertson,
    1. Create a hidden item on you page.
    2. Create a page computation that sets the value of this item. I don;t know if the "conditions" you refer to can be determined solely within the context of the application so; this will determine which type of computation you will be creating. For example, if you need to check values in the database, you might pick "PL/SQL Function Body"
    3. Create a page process of type PL/SQL. Make sure the Point is set to after computations and validations. Within this, add PL/SQL to send the email. For example:
    DECLARE
    ls_EmailTo VARCHAR2(128);
    BEGIN
    ls_EmailTo := MyEmailAdressFinder;
    APEX_MAIL.SEND( p_to => ls_EmailTo,
    p_from => '[email protected]',
    p_body => 'Hi there, Robertson' );
    END;
    For the condition pick, "value of item/column in expression 1 = expresssion 2.
    This last part is important. In the expression 1 box, put the hidden item you created in step 1 above. In the expresssion 2 box, put the value that your computation would have set when you *do* want to send an email.
    -Joe
    Edited by: Joe Upshaw on Feb 15, 2012 1:49 PM

  • Need help to setup UMS adapter for email polling using BPEL

    I am trying to use UMS adapter to read emails from a mailbox.
    I have followed the link(http://technology.amis.nl/2012/05/18/proces-email-with-the-new-ums-adapter-of-soa-suite-ps5/) to do the setup.
    But after the BPEL deployment in the logs i am seeing the below error:; Please help me on this.
    java.lang.Exception: Cannot locate Java class oracle.tip.adapter.ums.inbound.UmsActivationSpec
    at oracle.integration.platform.blocks.adapter.fw.util.SCALifecycleNotifier.getActionSpecClass(SCALifecycleNotifier.java:232)
    at oracle.integration.platform.blocks.adapter.fw.util.SCALifecycleNotifier.onLifecycleEventActivationSpec(SCALifecycleNotifier.java:184)
    at oracle.integration.platform.blocks.adapter.fw.util.SCALifecycleNotifier.onEvent(SCALifecycleNotifier.java:128)
    at oracle.integration.platform.blocks.adapter.fw.util.SCALifecycleNotifier.onLoad(SCALifecycleNotifier.java:92)
    at oracle.integration.platform.blocks.adapter.fw.metadata.AdapterServiceRevisionRegistry$AdapterServiceRevision.endpointLoad(AdapterServiceRevisionRegistry.java:565)
    at oracle.integration.platform.blocks.adapter.fw.metadata.AdapterServiceRevisionRegistry$AdapterServiceRevision.activate(AdapterServiceRevisionRegistry.java:443)
    at oracle.integration.platform.blocks.adapter.fw.metadata.AdapterServiceRevisionRegistry$AdapterServiceRevision.setDefaultRevision(AdapterServiceRevisionRegistry.java:409)
    at oracle.integration.platform.blocks.adapter.fw.metadata.AdapterServiceRevisionRegistry$AdapterServiceSeries.setDefaultRevision(AdapterServiceRevisionRegistry.java:334)
    at oracle.integration.platform.blocks.adapter.fw.metadata.AdapterServiceRevisionRegistry$AdapterServiceSeriesSet.setDefaultRevision(AdapterServiceRevisionRegistry.java:140)
    at oracle.integration.platform.blocks.adapter.fw.metadata.AdapterServiceRevisionRegistry.setDefaultRevision(AdapterServiceRevisionRegistry.java:103)
    at oracle.integration.platform.blocks.adapter.AdapterService.defaultRevisionChanged(AdapterService.java:348)
    at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.notifyDefaultRevisionListeners(StandaloneCompositeDeploymentCoordinatorImpl.java:249)
    at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(StandaloneCompositeDeploymentCoordinatorImpl.java:69)
    at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:415)
    at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:250)
    at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:168)
    at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:112)
    at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeploy(DeployProcessor.java:100)
    at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.process(DeployProcessor.java:81)
    at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPostInsideLoggingSession(CompositeDeployerServlet.java:219)
    at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPost(CompositeDeployerServlet.java:130)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    Regards,
    Syam

    Syam,
    In PS5, this feature was introduced in preview mode and is not recommended to be used in production. Please use PS6 (11.1.1.7.0) if you want to implement this feature for a production solution.
    java.lang.Exception: Cannot locate Java class oracle.tip.adapter.ums.inbound.UmsActivationSpecMake sure that you have installed the UMSAdapter.rar on SOA servers (step#2 of above mentioned blog).
    Regards,
    Anuj

  • Can we give where condition while db polling, if yes how to give the value

    Hi,
    We are polling a db table, can we give where condition in polling query. If we can give this then where to pass the value for the condition.
    eg:
    select * from xxtable wherexxname=#xxname;
    If above is the db polling query then how to pass #xxname value to db adapter.
    After polling we are deleting the row in the table.
    Thanks,
    Ra

    You can add where condition , but the value should be passed while configuring DB Adapter itself. You can't pass dynamic values to it as it is polling and gets activated once the process is deployed.
    Thanks,
    Satish
    http://soadiscovery.blogspot.com

  • Sending an email using a scheduler

    Hi,
    I need a help to implement email scheduler.
    I need to notifiy a particular user using email.
    I am using JavaMail to send the email.
    All is working fine. I am able to send an email.
    Now, if under any conditions email notification fails, there should be a scheduler
    which should try to send an email within a time frame.
    Can you please help me to implement a scheduler?
    Thanks in advance!!!

    Normally that's the job of your mail server. If necessary,
    install a mail server on the same machine as your application
    to ensure that it's always available to accept messages from
    your application.

Maybe you are looking for

  • Adobe Creative Cloud Packager : trial

    Hello, I'm doing some checks with Adobe Creative Cloud before buying licenses for my company. I need to try Adobe Creative Cloud Packager for doing some packages, but I can't get a trial access for Adobe Creative Cloud for Teams, Could you give me a

  • Error 1720 when installing CS3 on Win 7 64-bit home premium

    I've been directed to the Forum for help as the Support Tech said she could not help me as they only help with CS5.  She said that CS3 WON"T WORK on a Windows 7 machine and yet I have googled and found people who have had it work.  She then told me t

  • Quiz default labels in English

    Hello, Could you please send me the whole default labels in English ? I have Captivate 7 in another language and should translate it in English. I mean the 6 messages and the 6 buttons. Or just send a shotscreen with the default labels under Captivat

  • Depriciation error.

    Hi, one asset Document has been posted after Actual date, 12 days after the capitalization of asset say asset supposed to  capitalized on 4.11.2008 but document has been posted on 16 th of the month, so first i need to change asset calculation and ca

  • Validating Campaign EEWB Field

    Hello CRM Marketing GURU's I have a business scenario that, when ever i change the status of campaign to RELEASE, it should validate one of EEWB field of campaign. How can I do this, is there any Function Module or BADi for this, please give me an id