Re: Command/Macro to show new messages via IMAP?
--> David Woodfall [2013-02-05 18:46:56 +]: > >And I think I've found a problem with my mailboxes commands. When I > >tried changing the mailboxes for mailing lists I suddenly started > >getting a message count in the $folder_format working, so it has to be > >something to do with that I think. > > Indeed that was a problem. I also found that only %C, %N and %f work > for imap. Great stuff, glad you found the solution. It usually is in the man pages with some trial and error. Jamie -- Primary Key: 4096R/1D31DC38 2011-12-03 Key Fingerprint: A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38
Re: Whatever happened to xterm_set_titles ?
On 05.02.13 11:05, Brendan Cully wrote: > That's a third-party patch, as others have pointed out. But using the > | feature of format strings you can get similar functionality. See > contrib/mutt_xtitle in the mutt repo: > > http://dev.mutt.org/hg/mutt/file/tip/contrib/mutt_xtitle Many thanks, Brendan. That works fine. Erik -- We are drowning in information, but starved for knowledge. - John Naisbitt, Megatrends
Re: Muttprint
--> David Woodfall [2013-02-06 03:04:41 +]: > On Tue, Feb 05, 2013 at 09:34:54PM -0500, Ed put forth the > proposition: > >I keep getting this error:: > > > >sh: 1: lpr: not found > > > >but I don't know where it is coming from. In my muttprintrc I have > >the printer set to hp-psc-1310 which is the system printer and is > >using CUPS. Its a USB printer, so where is the lpr coming from ? > > > >Ed > > lpr is one of the system commands to print. There are also lp and > lpr-cups IIRC. Maybe you need to specify the print command somewhere? > When you installed cups, it installs its own lp* binaries, usually under /usr/local. So you need to override the systems default lp* commands in /usr/bin either by removing thier executable bit or by putting /usr/local/bin before /usr/bin in your $PATH. At the shell prompt, do lp and it will list all the lp* commands on your system. All my cups commands are in /usr/local/bin and /usr/local/sbin. When you installed cups you will have had to set up the printer by using the local web interface at http://localhost:631 in a browser and making sure from there, using the admin tool, that your printer is found and configured as the default printer. Have you done all of that already? However, I do use a BSD system so my set up will be different to a Debian system, but the principals of cups and setting it up are the same. The command lpr is the correct command to use from the command-line and any command-line programs like mutt, you just need to point it/them to the cups lpr instead of the default versions. In your muttrc, setting $print_command to something like "cups" is incorrect. It must be set to either a script that deals with the print commands required or to a print binary installed on your system, such as set print_command=/usr/local/bin/lpr. I have not used muttprint before but you should review its documentation on how to set it up correctly. As I understand it, it's a trivial thing. -- Primary Key: 4096R/1D31DC38 2011-12-03 Key Fingerprint: A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38
Re: Muttprint SOLVED
On Feb 05, Ed wrote: > I keep getting this error:: > > sh: 1: lpr: not found > > but I don't know where it is coming from. In my muttprintrc I have > the printer set to hp-psc-1310 which is the system printer and is > using CUPS. Its a USB printer, so where is the lpr coming from ? > > Ed Thanks to everyone for the help, printing is now working perfectly. Here is what I did to get it going. Installed cups-bsd. Set PRINTER to my printer, in this case its a hp-psc-1310. Set print command to "lpr -P$PRINTER". I already had everything set in .muttrc so I knew that was not the problem. I haven't used mutt in years but happen to come across my old .muttrc so I thought I would give it a try. I don't remember having this much trouble with the printing. Thanks again everyone for the help. Ed
Re: Command/Macro to show new messages via IMAP?
On Wed, Feb 06, 2013 at 08:14:24AM +, James Griffin put forth the proposition: --> David Woodfall [2013-02-05 18:46:56 +]: >And I think I've found a problem with my mailboxes commands. When I >tried changing the mailboxes for mailing lists I suddenly started >getting a message count in the $folder_format working, so it has to be >something to do with that I think. Indeed that was a problem. I also found that only %C, %N and %f work for imap. Great stuff, glad you found the solution. It usually is in the man pages with some trial and error. Actually it's not in the man pages, but it would have saved me some time if it had been.
Equivalent to 'limit' for index?
Is there a way of 1) Doing a 'limit' in the index, which shows only folders with new mail, or 2) A file-mask that I can use to do the same? Man page and google didn't find anything, and I tried making a macro for limit for the index but it didn't work. Thanks -- When all you have is a Swiss Army Knife, every problem looks like email. -- Peter da Silva
Re: Equivalent to 'limit' for index?
Hi David, On Wed, Feb 06, 2013 at 09:59:48PM +, David Woodfall wrote: > 1) Doing a 'limit' in the index, which shows only folders with new mail, I also asked this a while ago, and no, it isn't. > 2) A file-mask that I can use to do the same? Yes, that one actually exists. In guess it is "m" in the default key bindings. Check the help screen while you are in the index. But I guess there is no way to abuse this for listing folders with new mails. But I had similiar problems, and figured that it would be best to generate the mailboxes in the config by a script that delivers either all mailboxes or just the ones with new mail. You can check it out in my git-repo: http://git.ak-online.be/?p=kandre/mutt.git;a=tree;f=.mutt;h=f45a42e9df1b58be7a18ae387b40825dc2815bec;hb=refs/heads/master You need mailboxes.pl, mailboxes.pl.sh and the snippets that call it from muttrc. Regards, Andre -- Andre Klärner smime.p7s Description: S/MIME cryptographic signature
Re: Equivalent to 'limit' for index?
On Thu, Feb 07, 2013 at 06:43:08AM +0100, Andre Klärner put forth the proposition: Hi David, On Wed, Feb 06, 2013 at 09:59:48PM +, David Woodfall wrote: 1) Doing a 'limit' in the index, which shows only folders with new mail, I also asked this a while ago, and no, it isn't. 2) A file-mask that I can use to do the same? Yes, that one actually exists. In guess it is "m" in the default key bindings. Check the help screen while you are in the index. But I guess there is no way to abuse this for listing folders with new mails. But I had similiar problems, and figured that it would be best to generate the mailboxes in the config by a script that delivers either all mailboxes or just the ones with new mail. You can check it out in my git-repo: http://git.ak-online.be/?p=kandre/mutt.git;a=tree;f=.mutt;h=f45a42e9df1b58be7a18ae387b40825dc2815bec;hb=refs/heads/master You need mailboxes.pl, mailboxes.pl.sh and the snippets that call it from muttrc. Regards, Andre -- Andre Klärner Thanks. That looks interesting.