<<< Date Index >>>     <<< Thread Index >>>

Re: next-page previous-page



Dave,

Cool sig!  

I'm at wit's end here. I have this problem on EVERY mutt installation I
have. Some mutts were compiled by me and some were installed from
binaries. Either way, I can't page forward and backward in a vi-like
manner.

So I'll take you up on the .muttrc offer.... 


~/.muttrc:

set realname="Jeff Fulmer";

set pager_context=4
set pager_index_lines=10
set pager_stop
# set sort=threads

# POP3 downloading
set pop_host=xxx.xxxxxxxxx.xxx
set pop_user=xxxxxxxx
set pop_pass=xxxxxx
set pop_delete

my_hdr Reply-to: "Jeff Fulmer" <jeff@xxxxxxxxxx>

# Host information
set hostname=xxxxxxxx.xxx
set nouse_domain
set nouse_from

# Address book
set query_command="abook --mutt-query '%s'"
macro pager A |/home/jeff/bin/addr2abook\n

# Signature
# set signature="signature |"
set signature="~/.signature"

# Open a browser
macro index \cb |urlview\n
macro pager \cb |urlview\n

# set the editor with text wrap.
set editor="/usr/bin/vim +':set textwidth=72' +':set wrap' +\`awk '/^$/ {print 
i+2; exit} {i++}' %s\` %s"

# set the location of the postponed file
set postponed="~/Mail/postponed"

##++
## NOTE: This doesn't work
##
macro index \cu |urlview\n 'call urlview to extract URLs out of a message'
macro pager \cu |urlview\n 'call urlview to extract URLs out of a message'  
##--

# Key Binding Binding
##++
## THESE DON'T WORK
##
bind  generic \cf       next-page
bind  pager \cf         next-page
bind  generic \cb       previous-page
bind  pager \cb         previous-page 
##--
bind  pager 'j'         next-line
bind  pager 'k'         previous-line
bind  pager +           next-line
bind  pager -           previous-line
bind  pager 'H'         top
bind  pager 'G'         bottom

bind  index <backspace> previous-entry
bind  index -           previous-entry
bind  index \eOm        previous-entry
bind  index +           next-entry
bind  index \eOk        next-entry
bind  index \eOM        display-message
bind  index \e[H        first-entry
bind  index \e[F        last-entry
bind  index \e[1~       first-entry
bind  index \e[4~       last-entry

bind  alias   <space>   select-entry
bind  alias   x         exit
bind  attach  x         exit
bind  browser x         exit

#
# Color
#
mono  message    bold
color message    white          red
color error      brightyellow   red
color indicator  white          red
color tree       brightmagenta  default
color signature  red            default
color attachment brightyellow   red
color search     brightyellow   red
color tilde      brightmagenta  default
color markers    brightmagenta  default
#color bold       brightblack    default
#color underline  green          default
color quoted     blue           default
color quoted1    magenta        default
color quoted2    red            default
color quoted3    green          default
color quoted4    cyan           default
color quoted5    blue           default
color quoted6    magenta        default
color quoted7    red            default
color quoted8    green          default
color quoted9    cyan           default
color hdrdefault brightred      default
color header     brightmagenta  default  "^(from):"
color header     brightblue     default  "^(subject):"
#color header     default        default  "[ \t]+[^:]*$"
color body       brightcyan     default  \
  
"((ftp|http|https)://|(file|mailto|news):|www\\.)[-a-z@0-9_.:]*[a-z0-9](/[^][{} 
\t\n\r\"<>()]*[^][{} \t\n\r\"<>().,:])?"
color body       brightcyan     default  "[-a-z_0-9.+]+@[-a-z_0-9.]+"
color body       red            default  "(^| )\\*[-a-z0-9äöüß*]+\\*[,.?]?[ \n]"
#
# End
#

The /etc/Muttrc file:


#
# System configuration file for Mutt
#

#
# $Id: Muttrc.in,v 2.0.4.3 1999/09/30 19:52:21 roessler Exp $
#

# default list of header fields to weed when displaying
#
ignore "from " received content- mime-version status x-status message-id 
references
ignore x-uidl in-reply-to x-sender x-mailer precedence sender
ignore x-authentication-warning lines resent-message-id resent-date
ignore x-received x-loop x-orcpt

# imitate the old search-body function
macro index \eb '/~b ' 'search in message bodies'

# simulate the old url menu
macro index \cb |urlview\n 'call urlview to extract URLs out of a message'
macro pager \cb |urlview\n 'call urlview to extract URLs out of a message'

# Show documentation when pressing F1
macro generic <f1> "!less -sM /usr/doc/packages/mutt/manual.txt\n" "Show Mutt 
documentation"
macro index   <f1> "!less -sM /usr/doc/packages/mutt/manual.txt\n" "Show Mutt 
documentation"
macro pager   <f1> "!less -sM /usr/doc/packages/mutt/manual.txt\n" "Show Mutt 
documentation"

# If Mutt is unable to determine your site's domain name correctly, you can
# set the default here.
#
set hostname=xxxxxxx.xxx
set nouse_domain

# If your sendmail supports the -B8BITMIME flag, enable the following
#
# set use_8bitmime

##
## More settings
##

# set abort_nosubject=ask-yes
# set abort_unmodified=yes
# set alias_file="~/.muttrc"
# set alias_format=""%2n %t %-10a   %r"
# set allow_8bit
# set alternates=""
# unset arrow_cursor
# unset ascii_chars
# unset askbcc
# unset askcc
set askcc
# set attach_format="%u%D%t%2n %T%.40d%> [%.7m/%.10M, %.6e, %s] "
# set attach_split
# set attach_sep="\n"
# set attribution="On %d, %n wrote:"
# unset autoedit
set autoedit
# unset auto_tag
# set beep
# set beep_new
# set charset="iso-8859-1"
# set check_new
# set collapse_unread
# set confirmappend
# set confirmcreate
# set copy=yes
# set date_format="!%a, %b %d, %Y at %I:%M:%S%p %Z"
# set default_hook="~f %s !~P | (~P ~C %s)"
set delete=ask-yes
# set dsn_notify=""
# set dsn_return=""
# unset edit_headers
# set editor=""
# set escape="~"
# unset fast_reply
# unset fcc_attach
# set folder="~/Mail"
# set folder_format="%N %F %2l %-8.8u %-8.8g %8s %d %f"
# set followup_to
# unset force_name
# set forward_decode
# unset forward_decrypt
# set forward_format="[%a: %s]"
# unset forward_quote
# set hdrs
# unset header
# set help
# unset hidden_host
# set history=10
# set hostname=""
# set in_reply_to="%i; from %n on %{!%a, %b %d, %Y at %I:%M:%S%p %Z}"
set include=ask-yes
# set indent_string="> "
# set index_format="%4C %Z %{%b %d} %-15.15L (%4l) %s"
# unset ignore_list_reply_to
# set ispell="/usr/bin/ispell"
# set locale="C"
# set mail_check=5
# set mailcap_path=""
# set mark_old
# set markers
# set mask="!^\\.[^.]"
# set mbox="~/mbox"
# set mbox_type="mbox"
# unset metoo
# unset menu_scroll
# unset meta_key
# unset mh_purge
# unset mime_forward
# unset mime_forward_decode
set move=ask-no
# set message_format="%s"
# set pager="builtin"
# unset pager_context
set pager_context=4
# set pager_format="-%S- %C/%m: %-20.20n   %s"
# set pager_index_lines=0
set pager_index_lines=10
# unset pager_stop
set pager_stop
# unset pip_split
# unset pipe_decode
# set pipe_sep="\n"
# set post_indent_string=""
# set postpone=ask-yes
set postpone=ask-no
# set postponed="~/postponed"
# set print=ask-no
# set print_command="lpr"
# set prompt_after=1
# set query_command=""
# set quit=yes
# set quote_regexp="^([ \t]*[|>:}#])+"
# set reply_regexp="^(re([\\[0-9\\]+])*|aw):[ \t]*"
# set read_inc=10
set read_inc=0
# unset read_only
# set realname=""
# set recall=ask-yes
# set record=""
# unset reply_self
# set reply_to=ask-yes
# set resolve
# unset reverse_alias
set reverse_alias
# unset reverse_name
# unset save_address
# set save_empty
# unset save_name
# set sendmail="/usr/sbin/sendmail -oem -oi"
set sendmail="/usr/sbin/ssmtp -oem -oi"
# set sendmail_wait=0
# set shell=""
# set sig_dashes
# set signature="~/.signature"
# set simple_search="~f %s | ~s %s"
# set smart_wrap
# set smileys="(>From )|(:[-^]?[][)(><}{|/DP])"
# set sort=date-sent
set sort=reverse-date-sent
# set sort_alias=alias
# set sort_aux=date-sent
# set sort_browser=subject
# set sort_re
# set spoolfile=""
# set status_chars="-*%A"
# set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? 
Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? 
%l?]---(%s/%S)-%>-(%P)---"
set status_format="--- Mutt --- %h : %f  [ %m msgs %?n new ?] -%>-"
# unset status_on_top
# unset strict_threads
# set suspend
# unset thorough_search
# unset tilde
set tilde
# set timeout=600
# set tmpdir=""
# set to_chars=" +TCF"
# unset uncollapse_jump
# unset use_8bitmime
# set use_domain
# set use_from
# set use_mailcap
# set visual=""
# set wait_key
# set wrap_search
# set write_bcc
# set write_inc=10
set write_inc=0

## The following options are only valid if you have
## compiled in IMAP support

# set imap_user=""
# set imap_pass=""
# set imap_checkinterval=""

## The following options are only valid if you have 
## compiled in PGP support

# unset pgp_autosign
# unset pgp_autoencrypt
# set pgp_encryptself
# unset pgp_long_ids
# unset pgp_replyencrypt
# unset pgp_replysign
# set pgp_sign_as=""
# set pgp_sign_micalg="pgp-md5"
# set pgp_strict_enc
# set pgp_timeout=300
# set pgp_verify_sig=yes

# set pgp_v2="/usr/bin/pgp"
# set pgp_v2_language="en"
# set pgp_v2_pubring=""
# set pgp_v2_secring=""

# set pgp_v5="no"
# set pgp_v5_language=""
# set pgp_v5_pubring=""
# set pgp_v5_secring=""

# set pgp_gpg="/usr/bin/gpg"
# set pgp_default_version="pgp2" # (Not really the default, but...)

# Here, "default" means the value of $pgp_default_version:

# set pgp_receive_version="default"
# set pgp_key_version="default"
# set pgp_send_version="default"

## The following options are only available if you have
## compiled in POP support

# unset pop_delete
# set pop_host=""
# set pop_port=110
# set pop_pass=""
# set pop_user=""
# unset pop_last




On Thu, Mar 18, 2004 at 02:05:53AM -0500, David Yitzchak Cohen wrote:
> On Wed, Mar 17, 2004 at 02:19:39PM EST, Jeff Fulmer wrote:
> > On Wed, Mar 17, 2004 at 10:56:17AM -0800, Draco Paladin wrote:
> > > On Wed, Mar 17, 2004 at 01:47:06PM -0500, Jeff Fulmer wrote:
> 
> > Dave and Draco,
> > 
> > Unfortunately this did not work. On control-f I get:
> > PGP passphrase forgotten.   
> > 
> > Am I missing something? 
> 
> Here's some of my ~/.mutt/keymaprc.qwerty [1] showing exactly that in action:
> $ egrep -- '(previous|next)-page' ~/.mutt/keymaprc.qwerty
> bind generic \cf next-page
> bind pager \cf next-page
> bind generic \cb previous-page
> bind pager \cb previous-page
> 
> If it doesn't work for you, the likelyhood is that you've got it being
> overridden somewhere.  If you can't find the culprit, just post your
> ~/.muttrc and /etc/Muttrc (or whatever it is on your system), and somebody
> here will dig through it all ;-)
> 
> > > > Since I'm vi-centric, I'd like to be able to page through my messages
> > > > with ctrl-f and ctrl-b. Unfortunately, I can't see to remap those keys.
> > > > Here's my .muttrc directives:
> > > > 
> > > > bind  pager '^F'        next-page
> > > > bind  pager '^B'        previous-page
> > > 
> > > I have the following in my rc file:
> > > 
> > > bind pager \Cb      previous-page
> > > bind pager \Cf      next-page
> > > 
> > > and Ctrl-b and Ctrl-f work for prev and next page.
> 
> > -- 
> > #include <stdio.h>
> > int main(){int a[]={74,117,115,116,32,97,110,111,116,104,101,114,32, \
> > 67,32,104,97,99,107,101,114,10,0}; int *b=a;while(*b>0)putchar(*b++);}
> 
> typedef int(blah)(int,char*,int);blah write;void*a[]={write,73,32,108,111,118,
> 101,32,67,32,116,111,111,32,58,45,41,10},*b=a;void 
> main(){while((b+=sizeof(b))<
> (a+sizeof(a)/sizeof(b)))((blah*)*a)(2,(int*)b,1);}
> 
>  - Dave
> 
> [1]
> http://www.bigfatdave.com/dave/mutt/muttdir/keymaprc.qwerty
> 
> -- 
> Uncle Cosmo, why do they call this a word processor?
> It's simple, Skyler.  You've seen what food processors do to food, right?
> 
> Please visit this link:
> http://rotter.net/israel



-- 
#include <stdio.h>
int main(){int a[]={74,117,115,116,32,97,110,111,116,104,101,114,32, \
67,32,104,97,99,107,101,114,10,0}; int *b=a;while(*b>0)putchar(*b++);}