On 15/09/16 at 08:10am, Luis Mochan wrote:
> On Thu, Sep 15, 2016 at 07:55:12AM -0300, Marcelo Laia wrote:
> > On 14/09/16 at 08:06pm, Luis Mochan wrote:
> >  
> > > Maybe you could use the program 'ripmime' directly from bash. I found
> > > it in the debian repositories. I use it manually through a mutt macro
> > > 
> > >     macro index Ys "| ~/.mutt/saveattachments\n" "Save attachments"
> > > 
> >  
> > Hi, I try to use your script, nut, when I hint Y, mutt tell me that "Key Y 
> > is
> > not mapped"
> You should first define the macro!
(...)
> or by adding it to you ~/.mutt/muttrc file so that it is loaded

Yes! I do it! Please, here is what I see when a hint ? in index mode view:

X macro <pipe-message>ripmime --paranoid -i - -d
Ys M | ~/.mutt/saveattachm... Save attachments
a create-alias cria um apelido a partir do remetente de uma mensagem
(...)
r reply responde a uma mensagem
s save-message save message/attachment to a mailbox/file
u undelete-message restaura a entrada atual

When I press 

Shift+y followed by s in index mode view, current body message is saved inside
$HOME/attachments/ as textfile0 name.

The next commands is one line or they are 3 lines?

set - ~/attachments/*
[ "$*" != "$HOME/attachments/*" ] && rm ~/attachments/*
ripmime -i - -d ~/attachments


Thankx

-- 
Marcelo

Reply via email to