Re: Use of vcalendar with mutt

2015-07-23 Thread Jon LaBadie
On Wed, Jul 22, 2015 at 06:24:00PM -0500, Derek Martin wrote:
> 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...
> 
There are many reasons that software might be updated besides RFC revisions.

jl
-- 
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-23 Thread Michael Jinks
On Wed, Jul 22, 2015 at 3:08 AM, Bernard Massot  wrote:

> It's available at https://github.com/terabyte/mutt-filters.

Thanks for this. I didn't find it the last time I tried to address
this issue. Installed.

One adjustment I had to make: the instructions there say,


  You need something like this in your muttrc ...

  autoview text/calendar


...but at least for me, my mutt wants 'auto_view' instead of 'autoview'.


Re: Use of vcalendar with mutt

2015-07-23 Thread Bernard Massot
Le 23/07/2015 à 09:32, Brian Salter-Duke a écrit :
> I have added some other headers that were visible after toggling the
> headers.
Could you send it as an attachment, as I suggested? (Use 'A' to attach a
mail to a mail from the attachment menu.)
-- 
Bernard Massot


Re: avoid multiple "deletion" of same mail?

2015-07-23 Thread Cameron Simpson

On 22Jul2015 11:35, Peter P.  wrote:

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"


Minor remark: I bind ^D (ctrl-D) to delete thread; "D" is already bound to 
delete pattern.



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'?


I would do 3 things:

- leave the first macro alone; it is hard to point at a deleted message (mutt 
tends to skip the the next undeleted message), so personally if I were on a 
deleted message and pressed "d" I'd want it to just do it


- look at the $delete_untag setting, which clears the tag on a message if you 
delete it


- modify the second macro, eg (untested):

 macro index,pager D 
"~D=INBOX.Trash"

That should tag the thread, untag any deleted messages, then move.

Actually, I would extend that macro to flush any existing tags as I presume you 
don't want to delete "the thread plus anything else that happened to be 
tagged". So:


 macro index,pager D 
"~T~D=INBOX.Trash"

Another note is I split my macro like this into two, thus:

 macro index D 
"~T~D=INBOX.Trash"
 macro pager D qD

i.e. inside the pager the macro just exits to the index and then runs delete 
thread.


Again, I recommend using ^D instead of D for this macro. Your call, obviously.

Cheers,
Cameron Simpson 

In article <323c4db9.6...@ss1.csd.sc.edu>, lhart...@ss1.csd.sc.edu wrote:
| It still is true that the best touring bike is the one that you are
| riding right now.  Anything can be used for touring.  As long as you
| can travel, you are touring.
I beleive such true and profound statements are NOT allowed to be posted
in this newsgroup, and are also against the charter.  You've been warned.
   - Randy Davis DoD #0013  in rec.moto