procmail
[Top] [All Lists]

Re: How to provoc an procmail error to force REQUEING?

2009-11-05 18:33:45
Hi Sean,

sorry, if I was a litle bit unclear.

Am 2009-11-05 11:38:02, schrieb Professional Software Engineering:
I don't follow - your MTA should not be passing _anything_ to the
LDA until the SMTP reception of the message is complete.

I get the emails using rss2email which send the messages using the  smtp
protocoll to my E-Mail address.  This mean, it comes  into  my  Internet
Courier-Server.  Now, courier-mta deliver the  message  to  my  account,
where I have a procmail recipe, which work on this RSS-Mail.

If something to my GSM-Internet connection happen, wget can not download
anything and the RSS-Mail pass unprocessed the next recipe, hence to the
final mailfolder.

So, what I want is, if "wget" can not download anything do to a  network
error  and  the  output  is  empty,  the  message  should  stay  in  the
courier-mta queue and ist try to re-deliver 10 minutes later again.

So, how can I make procmail to stop processing the RSS-Mail and  instead
sending an Error/ExitStatus to the MTA, that there is a temporary error.

I could do 

    :0
    * ^From: *rss2email
    {
      TMPVAR1=`grep '^URL:' |sed 's|URL: ||'`
      :0
      * ? test -n "${TMPVAR1}"
      {
        TMPVAR2=`wget <some_opts> ${TMPVAR1}`

        :0
        * ? test -z "${TMPVAR2}"
        { DUMY_EXEC=`kill -SIGTERM ${PID}` }

        :0fw
        * ? test -n "${TMPVAR2}"
        | (mimedecode ; \
           echo 
"${NL}========================================================================${NL}"
 ; \
           echo "${TMPVAR2}" )

        :0
        .Business.<some_enterprise>.AppNotes/
      }
      :0
      .Business.<some_enterprise>/
    }

but I do not think, it is the right way to SIGTERM procmail.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>                 Michelle Konzack
<http://www.can4linux.org/>                   Apt. 917
<http://www.flexray4linux.org/>               50, rue de Soultz
Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de           67100 
Strabourg/France
IRC    #Debian (irc.icq.com)                  Tel. DE: +49 177 9351947
ICQ    #328449886                             Tel. FR: +33  6  61925193
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail