procmail
[Top] [All Lists]

Procmail and Variables and PHP

2001-01-17 11:27:47
Hello all,

I am work with a script that uses formail to break down the email into its parts :

        :0h
        RP=|formail -zxReturn-Path:
        :0h
        MID=|formail -zxMessage-Id:
        :0h
        xsender="|formail -zxX-Sender:"
        :0h
        xmailer=|formail -zxX-Mailer:
        :0h
        DATE=|formail -zx Date:
        :0h
        to=|formail -zxTo:
        :0h
        from=|formail -zxFrom:
        :0h
        mime_vers=|formail -zxMime-Version:
        :0h
        content_type=|formail -zxContent-Type:
        :0h
        SUBJECT=|formail -zxsubject:
        :0B
        BODY=|formail -I ""

what i need to do is ensure that the variables are self containing. IE: RP="info about RP" like put into brackets or quotes or something so that when i echo out RP in php it is seen as "info about RP" and not info.

Better yet have procmail replace all spaces " " with an underscore "_"


please help!


_______________________________________________
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>