Re: 3 questions: Renaming folders with hook + browser reverse date
Hi, Use 'sort' instead of 'sort-browser'. set sort=reverse-date ? doesn't work either... I get the threads: 288 r + Aug 17 Woodchuck ( 795) Calvin II 289 r + Aug 17 Woodchuck ( 48) └─┬─ 290 + Aug 17 Woodchuck ( 20) │ └─ 291 r + Aug 17 Woodchuck ( 11) └─ 292 + Aug 17 Woodchuck ( 49) └─ 293 + Aug 18 Woodchuck ( 49) └─ macro index F5 'c ~/mail/inbox ^M' doesn't work any more, with Mutt 1.5.16 (2007-06-09). It worked under fedora5 with Mutt 1.4.1i (2003-03-19) You didn't say what doesn't work means, doesn't work = when I press F5 mutt doesn't react at all; no error message wahtsoever and, of course, I do not get to inbox. termcap or terminfo data being used by mutt to determine the character sequence to send for F5 is missing or not correct for the terminal you are using. Check that your $TERM environment variable is correct. Then execute infocmp -1 | grep kf5 to see what character sequence, if any, is defined for F5. (-1 is minus one, not minus ell.) F5 is not missing. In my vimrc I have map F5 mx{v}gq'x and using it works as a charm. Nevertheless, elachistos| infocmp -1 | grep kf5 kf5=\E[15~, and I used that in muttrc to redefine it and didn't work either... Choosing other character, like 5 or P doesn't work either. Any hint? By the way, elachistos| echo $TERM xterm-xfree86 This is set so because it solved a lot of problems I had in mutt reconising the defined colours Pau
Re: How to navigate to a directory and *then* open the browser?
On Sat, Aug 18, 2007 at 07:05:45PM -0300, Angel Olivera wrote: On Sat 18.Aug.07 22:49, Chris G wrote: Is there any way that a macro (or something else) can be used to navigate to a directory and then open the browser so that one can open a mailbox there (or navigate further). I want to separate my mail into two hierarchies, one will be rooted at 'folder' so is where the browser starts by default but the other will be somewhere else and I want an easy way to get to its root before opening the browser and navigating. Here's something I use that might help you. ## Open archive folders macro index,pager ',a' 'enter-command set mask=.*enter\ change-folder-readonly~/.mail_archive/.completecomplete' \ 'open an archive folder' I already use the M command to 'unmask' a hidden directory and get to 'other places'. However the above won't work for me because where you have .mail_archive I have a directory not a mail folder and the result for me is an error about the destination not being a mailbox. At least I don't think it will work, what do you have in ~/.mail_archive? What does:- change-folder-readonly~/.mail_archive/.completecomplete actually do? OK, I understand what the change-folder-readonly command is doing and ~.mail_archive makes sense but what's that /. doing on the end? However I have just realised that the 'y' command/key in index does almost exactly what I want as the 'other hierarchy' I want to go to is essentially my incoming mailboxes area. How do I find out what the full key sequence generated by 'y' is? -- Chris Green
set spoolfile
I set my spoolfile in .muttrc as /home/user/Mail/username and did a cat /var/mail/username /home/user/Mail/username and it looks ok. But every time I fetchmail (using fetchmail), it gets ended up in /var/mail/username. Is there any way to fetch the mails in /home/user/Mail/username? I also use procmail to filter mails. Thanks.
Re: set spoolfile
On Sun, Aug 19, 2007 at 07:23:19PM +1000, Chris wrote: Is there any way to fetch the mails in /home/user/Mail/username? I also use procmail to filter mails. Here is my ~/.procmailrc It should do what you want. Note that there is some other stuff going on (virus / spam filtering) and the main processing into folders takes place in a separate file called rc.mlists. I have left many of the original comments in the file but note that I have overridden the final section that says Messages that fall through... to read /home/user/Msgs (my user Mail directory). HTH Mark Begin Variables section # It is essential that you set SHELL to a Bourne-type shell if # external commands are run from your procmailrc, for example if # you use rc.spamassassin, rc.quarantine, or other advanced recipes. # Setting SHELL should not be needed for the simple sorting recipes in # this step-by-step section, but to be safe and to future proof your # procmailrc, set it anyway! Details are in Check Your $SHELL and $PATH. SHELL=/bin/bash # Directory for storing procmail configuration and log files # You can name this variable anything you like, for example # PROCMAILDIR, or don't set it (but then don't refer to it!) PMDIR=$HOME/Procmail # LOGFILE should be specified ASAP so everything below it is logged # Put ## before LOGFILE if you want no logging (not recommended) LOGFILE=$PMDIR/pmlog # To insert a blank line between each message's log entry, # uncomment the next two lines (this is helpful for debugging) ## LOG= ## # Set VERBOSE to yes when debugging; VERBOSE default is no ## VERBOSE=yes # Replace $HOME/Msgs with the directory where your personal (non-system-spool) mailboxes reside # Mailboxes in maildir format or served by Courier IMAP are often in $HOME/Maildir # Mailboxes served by UW IMAP are sometimes in $HOME, sometimes in $HOME/mail, sometimes elsewhere MAILDIR=$HOME/Msgs # IMPORTANT: # * On most systems your $MAILDIR directory is a subdirectory of $HOME # * Upon reading a line that contains MAILDIR= # Procmail does a chdir to $MAILDIR # ...and $MAILDIR becomes the Procmail working directory # ...and relative paths are relative to $MAILDIR # * Do not include a trailing slash in your MAILDIR setting # * The $MAILDIR directory must exist and be writable by your LOGNAME # * The MAILDIR variable is an entirely different entity from maildir mailbox format End Variables section; Begin Processing section ## This section redirects mail to Clamav for virus checking :0fw | /usr/local/bin/clamassassin :0: * ^X-Virus-Status: Yes IN-virus # # spam filter # :0fw: spamassassin.lock * 256000 | /usr/bin/spamc # # spam folder for email identified as spam - change file/directory name # if necessary # :0: * ^X-Spam-Status: Yes IN-Spam # # end of spam filter # ## This section filters the mail into folders according to rules in rc.mlists ##INCLUDERC=$PMDIR/rc.testing INCLUDERC=$PMDIR/rc.mlists # Messages that fall through all your procmail recipes are delivered # to your default INBOX. To find out yours, see step 1 above. :0: * ^TO_* /home/user/Msgs End Processing section # EOF pgpUF7v9zHggX.pgp Description: PGP signature
Re: How to navigate to a directory and *then* open the browser?
On Sun, Aug 19, 2007 at 10:19:30AM +0100, Chris G wrote: However I have just realised that the 'y' command/key in index does almost exactly what I want as the 'other hierarchy' I want to go to is essentially my incoming mailboxes area. How do I find out what the full key sequence generated by 'y' is? In fact simply toggle-mailboxes does just about all I want, I hadn't spotted it before because one very rarely sees Help for browser. With toggle-mailboxes and the 'y' macro I think I have just about all I need! -- Chris Green
Re: calling firefox from mutt - urlview
On Sun, Aug 19, 2007 at 02:06:07PM +1000, Chris wrote: I'm using urlview v0.9 with mutt v1.5.12 and firefox v2.0.0.3 on OpenBSD 4.1. I just put the following line in my /home/me/.urlview and nothing in .muttrc or anywhere else. When I go to mutt and press CTRL-b, it shows the url list and when I click one of the URLs, it opens up firefox and nothing else happens. Any help would be much appreciated. Thanks. .urlview - REGEXP ((http|https|ftp|gopher):(//)?[^ \t]*|www\.[-a-z0-9.]+)[^ .,;\t\):] COMMAND /usr/bin/nohup firefox -remote openURL(%s, new-tab) /dev/null 21 The situation is a little different here (in my linux box). I use urlview v0.9 and mutt v1.5.13, ubuntu feisty. In order to open urls in firefox, I modified /etc/urlview/url_handler.sh file, change http_prgs=/usr/bin/x-www-browser:PW /usr/bin/www-browser:XT /usr/bin/galeon:PW /usr/bin/konqueror:PW /usr/bin/mozilla:PW /usr/bin/lynx:XT /usr/bin/w3m:XT /usr/bin/links:XT /usr/bin/X11/netscape:PW to http_prgs=/usr/bin/firefox:PW Since urlview has some problems handling mime-encoded input (which I saw in the /usr/share/doc/urlview/README.Debian file), I also add a macro in my muttrc: macro index,pager \Cb :set pipe_decode\n|urlview\n:unset pipe_decode\n\ call urlview to extract URLs out of a message And it works just fine. -- Cheers Feifei Jia signature.asc Description: Digital signature
Re: 3 questions: Renaming folders with hook + browser reverse date
On 2007-08-19, Vim Visual [EMAIL PROTECTED] wrote: Hi, Use 'sort' instead of 'sort-browser'. set sort=reverse-date ? doesn't work either... I get the threads: 288 r + Aug 17 Woodchuck ( 795) Calvin II 289 r + Aug 17 Woodchuck ( 48) +-+- 290 + Aug 17 Woodchuck ( 20) | +- 291 r + Aug 17 Woodchuck ( 11) +- 292 + Aug 17 Woodchuck ( 49) +- 293 + Aug 18 Woodchuck ( 49) +- :set sort=reverse-date-received The possible values are listed in this section of the manual: 3.269. sort Type: sort order Default: date Specifies how to sort messages in the index menu. Valid values are: date or date-sent date-received from mailbox-order (unsorted) score size spam subject threads to You may optionally use the reverse- prefix to specify reverse sorting order (example: set sort=reverse-date-sent). Another way to find the 'sort' value is to type the 'o' or 'O' commands, choose the sort order that appeals to you, then execute :set ?sort to see the value you'd need to put in your muttrc. That being said, if you executed set sort=reverse-date, you should not have seen messages sorted by threads. Perhaps 'sort' is also being set by a hook? macro index F5 'c ~/mail/inbox ^M' doesn't work any more, with Mutt 1.5.16 (2007-06-09). It worked under fedora5 with Mutt 1.4.1i (2003-03-19) You didn't say what doesn't work means, doesn't work = when I press F5 mutt doesn't react at all; no error message wahtsoever and, of course, I do not get to inbox. termcap or terminfo data being used by mutt to determine the character sequence to send for F5 is missing or not correct for the terminal you are using. Check that your $TERM environment variable is correct. Then execute infocmp -1 | grep kf5 to see what character sequence, if any, is defined for F5. (-1 is minus one, not minus ell.) F5 is not missing. In my vimrc I have map F5 mx{v}gq'x and using it works as a charm. Nevertheless, elachistos| infocmp -1 | grep kf5 kf5=\E[15~, and I used that in muttrc to redefine it and didn't work either... Choosing other character, like 5 or P doesn't work either. You're saying that you used one of those characters to define the macro, like this? macro index P 'c ~/mail/inbox ^M' And that didn't work either? Did you define the macro at mutt's command line or just in your muttrc? I just tried that macro by defining it at my command line and it worked fine. (I changed the folder name to one I had.) Is it possible that your muttrc file is not being read? By the way, elachistos| echo $TERM xterm-xfree86 This is set so because it solved a lot of problems I had in mutt reconising the defined colours You had these problems while you were using Fedora or only after moving to OpenBSD? Did you have problems with vim's colors at the same time? I'm sorry I'm giving you more questions than answers. I'm just not making any sense yet of what you're observing. Regards, Gary
Re: 3 questions: Renaming folders with hook + browser reverse date
On 2007-08-19, Gary Johnson [EMAIL PROTECTED] wrote: On 2007-08-19, Vim Visual [EMAIL PROTECTED] wrote: Hi, Use 'sort' instead of 'sort-browser'. set sort=reverse-date ? doesn't work either... I get the threads: 288 r + Aug 17 Woodchuck ( 795) Calvin II 289 r + Aug 17 Woodchuck ( 48) +-+- 290 + Aug 17 Woodchuck ( 20) | +- 291 r + Aug 17 Woodchuck ( 11) +- 292 + Aug 17 Woodchuck ( 49) +- 293 + Aug 18 Woodchuck ( 49) +- :set sort=reverse-date-received Or just :set sort=reverse-date to use the Date field of the message. (I don't know why I thought you wanted reverse-date-received.) Gary
Message-hook problem
I've wrestled with this one for a few days and I'm not getting anywhere. It should be simple (and probably is!) but I'm not seeing it. I've got a correspondent whose version of Entourage is sending oddly broken messages. When she types an apostrophe, MS converts it to a curly one. That's correctly rendered in the text/html version of the message. But in the text/plain portion, the same character is coded as a 0xb9 - a superscript 1. And that's what mutt displays. Not the end of the world - I can fix it easily enough in a reply with a vim mapping. But it's annoying and I'd like to fix the display. I tried this message-hook: message-hook ~f \[EMAIL PROTECTED] \ set display_filter='tr 271 047' The hook starts off out right - it fires on her emails and attempts the replacement at the right spot. But the replacement isn't what I'm looking for: Who\302's coming? Are you bringing a friend? I can't figure out where the \302 is coming from. I'm on a Mac (10.3.9); Mutt 1.5.16 (2007-06-09) System: Darwin 7.9.0 (Power Macintosh) ncurses: ncurses 5.2.20020209 (compiled with 5.2) libiconv: 1.9 Compile options: -DOMAIN -DEBUG -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK -USE_INODESORT -USE_POP +USE_IMAP -USE_SMTP -USE_GSS +USE_SSL_OPENSSL -USE_SSL_GNUTLS -USE_SASL +HAVE_GETADDRINFO -HAVE_REGCOMP +USE_GNU_REGEX +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME -CRYPT_BACKEND_GPGME -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS -HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE -ISPELL SENDMAIL=/usr/sbin/sendmail MAILPATH=/var/mail PKGDATADIR=/sw/share/mutt SYSCONFDIR=/sw/etc EXECSHELL=/bin/sh -MIXMASTER charset-hook ^unknown-8bit$ cp1252 charset-hook ^x-unknown$ cp1252 charset-hook ^x-user-defined$ cp1252 charset-hook ^us-ascii$ cp1252 charset-hook ^iso-8859-1$ cp1252 charset-hook ^iso-8859-8-i$ iso-8859-8 charset-hook ^gb2312$ gb18030 set assumed_charset=cp1252 tr (GNU coreutils) 5.96 Can somebody tell me what I'm missing? Thanks, Breen -- Breen Mullins Menlo Park, California
Re: Content-Length: and Lines: headers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday, August 18 at 06:38 PM, quoth Jon: I've noticed that whenever Mutt writes out a message (e.g. when saving a message to another directory) it adds a Content-Length: header to the output, and sometimes a Lines: header as well. Yup. Can I turn this behaviour off? Nope. AFAICT these headers are just some hacks for mbox files, but I only use Maildirs. Yes and no; that's where they originally came from, but they do help when calculating things for Maildir messages. For example, why read through an entire 2MB email to find out how many lines it has when you can just insert a Lines header? ~Kyle - -- The sharpest criticism often goes hand in hand with the deepest idealism and love of country. -- Robert F. Kennedy -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iD8DBQFGyRzpBkIOoMqOI14RAqm9AKCvzzA5aXUuJcGvdQxpo+TtCN2kXwCfe/pP 28svZ7vynliYmYh+MFoXCEk= =zTLh -END PGP SIGNATURE-
Reading replies
While in inbox index or pager, is there a way to read my reply, except change to the sent-mail folder to look it up there? -- Salve