[SPAM?] Re: [SPAM?] Re: Re: Can I use Mutt from Bash to extract attachments into an arbitrary directory?
On Fri, Sep 16, 2016 at 11:45:44AM -0300, Marcelo Laia wrote: > On 15/09/16 at 08:10am, Luis Mochan wrote: > ... > When I press > > Shift+y followed by s in index mode view, current body message is saved inside > $HOME/attachments/ as textfile0 name. Yes. The text parts of the message are saved as texfile0, textfile1,... The named attachments, if present, are saved using their names. > > The next commands is one line or they are 3 lines? > > set - ~/attachments/* > [ "$*" != "$HOME/attachments/*" ] && rm ~/attachments/* > ripmime -i - -d ~/attachments > They are three lines. > Thankx Regards, Luis -- o W. Luis Mochán, | tel:(52)(777)329-1734 /<(*) Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\ Apdo. Postal 48-3, 62251 | (*)/\/ \ Cuernavaca, Morelos, México | moc...@fis.unam.mx /\_/\__/ GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB
[SPAM?] Re: Re: Can I use Mutt from Bash to extract attachments into an arbitrary directory?
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 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