Re: Use of vcalendar with mutt

2015-07-22 Thread Willem Offermans
Dear Brain, dear mutt users,

I'm sorry I cannot help you with your request and I apologise on forehand
for breaking in into this mail thread. But what does the vcalendar-filter
do? Can you share the ``script'' with us? I would also like to automate the
processing of .ics attachments.

On Mon, Jul 20, 2015 at 01:31:59PM +1000, Brian Salter-Duke wrote:
> I used vcalender long ago, but then had no use for it, but I am now getting a
> lot of important emails from the university where I have an adjunct
> appointment. I work at home and I do not have the Windows nonsense that full
> time members of the department have to use. I use mutt as I have done for
> longer than I can now remember.
> 
> In my mailcap I have:-
> 
> text/calendar; /home/brian/.mutt/vcalendar-filter; copiousoutput
> application/ics; /home/brian/.mutt/vcalendar-filter; copiousoutput
> 
> from long ago. 
> 
> I have now got the second line to work when there is a *.ics attachment. 
> I had to download and install several perl modules used by vcalendar-filter
> which were not on my current machine.
> 
> However I get messages where the whole email is text/calendar with
> nothing else.  Typing 'v' just shows:-
> 
> 1 [ 8.6K] ""  quoted-printable text/calendar
> 
> Opening that gives:-
> 
> BEGIN:VCALENDAR
> PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN
> VERSION:2.0
> METHOD:REQUEST
> X-MS-OLK-FORCEINSPECTOROPEN:TRUE
> BEGIN:VTIMEZONE
> TZID:AUS Eastern Standard Time
> BEGIN:STANDARD
> DTSTART:16010401T03
> RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
> TZOFFSETFROM:+1100
> TZOFFSETTO:+1000
> END:STANDARD
> BEGIN:DAYLIGHT
> DTSTART:16011007T02
> RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=10
> TZOFFSETFROM:+1000
> TZOFFSETTO:+1100
> END:DAYLIGHT
> END:VTIMEZONE
> BEGIN:VEVENT
> 
> and so on. Is that expected or is there a way to get something
> a bit more useful?
> 
> It is a long time ago when I added anything usefull to the mutt project, so
> many thanks to all who have kept it going so well over the years. It must also
> be many years since I posted here.
> 
> Cheers, Brian.
> 
> -- 
> 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

-- 
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*
 W.K. Offermans

   Powered by 

(__)
 \\\'',)
   \/  \ ^
   .\._/_)

   www.FreeBSD.org


Re: Use of vcalendar with mutt

2015-07-22 Thread Bernard Massot
Le 22/07/2015 à 09:27, Willem Offermans a écrit :
> But what does the vcalendar-filter do?
It outputs an iCalendar text in a plain text human-readable format.

> Can you share the ``script'' with us? I would also like to automate
> the processing of .ics attachments.
It's available at https://github.com/terabyte/mutt-filters.
-- 
Bernard Massot


Re: Use of vcalendar with mutt

2015-07-22 Thread Bernard Massot
Le 22/07/2015 à 15:41, Brian Salter-Duke a écrit :
> I have that in my muttrc, but in the case where the only part of
> the email shows as:-
>  
> 1 [ 8.6K] ""quoted-printable text/calendar
> 
> it gives:-
> 
> [-- Autoview using cat --]
> 
> at the top of the plain text output. I am puzzled.
Could you send us an example of such a mail? (If you have one with no
private information in it.)
Attach the whole mail, so that we can look at the headers.
-- 
Bernard Massot


Re: Use of vcalendar with mutt

2015-07-22 Thread Brian Salter-Duke
On Wed, Jul 22, 2015 at 10:48:02AM +0200, Bernard Massot wrote:
> Le 22/07/2015 à 15:41, Brian Salter-Duke a écrit :
> > I have that in my muttrc, but in the case where the only part of
> > the email shows as:-
> >  
> > 1 [ 8.6K] ""quoted-printable text/calendar
> > 
> > it gives:-
> > 
> > [-- Autoview using cat --]
> > 
> > at the top of the plain text output. I am puzzled.
> Could you send us an example of such a mail? (If you have one with no
> private information in it.)
> Attach the whole mail, so that we can look at the headers.
> -- 
> Bernard Massot

It does have a lot od email addresses in it. If you email me, I will send you a
copy , but I do not think I can put it to the list.

Brian.
-- 
~
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


avoid multiple "deletion" of same mail?

2015-07-22 Thread Peter P.
Hi list,

I have bound the 'd' key to move mails to a trash folder, and 'D' to
move an entire thread to a trash folder:

 folder-hook . 'macro index,pager d "=INBOX.Trash \r"
 folder-hook . 'macro index,pager D 
"=INBOX.Trash \r"

This doesn't prevent me from accidentally moving these messages twice,
eg when the first mails in a thread are deleted using 'd' (and are
marked deleted accordingly) with a subsequent use of 'D' the entire
thread, including the messages that got deleted already, gets saved to
the trash folder again, causing duplicates.

Is there a way to execute above scripts only on messages and threads
whose status is not 'deleted'?

Thank you for all ideas!

Peter

PS: Does anyone know of a simple way to disply identical duplicated
messages with mutt, and optionally delete only the duplicates?


Re: avoid multiple "deletion" of same mail?

2015-07-22 Thread Michael Tatge
* On Wed, Jul 22, 2015 11:35AM -0400 Peter P. (peterpar...@fastmail.com) 
muttered:
> I have bound the 'd' key to move mails to a trash folder, and 'D' to
> move an entire thread to a trash folder:
> 
>  folder-hook . 'macro index,pager d "=INBOX.Trash \r"
>  folder-hook . 'macro index,pager D 
> "=INBOX.Trash \r"

> This doesn't prevent me from accidentally moving these messages twice,
> eg when the first mails in a thread are deleted using 'd' (and are
> marked deleted accordingly) with a subsequent use of 'D' the entire
> thread, including the messages that got deleted already, gets saved to
> the trash folder again, causing duplicates.

You could use the trash folder patch included in most distros.
Then you wouldn't need those macros.

> Is there a way to execute above scripts only on messages and threads
> whose status is not 'deleted'?

You could add a  after the first macro. Though that might
be expensive depending on the mailbox type and/or unwanted since you
don't get the chance to undo.
With the first message out of the way, you don't get dups.

> PS: Does anyone know of a simple way to disply identical duplicated
> messages with mutt, and optionally delete only the duplicates?

See Section Pattern Modifiers in the Manual.
~=   duplicated messages (see $duplicate_threads)

   l   show only messages matching a pattern
  D   delete messages matching a pattern

HTH,
Michael
-- 
PGP-Key-ID: EEE7D043
Jabber: in...@jabber.de


Re: Use of vcalendar with mutt

2015-07-22 Thread Jon LaBadie
On Wed, Jul 22, 2015 at 10:08:14AM +0200, Bernard Massot wrote:
> Le 22/07/2015 à 09:27, Willem Offermans a écrit :
> > But what does the vcalendar-filter do?
> It outputs an iCalendar text in a plain text human-readable format.
> 
> > Can you share the ``script'' with us? I would also like to automate
> > the processing of .ics attachments.
> It's available at https://github.com/terabyte/mutt-filters.

Two questions:

1. The vcalendar-filter above is unchanged for 7 years.  Is there
   any updated, or enhanced version?

2. The host above is labled mutt-filters (plural) but contains
   only vcalendar-filter.  Is there a location(s) that hosts
   other mutt-filters or that maintains a list of available 
   mutt-filters?

Jon
-- 
Jon H. LaBadie j...@jgcomp.com
 11226 South Shore Rd.  (703) 787-0688 (H)
 Reston, VA  20190  (703) 935-6720 (C)


Re: Use of vcalendar with mutt

2015-07-22 Thread Bernard Massot
Le 22/07/2015 à 20:31, Brian Salter-Duke a écrit :
> It does have a lot od email addresses in it. If you email me, I will send you 
> a
> copy , but I do not think I can put it to the list.
You can edit it directly from Mutt (with the 'e' key) before sending it
to this list. It would be better this way.
-- 
Bernard Massot


Re: Use of vcalendar with mutt

2015-07-22 Thread Derek Martin
On Wed, Jul 22, 2015 at 02:23:11PM -0400, Jon LaBadie wrote:
> 1. The vcalendar-filter above is unchanged for 7 years.  Is there
>any updated, or enhanced version?

The ICal format (standard, RFC 2445) hasn't changed since 1998 AFAIK,
so there should probably not need to be an updated version...


-- 
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.



pgp1YN_JkApP3.pgp
Description: PGP signature


Re: Use of vcalendar with mutt

2015-07-22 Thread Brian Salter-Duke

Le 22/07/2015 à 20:31, Brian Salter-Duke a écrit :
> It does have a lot od email addresses in it. If you email me, I will send you 
> a
> copy , but I do not think I can put it to the list.
You can edit it directly from Mutt (with the 'e' key) before sending it
to this list. It would be better this way.

- Forwarded message from  -

I have added some other headers that were visible after toggling the
headers.

Date: Mon, 20 Jul 2015 10:27:13 +1000
From: 
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 14.0
Thread-index: AdDCftyOa8pt4jIjSc210jY6leryWwAA/Waw
Date: Mon, 20 Jul 2015 10:27:13 +1000
Message-ID: <9f6cb39d756f51a5ffb889200a536...@mail.gmail.com>
To: 
Cc: 
Content-Type: text/calendar; charset=UTF-8; method=REQUEST
Content-Transfer-Encoding: quoted-printable
Subject: REMINDER: 2015 3MT competition this Friday

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VTIMEZONE
TZID:AUS Eastern Standard Time
BEGIN:STANDARD
DTSTART:16010401T03
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
TZOFFSETFROM:+1100
TZOFFSETTO:+1000
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16011007T02
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=10
TZOFFSETFROM:+1000
TZOFFSETTO:+1100
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ATTENDEE;CN=   Large set of ATTENDEE lines deleted - personal info
CLASS:PUBLIC
CREATED:20150720T002712Z
DESCRIPTION:Dear all \n\nYou’re invite to attend the 2015 Faculty Three M
inute Thesis (3MT®) competition.\nEvery researcher knows that one of 
the 
key elements to making an impact with your research is to convey its 
impor
tance to the general public.  But\, could you explain your research is 
jus
t three minutes?  \nThat is the unique challenge that awaits our 
fast-thin
king graduate research students who have entered the 3MT® competition!  
\
nPlease come along and show your support to our students who will 
provide 
engaging\, inspirational and a concise three minute summary of their 
work.
 \nFor catering purposes\, please accept this calendar invitation. 
\nDate:
Friday\, 24th July 2015\nVenue: Cossar Hall Mural 
Section\nTime:
Stuff deleted
DTEND;TZID="AUS Eastern Standard Time":20150724T14
DTSTAMP:20150720T002712Z
DTSTART;TZID="AUS Eastern Standard Time":20150724T12
LAST-MODIFIED:20150720T002713Z
LOCATION:Cossar Hall
ORGANIZER;CN=   removed
PRIORITY:5
SEQUENCE:1
SUMMARY;LANGUAGE=en-au:REMINDER: 2015 3MT competition this Friday
TRANSP:OPAQUE
UID:04008200E00074C5B7101A82E008D047944DCF7DD001000
01000C0F6B5DA0EA60A4A919327F0F675DD5E
X-ALT-DESC;FMTTYPE=text/html:\n\n\n\n\n\n\n\n\nDear all \n\n\n\nYou’re invite to attend the 2015 Faculty Three Minute Thesi
s (3MT®) competition.\n\n
Every researcher knows that one of the key 
elements t
o making an impact with your research is to convey its importance to 
the g
eneral public. \; But\, could you explain your research is just 
three 
minutes? \; \n\nThat is the unique challenge that awaits our 
fast-thinking 
graduate research students who have entered the 3MT® 
competition! \; 
\n\nP
lease come along and show your support to our students who will provide 
en
gaging\, inspirational and a concise three minute summary of their 
work. <
/FONT>\n\nFo
r catering purposes\, please accept this calendar invitation. 
\n\nDate: \; \; Friday\, 24th July 2015\n\nVenue: \; Cossar Hall Mural 
Section\n\nTime: 
\; \; Please ensure you arrive and be seated no later than 12pm. 
The s
tart time will be 12pm sharp.\n\n\n\nRegards\n\n
\n\n\n
X-MICROSOFT-CDO-BUSYSTATUS:TENTATIVE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-DISALLOW-COUNTER:FALSE
X-MS-OLK-APPTLASTSEQUENCE:2
X-MS-OLK-APPTSEQTIME:20150719T235907Z
X-MS-OLK-AUTOSTARTCHECK:FALSE
X-MS-OLK-CONFTYPE:0
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

- End forwarded message -

-- 
   Brian Salter-Duke (Brian Duke)   brian.salter-d...@monash.edu
Adjunct Associate Professor
Monash Institute of Pharmaceutical Sciences
  Monash University Parkville Campus, VIC 3052, Australia