[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LIH] Procmail recipe for MIME mail

Hmm, that wouldn't work since formail automatically puts the
header/body seperator (a blank line) at the end of the headers it
generates.  As it so happens, I need the formail functionality as well
as the MIME-handling part, and I need it to be transparent to the user
(so that HTML as well as text is handled automatically and


-- Raju

>>>>> "Suresh" == Suresh Ramasubramanian <mallet@xxxxxxx> writes:

    Suresh> * Raju Mathur [linux-india] <13/07/01 19:25 +0530>:
    >> |(formail -rt -I"Precedence: junk" -A"X-Loop:
    >> $RECIP@xxxxxxxxxx" ; cat $AUTOREPLY) | $SENDMAIL -f$RECIP1 -t }
    >> Now i want it to check if $AUTOREPLY is an HTML file, and send
    >> a proper MIME message if it is.  If it isn't, then the current
    >> rule is fine.
    Suresh> See ... as you are reading the contents of $MIME_FILE,
    Suresh> directly into sendmail, I guess having your autoreply
    Suresh> contain all the MIME headers should do.  Or you could have
    Suresh> your autoreply pipe things through mimencode

Raju Mathur          raju@xxxxxxxxxxxxx           http://kandalaya.org/