Carlos, et al --

...and then Carlos Puchol said...
% hi,

Hi!


% 
% i was wondering how to do the following (if possible).

In short, as you've probably seen, not in mutt.  I don't think that it's
a bad idea to have the capability of saying something like

  autoview text/plain filespec=*.mgd mgp %s

but it obviously can't be done yet.


% 
% i reveive ".mgp" files as text/plain attachments, because
% most people don't know about magicpoint (a little known
% but awesome presentation software), thus they don't have a
% mailcap entry of "application/magicpoint; mgp %s" and
% a mime entry of "application/magicpoint mgp".

As has been discussed, this is a problem in the remote MUA.  So what do
we do when we get garbled mail from poor users running without the
benefit of mutt?

We use procmail, of course.

While the following is untested, I should think that a rule like

  :0 fB
  * Content-Type: text/plain
  * Content-Disposition: attachment; filename=".*mgd"
    | $FORMAIL -A"Content-Type: application/magicpoint"

would do the trick quite nicely, even if you do have to play with the
Content-Disposition string match (maybe just  Content.*filename or some
such); upon detection of a message that has the matching Content-Type:
and Content-Disposition: in the (B)ody, procmail (f)ilters the message
through formail (typically defined, with full path and any args, and
stored in $FORMAIL) to rewrite (without saving the old) the Content-Type:
header.

The only problem I see with this brilliant answer :-) is what to do if
you are accesssing your mail via an IMAP connection and you do not have
the ability to run procmail for your account.  Stay tuned for the "how do
I have mutt filter my mail?" FAQ entry, which I'm working on diligently
(er, well, thinking about contemplating, anyway), which should address
some IMAP-user filtering.


% 
% is it possible for me to instruct mutt to invoke mgp
% for those attachments that come as text/plan but the
% extension of the attachment is .mgp?

Once the Content-Type: header is correct, the rest should be easy -- and
is left as an exercise for the reader ;-)


% 
% i have dabbled around the manual a bit, but i am not
% too experienced with muttrc settings.
% 
% thanks,
% 
% ++ carlos

P.S. -- Even though you might see [EMAIL PROTECTED], please be sure to
        send to [EMAIL PROTECTED] since it's the proper address.

:-D
-- 
David T-G                       * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]      * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/        Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*

PGP signature

Reply via email to