Switching between important and non-important mailboxes
Hi, This is something I wanted to have for some time, ability to make mutt ignore certain mailboxes for some time, so that they don't bother me all day, but to be able to review them when convenient. Yesterday I bit the bullet and this is the result: In .muttrc, I replaced my 'mailboxes' line with comment # MY_MAILBOXES \ _+INBOX \ _+postponed \ +some_stuff \ +cc-interest +dbx-interest +dtrace-discuss \ _+mutt_users \ ... folders beginning with underscore are the important ones. Rest is: macro index,pager y escY Show important mail only # Important mailinglists `cat $HOME/.muttrc | perl -e ' \ $tmp=join , ; \ $tmp=~s/\\\n//gs; \ $tmp=~m/\n#[ \t]*MY_MAILBOXES[ \t]*(.*?)\n/s; \ @all=split /\s+/, $1; \ $important=join , map { s/^_//; $_ } grep /^_/, @all; \ $all=join , map { s/^_//; $_ } @all;\ print mailboxes $all;; \ print macro index,pager escy \enter-commandunmailboxes *enterenter-commandmailboxes $allenterenter-commandcolor indicator blue whiteenterrefreshenter-commandmacro index,pager y eY \\\Show important mail only\\\enter\; ; \ print macro index,pager escY \enter-commandunmailboxes *enterenter-commandmailboxes $importantenterenter-commandcolor indicator red whiteenterrefreshenter-commandmacro index,pager y ey \\\Show all mail\\\enter\; \ print \n;\ '` By pressing 'y' I switch between all mailboxes defined and just the important ones. When I'm observing just the important ones, my indicator turns red, and is blue otherwise. Hope this helps someone -- Vlad pgpEvnkI8SLDH.pgp Description: PGP signature
Re: How to get default From: to work
On Sun, Nov 23, 2008 at 08:02:34PM +0100, Szymek wrote: No, the maildir folders are not nested, here is the structure: ~/mail- -firstbox -secondbox -thirdbox -fourthbox I compiled mutt by myself, maybe there is a specific option to pass to configure? I had previously the same config in Slackware, and it worked like a charm. On Sat, Nov 22, 2008 at 09:48:03AM -0800, Michael Elkins wrote: On Sat, Nov 22, 2008 at 04:31:57PM +0100, [EMAIL PROTECTED] wrote: folder-hook . 'set from=[EMAIL PROTECTED] realname=Blabla' folder-hook secondbox 'set from=[EMAIL PROTECTED] realname=BlaBla' folder-hook thirdbox 'set from=[EMAIL PROTECTED] realname=BlaBla' folder-hook fourthbox 'set from=[EMAIL PROTECTED] realname=Blabla' Now, when I go into the mail folder secondbox, thirdbox or fourthbox, everything is alright and I get the right address in From:-header, regardless whether I send new emails or reply. But in the firstbox (which should be my default) I always get the email-address from the secondbox in the From-header, even if I change the period in the first folder-hook to the name of the first (default) box. What am I doing wrong? Do you happen to be using nested maildir folders? I'm wondering if maybe you need to specify the full pathname, or use $ at the end of the folder regular expression. me Yes, now it works. I did append an $ to the end of the folder names, like that: folder-hook secondbox$ 'set from=[EMAIL PROTECTED] realname=BlaBla' I didn't wrote the dollar sign for the default, period marked mailbox. Now everything works fine. Thanks a lot for your help. One more thin, can you tell me, why it is working, now that I have the dollar sign appended?
Re: How to get default From: to work
On Tue, Nov 25, 2008 at 12:21:05PM +0100, Szymek wrote: Yes, now it works. I did append an $ to the end of the folder names, like that: folder-hook secondbox$ 'set from=[EMAIL PROTECTED] realname=BlaBla' I didn't wrote the dollar sign for the default, period marked mailbox. Now everything works fine. Thanks a lot for your help. One more thin, can you tell me, why it is working, now that I have the dollar sign appended? Suppose you have the following set of mailboxes in ~/Mail: foobar foo bar and the following folder-hooks: folder-hook foobar '...' folder-hook foo '...' folder-hook bar '... The second folder hook will match both foo and foobar. In order to prevent this match, you need to use an anchor ($) in the regular expression to match the end of the word right after foo: folder-hook foo$ '...' me
Chained send-hooks
Hi! % send-hook . 'unmy_hdr From:' % send-hook . 'set signature=~/.signature' % send-hook '~C @domain\.com' 'my_hdr From: [EMAIL PROTECTED]' % send-hook '~f [EMAIL PROTECTED]' 'set signature=~/.signature-domain' If the From: address has been changed by the third send-hook, the fourth one won't match. However, if the From: address has been changed thanks to reverse_name, then the fourth send-hook will match. To sum up, it seems that the address matched with ~f stay the same while all send-hooks are processed. Is it the expected behaviour? Regards, -- Jeremie Le Hen jeremie at le-hen dot org ttz at chchile dot org
Re: Chained send-hooks
On Tue, Nov 25, 2008 at 05:31:19PM +0100, Jeremie Le Hen wrote: To sum up, it seems that the address matched with ~f stay the same while all send-hooks are processed. Is it the expected behaviour? Yes, this is expected behavior. You want to change the last send-hook to send2-hook, which should match on the changed address. me
Displaying mails in thread mode
Hello, How to display mails in thread mode like Gmail does? Could you paste your thread-mode related settings? Thanks. Best Lars
Re: Displaying mails in thread mode
* Chengqi(Lars) Song ([EMAIL PROTECTED]) wrote: Hello, How to display mails in thread mode like Gmail does? Could you paste your thread-mode related settings? Thanks. Best Lars Hi Lars, From within mutt, you can change the mail sort order by pressing o and then t for threads, or d for date received - there are many other options too. You can also configure default behaviour in your .muttrc: Set the default sort order (will apply to all folders/mailboxes): folder-hook . set sort=threads To set a folder/mailbox specific one: folder-hook folder-name set sort=date-received etc, Kind Regards, Jaime