On Thu, Jul 30, 2015 at 10:14:39PM +0200, Bernard Massot wrote: > Le 30/07/2015 à 07:36, Brian Salter-Duke a écrit : > > I will try to attach it. Thanks for all your help. > It worked fine for me. If didn't for you it means you missed something. > Here is my setup: > > In ~/.muttrc: > auto_view text/calendar > > In ~/.mailcap: > text/calendar; ~/.mutt/vcalendar-filter; copiousoutput
I finally got there. One problem was that I had a text/* line in mailcap. I had to put the text/calendar above it. Then my mailcap had this comment in it from way back - I forget where. # Mutt can only edit attachments if they have a mailcap edit entry. # (This would be a good thing to fix.) However, a mailcap entry # apparently must include the display function--it can't be defaulted. # The combination "cat; copiousoutput" comes close to the default in # that in invokes the default pager on the output of cat. However, # there is apparently no way to specify the default editor--a shell # environment variable such as $VISUAL or $EDITOR is as close as we can # get. # I had to follow it. The commented text/calendar line if I uncomment it does not work, but the one below does. So I am there, but why? Any thoughts. #text/calendar; /home/brian/.mutt/vcalendar-filter text/calendar; /home/brian/.mutt/vcalendar-filter; copiousoutput; edit=$VISUAL %s A further question - where is the path set to find the mailcap file? Thanks for your help. Brian. > Did you forget to make vcalendar-filter executable? > Test it independently from Mutt. Save the text/calendar part in > /tmp/foo.ics and run: > ~/.mutt/vcalendar-filter < /tmp/foo.ics > What does that return? > > For the reference, here is how your mail looks with my setup: > > ==================================================================== > Date: Mon, 20 Jul 2015 10:27:13 +1000 > From: Karen Drakatos <karen.draka...@monash.edu> > To: PharmacyHDRStudents > Cc: > Subject: REMINDER: 2015 3MT competition this Friday > > [-- Autoview using ~/.mutt/vcalendar-filter --] > Timezone : AUS Eastern Standard Time > > ------------------------------------------------------------------------ > Summary : REMINDER: 2015 3MT competition this Friday > > Description : Dear all > > You’re invite to attend the 2015 Faculty Three Minute > Thesis (3MT®) competition. Every researcher knows that > one of the key elements to making an impact with your > research is to convey its importance to the general > public. But, could you explain your research is just three > minutes? That is the unique challenge that awaits our fast- > thinking graduate research students who have entered the > 3MT® competition! Please come along and show your support > to our students who will provide engaging, inspirational > and a concise three minute summary of their work. For > catering purposes, please accept this calendar invitation. > Date: Friday, 24th July 2015 Venue: Cossar Hall Mural > Section Time: Please ensure you arrive and be seated no > later than 12pm. The start time will be 12pm sharp. > > > Location : Cossar Hall > Dtstart : 2015-07-24 12:00 > Dtend : 2015-07-24 14:00 > ==================================================================== > -- > Bernard Massot -- On two occasions I have been asked [by members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?". I am not able rightly to comprehend the kind of confusion of ideas that could provoke such a question. -- Charles Babbage Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au