Re: Mutt finding new mail
On Wed, Dec 05, 2001 at 03:10:44PM -0800, Will Yardley wrote: well i think the question was how mutt knows which folders have new mail. for mbox folders it uses the modification time (mtime i think, but i always get that crap mixed up) to see when the file was last modified. A bit of extra info: it compares the access time to the modification time, to see if there has been any new mail added since the last time you looked at the folder. - Paul -- Paul Roberts [EMAIL PROTECTED]
Mutt finding new mail
Hi there, folks! I have a wondering. How does mutt checks for new mail? I mean, when I press cret, how does it knows which folder have new mails, and which one does not? That's all ;) Take care! -- Cleber S. Mori Monitor Lab Linux 2o Ano - Bacharelado em Ciências da Computação ICMC - Instituto de Ciências Matemáticas e de Computação USP - Universidade de São Paulo - São Carlos HPage: http://grad.icmc.sc.usp.br/~cleber/ E-mail: [EMAIL PROTECTED] ICQ/UIN:1409389
Re: Mutt finding new mail
* Cleber S. Mori [EMAIL PROTECTED] [06-12-2001 00:04]: | How does mutt checks for new mail? | I mean, when I press cret, how does it knows which folder have new mails, | and which one does not? Check the mailboxes directive: here you specify which mailboxes receive mail. The order you specify them in, determines which one with new mail shows up first. HTH, -- René Clerc - ([EMAIL PROTECTED]) Too clever is dumb. -Ogden Nash msg21121/pgp0.pgp Description: PGP signature
Re: Mutt finding new mail
Ren? Clerc wrote: * Cleber S. Mori [EMAIL PROTECTED] [06-12-2001 00:04]: How does mutt checks for new mail? I mean, when I press cret, how does it knows which folder have new mails, and which one does not? Check the mailboxes directive: here you specify which mailboxes receive mail. The order you specify them in, determines which one with new mail shows up first. well i think the question was how mutt knows which folders have new mail. for mbox folders it uses the modification time (mtime i think, but i always get that crap mixed up) to see when the file was last modified. with maildir i assume it just checks to see if there are messages in folder/new/ but i could be wrong there. -- William Yardley System Administrator, Newdream Network [EMAIL PROTECTED] http://infinitejazz.net/will/pgp/gpg.asc
Mutt+procmail - finding new mail
Hi all! Well, I hope this isn't so dummy... I use procmail to filter my mails, but I have like 20 folders, like: ~/mail/Lists/PERL ~/mail/Grad/Grad-L ~/mail/Personal/Dad and so on... How do I make to mutt find my new mails? Like, I want my mutt to, when it starts, tell me: Hey, you have mail in ~/mail/Lists/PERL, or better, just take me to the PERL mail archives. I thought mutt -Z would do that, but it just, actualy, say to me: you have no mail. Yes, I did put in my .muttrc: mailboxes +Lists/PERL +Grad/Grad-L +Personal/Dad set check_new etc... and, yes, when I mutt -y, it shows me the wright folders. My question: How can I open mutt, and it show me new mails, and take me to new mails, and, when I press SPACE, it takes me to the next new mail? I realy apreciate if some one help me here. I wanted this since I set my procmail up (Like a year?) I just migrated from pine, because GNU/GPL and because mutt just DONT SUCKs! Thanks 4 Ur time, and sorry for my bd english! -- Cleber S. Mori Monitor Lab Linux 2o Ano - Bacharelado em Ciências da Computação ICMC - Instituto de Ciências Matemáticas e de Computação USP - Universidade de São Paulo - São Carlos HPage: http://grad.icmc.sc.usp.br/~cleber/ E-mail: [EMAIL PROTECTED] ICQ/UIN:1409389
Re: Finding new mail
On Sat, Apr 14, 2001 at 10:18:30PM -0700, CB wrote: Well now that I'm armed with a little bit of help, gpg should be a bit easier to get working (going to first key party next weekend). Don't forget to upload/post your public key to a keyserver after you're set. Cheers. -- Horace G. Friend III [EMAIL PROTECTED] GnuPG DSA/ElGamal Key Fingerprint 9295 80C4 C723 621B 9C2D B53E D432 7936 4CA9 8AD6
Finding new mail
Currently, I can find new mail when I press "c" and I look at the modify date/time of the list of folders. Another mutt user told me that when I receive new mail, the bottom status line should tell me that I have received new mail. It does not. I suspect this is because I run procmail in daemon mode, so mutt cannot know (unless it was constantly checking the timestamp). Is this correct? Also, when I press the "c" key, he told me I should get a list of folders with new mail. Instead, I get the entire list. I have it sorted reverse date, so I just use my thinking cap and figure out where the new messages are (that and a tail -f procmaillog in the next window). But I would like to make it work the way he described. Again, is running procmail as a daemon causing this to not work properly? -- Blue skies... Todd | Get a bigger hammer! | Sometimes you get what you want. | | http://www.mrball.net | Sometimes you get experience. | | http://faq.mrball.net | --unknown origin |
Re: Finding new mail
use the mailboxes directive to turn on notifications for mailboxes. here's mine... mailboxes `echo $HOME/mail/* | tr " " "\n" | grep -Ev "sent" | tr "\n" " "` /var/spool/mail/graffix that allows notifications for "/var/spool/mail/graffix" and everythig in "$HOME/mail/" except for the sent folder. dan * CB ([EMAIL PROTECTED]) wrote: Currently, I can find new mail when I press "c" and I look at the modify date/time of the list of folders. Another mutt user told me that when I receive new mail, the bottom status line should tell me that I have received new mail. It does not. I suspect this is because I run procmail in daemon mode, so mutt cannot know (unless it was constantly checking the timestamp). Is this correct? Also, when I press the "c" key, he told me I should get a list of folders with new mail. Instead, I get the entire list. I have it sorted reverse date, so I just use my thinking cap and figure out where the new messages are (that and a tail -f procmaillog in the next window). But I would like to make it work the way he described. Again, is running procmail as a daemon causing this to not work properly? -- Blue skies... Todd | Get a bigger hammer! | Sometimes you get what you want. | | http://www.mrball.net | Sometimes you get experience. | | http://faq.mrball.net | --unknown origin |
Re: Finding new mail
On (14/04/01 08:07), CB wrote: Currently, I can find new mail when I press "c" and I look at the modify date/time of the list of folders. Another mutt user told me that when I receive new mail, the bottom status line should tell me that I have received new mail. It does not. I suspect this is because I run procmail in daemon mode, so mutt cannot know (unless it was constantly checking the timestamp). Is this correct? I shouldn't think so... My .muttrc contains the line # if open and idle for this long, time out and check for new mail set timeout=60 Also, when I press the "c" key, he told me I should get a list of folders with new mail. Instead, I get the entire list. I have it I get the entire list, with folders containing new mail marked as N. Mutt only knows about folders you specify with "mailboxes", ie mailboxes /var/spool/mail/ailbhe If anyone does know a way of displaying only folders with new mail when one presses "c", I'd love to hear about it. I asked a few days ago, and no-one seems to know. Ailbhe -- Homepage: http://ailbhe.ossifrage.net/
Re: Finding new mail
* CB [EMAIL PROTECTED], 2001-04-14 17:29 +0200: Currently, I can find new mail when I press "c" and I look at the modify date/time of the list of folders. Another mutt user told me that when I receive new mail, the bottom status line should tell me that I have received new mail. It does not. I suspect this is because I run procmail in daemon mode, so mutt cannot know (unless it was constantly checking the timestamp). Is this correct? You might want to try one: set status_format="%f (%s) [%M/%m] [N=%n,*=%t,boxN=%b]% %P" set timeout=10 "%b" is the setting you're looking for, "timeout" controls the update interval. Also, when I press the "c" key, he told me I should get a list of folders with new mail. Instead, I get the entire list. Did you set "mailboxes", like in mailboxes ! +mutt-users +onemoremailbox +anothermailbox maybe in combination with subscribe mutt-users mutt-users@mutt\.org Someone else mentioned earlier in this thread that you have to set $folder and others before to make this work. I have it sorted reverse date, so I just use my thinking cap and figure out where the new messages are (that and a tail -f procmaillog in the next window). But I would like to make it work the way he described. Again, is running procmail as a daemon causing this to not work properly? Not that I could think of. BTW sorting by threads is way better IMHO. HTH Andre Berger[[EMAIL PROTECTED]] PGP signature
Re: Finding new mail
On Sat, Apr 14, 2001 at 06:11:53PM +0100, Ailbhe Leamy wrote: On (14/04/01 08:07), CB wrote: Currently, I can find new mail when I press "c" and I look at the modify date/time of the list of folders. Another mutt user told me that when I receive new mail, the bottom status line should tell me that I have received new mail. It does not. I suspect this is because I run procmail in daemon mode, so mutt cannot know (unless it was constantly checking the timestamp). Is this correct? I shouldn't think so... My .muttrc contains the line # if open and idle for this long, time out and check for new mail set timeout=60 Also, when I press the "c" key, he told me I should get a list of folders with new mail. Instead, I get the entire list. I have it I get the entire list, with folders containing new mail marked as N. Mutt only knows about folders you specify with "mailboxes", ie mailboxes /var/spool/mail/ailbhe If anyone does know a way of displaying only folders with new mail when one presses "c", I'd love to hear about it. I asked a few days ago, and no-one seems to know. I use: # mailboxes mailboxes =luni-spool mailboxes =mutt-spool #spool hooks for default read messages mbox-hook luni-spool=luni mbox-hook mutt-spool=mutt to define which folders mutt should look in for new mail. I use procmail to put the mail in these spool files. If I have new mail in any of my spool files, pressing 'c' pops up the first one it finds and then if there are more with mail, pressing 'c' again goes to the next one with mail. This also influences what the list shows when you press Tab; it toggles between the defined mail spools and all mail folders. -- David Rock [EMAIL PROTECTED] PGP signature
Re: Finding new mail
On Sat, Apr 14, 2001 at 06:18:43PM +0200, Andre Berger wrote: Did you set "mailboxes", like in mailboxes ! +mutt-users +onemoremailbox +anothermailbox No, I do not have the plus sign in front of any of my mailboxes that I have listed. I'll try that. Also, is it case-sensitve? I'll assume that it is. maybe in combination with subscribe mutt-users mutt-users@mutt\.org I am using the subscribe function, but mine do not look like this. I don't have the second parameter. I just list all of my subscribed lists on three long lines. Maybe that's part of my problem. I have it sorted reverse date, so I just use my thinking cap and figure out where Not that I could think of. BTW sorting by threads is way better IMHO. I have folder hook set to sort all folders by thread. The only thing that sorts by reverse date is the folder list. But I think I've got some major misunderstanding of the parameter settings and need to go modify them before I ask further questions. Is there a comprehensive parameter listing anywhere? I've not been able to find one, but I'm probably looking at the wrong places. The man page for mutt says nothing about the muttrc file and there's no man page for muttrc, so I'm coming up with parameters from people's examples. -- Blue skies... Todd | Get a bigger hammer! | Sometimes you get what you want. | | http://www.mrball.net | Sometimes you get experience. | | http://faq.mrball.net | --unknown origin |
Re: Finding new mail
CB wrote: On Sat, Apr 14, 2001 at 06:18:43PM +0200, Andre Berger wrote: Did you set "mailboxes", like in mailboxes ! +mutt-users +onemoremailbox +anothermailbox No, I do not have the plus sign in front of any of my mailboxes that I have listed. I'll try that. Also, is it case-sensitve? I'll assume that it is. The mailboxes you specify are filenames of mailboxes that you want Mutt to recognize as those that receive mail. When you use "+" or "=" as part of the filename, it expands to the value of the $folder variable. Note, also, that "!" expands to the value of the $spool variable. It's important to specify these before the mailboxes commands in the ~/.muttrc file. maybe in combination with subscribe mutt-users mutt-users@mutt\.org I am using the subscribe function, but mine do not look like this. I don't have the second parameter. I just list all of my subscribed lists on three long lines. Maybe that's part of my problem. You need only specify as much of the address of the mailing list as you need to ensure a lack of ambiguity; also, you can specify a number of mailing lists on a single line. I have it sorted reverse date, so I just use my thinking cap and figure out where Not that I could think of. BTW sorting by threads is way better IMHO. I have folder hook set to sort all folders by thread. The only thing that sorts by reverse date is the folder list. But I think I've got some major misunderstanding of the parameter settings and need to go modify them before I ask further questions. Is there a comprehensive parameter listing anywhere? I've not been able to find one, but I'm probably looking at the wrong places. The man page for mutt says nothing about the muttrc file and there's no man page for muttrc, so I'm coming up with parameters from people's examples. Have you not read the docs?! On my system it is located at /usr/local/doc/mutt/manual.txt Also, there is a default macro that pipes it through less when I press the F1 key. Reading that file is an absolute must! =o) It should help to clear up a lot for you. -- Mr. Wade -- Linux: The Choice of the GNU Generation
Re: Finding new mail
Ailbhe Leamy wrote: If anyone does know a way of displaying only folders with new mail when one presses "c", I'd love to hear about it. I asked a few days ago, and no-one seems to know. I'd like to know how to do that, too. I thought about it the first time you mentioned it, and couldn't come up with anything using the Mutt commands. I guess one could write a script to examine a mailbox file's last modification time and last access time... that would let you know which one's have new mail, but how to incorporate that into Mutt smoothly is a bit beyond me. :) -- Mr. Wade -- Linux: The Choice of the GNU Generation
Re: Finding new mail
Wade A. Mosely wrote: The mailboxes you specify are filenames of mailboxes that you want Mutt to recognize as those that receive mail. When you use "+" or "=" as part of the filename, it expands to the value of the $folder variable. Note, also, that "!" expands to the value of the $spool variable. It's important to specify these before the mailboxes commands in the ~/.muttrc file. Ermm... I meant $spoolfile instead of $spool for the variable I mentioned. Sorry! :) -- Linux: The Choice of the GNU Generation
Re: Finding new mail
On Sun, Apr 15, 2001 at 12:26:22AM -0400, Wade A. Mosely wrote: "+" or "=" as part of the filename, it expands to the value of the $folder variable. Note, also, that "!" expands to the value of the $spool variable. It's important to specify these before the mailboxes commands in the ~/.muttrc file. Yes, I found that by accident today. The ! is not important for me as I all mail being filtered by default. If it doesn't match any mailing list folder, it gets dumped into an Inbox folder. Nothing ever makes it to the spool directory. I had all my mailboxes setup incorrectly because I was not specifying the ( full path || + ). All work correctly now except for one list that (L)ist reply does not work. I'm investigating that. Is there a comprehensive parameter listing anywhere? I've not been able Have you not read the docs?! On my system it is located at Only what is located online at mutt.org. I was about to say how disappointed I was that there was not much documentation online, but I just went and looked again and realized that I am an idiot. I saw the link for "HTML" or "Text" under Man Page and thought to myself, "why would I want an html AND a text version of the man page?" and now it's damn obvious that those are options for viewing the manual, which of course is very comprehensive. In too big of a hurry. My bad. /usr/local/doc/mutt/manual.txt Also, there is a default macro that pipes it through less when I press the F1 key. Reading that file is an absolute must! =o) It should help to clear up a lot for you. Crap. Yes it does. I pressed ? repeatedly and cursed at how little information appeared. Again, too big of a hurry and again, my bad. Well now that I'm armed with a little bit of help, gpg should be a bit easier to get working (going to first key party next weekend). -- Blue skies... Todd | Get a bigger hammer! | Sometimes you get what you want. | | http://www.mrball.net | Sometimes you get experience. | | http://faq.mrball.net | --unknown origin |
Re: Finding new mail
On Sun, Apr 15, 2001 at 12:31:57AM -0400, Wade A. Mosely wrote: If anyone does know a way of displaying only folders with new mail when one presses "c", I'd love to hear about it. I asked a few days I'd like to know how to do that, too. I thought about it the I'm satisfied with the file list displaying an "N" for new messages. I don't know that it would be wise (at least in my case) to not see all the folders. Out of sight, out of mind. But then again, I'd like to see how to do it. I'm more interested in the exercise than actually using the results in practice. -- Blue skies... Todd | Get a bigger hammer! | Sometimes you get what you want. | | http://www.mrball.net | Sometimes you get experience. | | http://faq.mrball.net | --unknown origin |