procmail
[Top] [All Lists]

Re: Trying to run procmail with Cyrus imapd and sendmail

2001-06-15 20:46:10
I guess I shouldn't be too surprised, but your little bit of a script
down here solved a big part of my problem.  Thanks!  I basically just
put this into my /etc/procmailrc, removed my 'Lines:' header recipe,
and gave it a shot.  Looks pretty good.

So I suspect my recipe to add a Lines: header is bogus.  I'd
appreciate it if you could take a look and make suggestions.  Here it is:
:0 Bfh
* H ?? !^Lines:
* -1^0
*  1^1 ^.*$
| /usr/bin/formail -A "Lines: $="

There are no leading or trailing whitespace characters, so I am not
sure what the problem is.

Basically, I would like to add a Lines Header so mutt can tell me what
the size of a message is before I download it.

I never really studied the regular expressions yet (I'll get to it
someday :), so I don't even know if that is a kosher recipe.

Thanks again!

Lou

On 06/15/01 07:28 PM, Philip Guenther sat at the `puter and typed:
...

Not quoting things properly also creates security holes.

However, it's not clear why you would use TRAP here instead of just
putting in real recipes.  When this came up on bugtraq last July,
Dylan Griffiths <Dylan_G(_at_)bigfoot(_dot_)com> and I worked up the 
following:

    LOGNAME = $1
    EXTENSION = $2

    :0 w
    * EXTENSION ?? .
    | /usr/cyrus/bin/deliver -a "$LOGNAME" -e -q -m "$EXTENSION" -- "$LOGNAME"

    # Only if there was no extension do we try this
    :0 wE
    | /usr/cyrus/bin/deliver -a "$LOGNAME" -e -q -- "$LOGNAME"

    # Whichever one we tried, failed
    EXITCODE = $?
    HOST


I no longer remember what the -a option does which deliver.


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

-- 
Louis LeBlanc
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
leblanc(_at_)acadia(_dot_)ne(_dot_)mediaone(_dot_)net
http://acadia.ne.mediaone.net                Ô¿Ô¬
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail