procmail
[Top] [All Lists]

Re: procmail and xmessage

1998-09-01 06:20:50
|Mon 1998-08-31 Jason <jvanbrec(_at_)UU(_dot_)NET> list.procmail

[ various procmail tries here...]

| At one point I had procmail > filename and then tried to execute
| xmessage -file filename, that did not work either. I am getting pretty
| desperate here. Is there any other way to make procmail just execute a
| program rather then pipe the output to the program, say if a critical msg
| came in, instead of piping the body of the message to my screen, I could
| rather just say "xmessage go check your mail NOW" or something of the
| like.

Uhm, that's weird. I can think of only on more try:
make a wrapper around xmessage, put this to your ~/bin/xmessage.sh
If you don't know what ":" is, hang around comp.unix.shell :-)

    :
    xmessage -file $*

And then call it from procmail. 
    
    lock     = "$HOME/.pm-global.lock"
    file     = "$HOME/tmp/xmessage.mail"

    LOCKFILE = $lock

    :0
    | cat > $file; xmessage.sh $file 

    LOCKFILE
    
That's an ugly hack, but perhaps it works.
jari

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