procmail
[Top] [All Lists]

Re: attach filter

2001-08-01 09:29:50
* Mailing Manager <mailing(_at_)lastminutetour(_dot_)com> [010801 07:43]:
Hi all,
      i've looked around to solve my problem.

All the thing works less than one: the matching ont he attach with a doc
extension.
The idea is to reply to any mail with a doc attach, and the procmailrc that
i use seem to be not adeguate.
I've readed but the examples are differents and no one talk about attach.
Here are my .procmailrc

:0
* !^FROM_DAEMON
* !^X-Loop: jmymiail(_at_)mydomain
* ^Content-Type: *multipart/mixed 
{
   :0 fbw
   * ^Content-Type: *application/msword
      {
      * ^name*\.[Dd][Oo][Cc].*
      | do something
      }
}

Nothing to do, it catch the multipart/mixed, and nothing else....

I think you might be on the right track.  Perhaps this (untested):

# if email contains a word doc, generate autoreply
:0hc
* !^FROM_DAEMON
* !^X-Loop: jmymiail(_at_)mydomain
*  ^Content-Type: multipart/mixed 
*  ^Content-Type: application/msword
| (formail -rA"X-Loop: jmymiail(_at_)mydomain"; \
   cat $HOME/.autoreply_contents) | $SENDMAIL -oi -t

-- 
- Matt Dunford <> zoot(_at_)zotikos(_dot_)com ..
-. www.zotikos.com -- o,;-
        
"When I have been asked during these last weeks who caused the riots 
and the killing in L.A., my answer has been direct and simple: Who is 
to blame for the riots? The rioters are to blame. Who is to blame for 
the killings?  The killers are to blame."
    -- Vice President Dan Quayle
--
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>