On Thu, Mar 04, 1999 at 04:09:22PM +0000, Einar Indridason wrote:
> Yes, I was looking for an easy way within mutt to "this message will expire
> at this time in the future" without having to manually mess with the
> 'Expire: ' header. (I'm still looking :-)
You could pipe it through a small script which calles formail.
--------snipp
#!/bin/sh
echo -n 'In how many days shall it expire?'
read days
# create full date
date=`date -v +${days}d '+%a, %d %b %Y %T +0100 (%Z)'`
# Add header to mail and send locally.
formail -I "Expires: $date" |mail.local $USER
--------snapp
and then call it from mutt (nopipe_decode) with '|set_expire\nd'
Which should call the script, and delete the old mail (it should be put
again in your mailbox via the mail.local)
Watch out, if you are not useing an BSD-type system, your mail.local
could have a different name.
beware, this is untested :-)
> Regarding the other question, uninterpreted, raw output, the suggestion:
> :set nopipe_decode
> |less
>
> does what I wanted. Now I would like to bind this "|less" function to a
> key. Any suggestions? (I am reading the manual, and might find the answer
> soon, but if you have an answer to this, and aren't doing anything
> important... hint, hint :-)
macro index V '|less\n'
macro pager V '|less\n'
requires you to have pipe_decode turned off all the time.
If you want it turned on all the time you coud do something like:
macro index V ':set nopipedecode\n|less\n:set pipe_decode\n'
macro pager V ':set nopipedecode\n|less\n:set pipe_decode\n'
CU,
Sec
--
I apologise for the length of this message - Must've booted with the
-vvv switch this morning ...