Re: Send-hook "set my_hdr" Not Working as Expected
Koralatov wrote, on Wed, May 09, 2012 at 10:49:18PM +0100: > [snip] > >I thought I'd fixed it by using the following: > > send-hook * "unmy_hdr From:" > send-hook * "my_hdr From: Michael Graham " > send-hook @mutt.org "unmy_hdr From:" > send-hook @mutt.org "my_hdr From: Koralatov " The star is (afaik) not a valid regular expression in mutt. Use a period instead for "match anything": send-hook . "unmy_hdr From:" Also, on the subject of send-hooks, send2-hooks and reply-hooks, read up on http://durak.org/sean/pubs/software/mutt/configuration.html#send-hook -- Jostein
Re: New mail indicator
I wonder if my work flow is different with all you guys or I'm the only one who face this problem? Sometimes when reading a new mail, I must going to an other folder and after some searching, I have no idea where is my previous folder. Or is there some tool that I don't know but every one use to make your life with mutt easier? On Wed, Apr 18, 2012 at 10:51:02PM +0700, Diep Pham Van wrote: > I have a very simple question but cannot find the answer anywhere. > > I have mutt setup with offlineimap using maildir format. When I press > `y` to change to one of my mailbox, and there is some unread mail in > the current folder, if I change to another folder, the new mail > indicator ('N' character) disappear. How can I keep that 'N'? I > always have a hard time searching for unread mails. > > -- > PHẠM Văn Điệp > > h : http://favadi.com > e : i...@favadi.com > m : +84 984 339 841 >_ > ASCII ribbon campaign ( ) > - against HTML email X > & vCards / \
Re: New mail indicator
* Diep Pham Van [05-10-12 08:01]: > I wonder if my work flow is different with all you guys or I'm the > only one who face this problem? > > Sometimes when reading a new mail, I must going to an other folder and > after some searching, I have no idea where is my previous > folder. > > Or is there some tool that I don't know but every one use to make your > life with mutt easier? from present instance of mutt and start another or open a new terminal and start a second instance of mutt or use a quick-pad note to remember present directory or use a pencil and paper or ... I prefer a new terminal/second instance of mutt or "ctrl-z". I maintain one continuous instance of mutt on a specific machine via a tmux session (similar to screen). -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: New mail indicator
On 10.05.12 08:08, Patrick Shanahan wrote: > * Diep Pham Van [05-10-12 08:01]: > > Sometimes when reading a new mail, I must going to an other folder > > and after some searching, I have no idea where is my previous > > folder. > from present instance of mutt and start another > or > open a new terminal and start a second instance of mutt > or > use a quick-pad note to remember present directory > or > use a pencil and paper > or > ... Or hit 'c' (to change folder), then to cycle through previously visited folders, until a likely candidate crops up, then whack . Erik -- It is a government sponsored Ponzi scheme where weak banks are supporting weak sovereigns who in turn are standing behind the banks - a process which can be described as two drowning people clinging to each other for mutual support. - Satyajit Das on EU's LTRO http://www.abc.net.au/unleashed/3962262.html
Re: New mail indicator
I have about 30 folders, so that can take minute to find out. :) On Thu, May 10, 2012 at 10:35:55PM +1000, Erik Christiansen wrote: > On 10.05.12 08:08, Patrick Shanahan wrote: > > * Diep Pham Van [05-10-12 08:01]: > > > Sometimes when reading a new mail, I must going to an other folder > > > and after some searching, I have no idea where is my previous > > > folder. > > > from present instance of mutt and start another > > or > > open a new terminal and start a second instance of mutt > > or > > use a quick-pad note to remember present directory > > or > > use a pencil and paper > > or > > ... > > Or hit 'c' (to change folder), then to cycle through > previously visited folders, until a likely candidate crops up, then > whack . > > Erik > > -- > It is a government sponsored Ponzi scheme where weak banks are supporting weak > sovereigns who in turn are standing behind the banks - a process which can be > described as two drowning people clinging to each other for mutual support. > > - Satyajit Das on EU's LTRO http://www.abc.net.au/unleashed/3962262.html
Mail folder backtracking [Was: New mail indicator]
On 10.05.12 19:53, Diep Pham Van wrote: > I have about 30 folders, so that can take minute to find out. :) Although I have a little over one thousand mail folders¹, it only takes seconds. That is because cycles through the list of last _visited_ folders, in reverse order. If that is too hard, then hit 'y' instead of 'c', and pick a mailbox from the presented list. If the folder to return to isn't a mailbox, therefore does not appear in the list, and tapping still doesn't appeal, then this may help: Hit 'c', type the first few characters of the destination folder name, hit twice, then select from that shortlist. There may often be only one name in the list, if you only have 30 in total. If you can't remember a few characters of the folder's name, then go back to the first method. ;-) Erik ¹ Only 12 are incoming mailboxes. The remaining 1011 contain sorted mail, so are visited less frequently. -- The advantage of a bad memory is that one enjoys several times the same good things for the first time. - Friedrich Nietzsche
Re: New mail indicator
On Thu, May 10, 2012 at 06:58:28PM +0700, Diep Pham Van wrote: > I wonder if my work flow is different with all you guys or I'm the > only one who face this problem? > > Sometimes when reading a new mail, I must going to an other folder and > after some searching, I have no idea where is my previous > folder. > > Or is there some tool that I don't know but every one use to make your > life with mutt easier? > > On Wed, Apr 18, 2012 at 10:51:02PM +0700, Diep Pham Van wrote: > > I have a very simple question but cannot find the answer anywhere. > > > > I have mutt setup with offlineimap using maildir format. When I press > > `y` to change to one of my mailbox, and there is some unread mail in > > the current folder, if I change to another folder, the new mail > > indicator ('N' character) disappear. How can I keep that 'N'? I > > always have a hard time searching for unread mails. > > There's a sidebar patch which is popular, it shows your mailboxes in a sidebar along with the number of mails and unread mails in each box. I used to be kind of addicted to it myself, but if you switch imap accounts in mutt the sidebar doesn't keep up, just keeps adding the mailboxes to the list without getting rid of the old ones from the previous account. Probably the only real drawback, but it was confusing enough I just went back to straight mutt. As someone else mentioned, hitting "y" gives you the list, and "c" will automatically suggest boxes with new, unread mail. Good enough for me, YMMV. -- ❤ ♫ ❤ ♫ ❤ ♫ ❤ Indulekha
Re: Mail folder backtracking [Was: New mail indicator]
On Fri, May 11, 2012 at 12:14:23AM +1000, Erik Christiansen wrote: > On 10.05.12 19:53, Diep Pham Van wrote: > > I have about 30 folders, so that can take minute to find out. :) > > Although I have a little over one thousand mail folders¹, it only takes > seconds. That is because cycles through the list of last > _visited_ folders, in reverse order. > > If that is too hard, then hit 'y' instead of 'c', and pick a mailbox > from the presented list. If the folder to return to isn't a mailbox, > therefore does not appear in the list, and tapping still > doesn't appeal, then this may help: > > Hit 'c', type the first few characters of the destination folder name, > hit twice, then select from that shortlist. There may often be > only one name in the list, if you only have 30 in total. I have many folders start with [Gmail]. :) > > If you can't remember a few characters of the folder's name, then go > back to the first method. ;-) > > Erik > > ¹ Only 12 are incoming mailboxes. The remaining 1011 contain sorted > mail, so are visited less frequently. > > -- > The advantage of a bad memory is that one enjoys several times the same > good things for the first time. >- Friedrich Nietzsche >
Re: Send-hook "set my_hdr" Not Working as Expected
On Wed, May 09, 2012 at 10:47:58PM +0100, Koralatov wrote: send-hook * "unmy_hdr From:" send-hook * "my_hdr From: Michael Graham " send-hook @mutt.org "unmy_hdr From:" send-hook @mutt.org "my_hdr From: Koralatov " I use this pattern: send-hook . my_hdr "From: " send-hook "~t @mutt.org"my_hdr "From: " send-hook "~t @example.com" my_hdr "From: " It works for me. -- Ed Blackman signature.txt Description: Digital signature
Re: New mail indicator
On Thu, May 10, 2012 at 06:58:28PM +0700, Diep Pham Van wrote: Sometimes when reading a new mail, I must going to an other folder and after some searching, I have no idea where is my previous folder. Or is there some tool that I don't know but every one use to make your life with mutt easier? I read mutt inside of screen, and use a macro to change folders such that the new folders is opened in a separate screen window, keeping the original folder where I left it. macro index F 'set my_folder=`mutt-prompt "Change to folder" \\`; push "!screen -X screen mutt -f $my_folder\"' That's all one line. It uses mutt-prompt, which I got from this mailing list a while ago. I'd be happy to post or send it if anyone's interested. -- Ed Blackman signature.txt Description: Digital signature
Re: Send-hook "set my_hdr" Not Working as Expected
On Thu, May 10, 2012 at 09:28:03PM +0100, Koralatov wrote: On Thu, May 10, 2012 at 19:09, Ed Blackman wrote: I use this pattern: send-hook . my_hdr "From: " send-hook "~t @mutt.org"my_hdr "From: " send-hook "~t @example.com" my_hdr "From: " I'm testing it now, but so far, it seems to work. Should I use the same pattern ("~t b...@blah.com") for "set signature" as well? Assuming you want the signature to change in sync with the From: line, yes. You can use any patterns that fit your needs, not just ~t. -- Ed Blackman signature.txt Description: Digital signature
Re: Mail folder backtracking [Was: New mail indicator]
* Diep Pham Van [2012-05-10 12:07 -0400]: > I have many folders start with [Gmail]. :) Have you tried hitting 'c', then '-', then enter? That takes you to your last visited folder. Regards, -- dave [ please don't CC me ] pgpGQ58bPvUSJ.pgp Description: PGP signature