Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion macro to save attachments renamed
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Maneesh Patel  
View profile  
 More options Mar 3 2012, 6:38 pm
Newsgroups: comp.mail.mutt
From: Maneesh Patel <mnshpt...@gmail.com>
Date: Sat, 3 Mar 2012 15:38:17 -0800 (PST)
Local: Sat, Mar 3 2012 6:38 pm
Subject: Re: macro to save attachments renamed
Thank you, sir, particularly for the improved version of my bash
command.  I do use procmail for certain things, but had not considered
this particular use.  And I agree that the program antiword is
extremely useful for converting Word files to ASCII (as are wvPDF and
abiword for conversion to PDF and other types).

Yet I would still like to know if it is possible to write a .muttrc
macro that invokes a bash command or script to produce the default
"save to" filename.  I've tried a great many things like

macro attach S "<save-entry><bol>$HOME/Mail/Attachments/$(%f | tr 'A-
Z' 'a-z' | sed "s/'//g" | sed "s/ /_/g")"

which do not produce the desired result.  (I often use mutt over an
ssh connection and then view and sometimes edit attachments on the
remote machine by saving them from mutt and using scp.  Thus it is
slightly inconvenient to have attachment filenames with spaces.  Your
antiword suggestion might solve at least the immediate problem.)

Kind regards,
--maneesh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.