On 2000.12.28, in <[EMAIL PROTECTED]>,
"Suresh Ramasubramanian" <[EMAIL PROTECTED]> wrote:
> > I am using some scripts for cleaning up some mails by setting editor
> > variable to script name. And, every time I try it, new lines get
> > added at end.
>
> Could you share this script? Or you could just archive mails by using
> date-wise folders in your .procmailrc (say mails from mutt-users in
> march get appended to mutt-users-march)
I'm using this to macro-reply to messages with some stock response
text.
macro attach \;m "<enter-command>set
wait_key=no<enter><pipe-entry>mm-reply<enter><enter-command>set wait_key=yes<enter>"
"Send Mailman completion message"
"mm-reply" is attached. It's an "attach" macro because I use it only
to reply to MIME message/rfc822 components. It probably could be a
"normal" macro if you wanted to do that kind of thing.
--
-D. [EMAIL PROTECTED] NSIT University of Chicago
#!/bin/sh
TMP=/tmp/mutt-formail-$$
mailquote () {
awk '
ok==1 { printf "> "; }
/^$/ { ok=1; }
{ print; }'
}
formail -brkt \
| mailquote \
| sed -e 's/^$/\
done\
/' > ${TMP}
</dev/tty /opt/bin/mutt -H ${TMP} \
-e 'set abort_unmodified=no' \
-e 'set editor=/bin/true' \
-e 'macro compose e "\<enter-command\>set
editor=\"vi\"\<enter\>\<edit-message\>"'
/bin/rm -f ${TMP}