>       <processor name="root">
>       <!-- moves the mail with myprocessor state to
the root state ->
>           <processor name="myprocessor">
>               <mailet match="All"
class="ToProcessor">
>                <processor>root</processor>
>               </mailet>
>           </processor>
>         <! -- other mailets to process the mail -->
>      </processor>

|>IMHO this is bad: this will create infinite loops.

I see what you are saying. My apologies, as I cut and
pasted the wrong snippet of xml. But I got it to work
using a very ugly procedure.

       <processor name="myprocessor">
<!--     This is original section, comment it out when
you want to change state
           <mailet match="All" class="ToRepository">
            
<repositoryPath>file://${app.home}/../../../mail-queue/myqueue/</repositoryPath>
           </mailet>
-->
           <!-- this is section to move the message to
the root state, comment it out under normal
condition-->
           <mailet match="All" class="ToProcessor">
              <processor>root</processor>
           </mailet>
       </processor>

So, it appears that there is no easy way to move a
message from one state to another in my given
situation (I have messages in a "myqueue" directory,
in a myprocessor state and I would like to move it to
the spool directory with a root state)

>Just increase the number of retries in RemoteDelivery

>if you need to try a longer period.

This is not applicable to my application as I am not
delivering mail. Although at some point I would like
to write a mailet that mimics RemoteDelivery. I am
just parsing multimedia mail and saving the contents
in a db. My first post has more details about what I
am trying to do. 

Appreciate your help on this,

Thanks,

Vish



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to