avoid multiple deletion of same mail?
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 save-message=INBOX.Trash \r folder-hook . 'macro index,pager D tag-threadtag-prefixsave-message=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?
* 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 save-message=INBOX.Trash \r folder-hook . 'macro index,pager D tag-threadtag-prefixsave-message=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 sync-mailbox 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) limit l show only messages matching a pattern delete-pattern D delete messages matching a pattern HTH, Michael -- PGP-Key-ID: EEE7D043 Jabber: in...@jabber.de
Re: Use of vcalendar with mutt
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
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] no description 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
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] no descriptionquoted-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
Re: Use of vcalendar with mutt
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
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] no descriptionquoted-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
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
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