View previous topic :: View next topic |
Author |
Message |
flexo3001 n00b
Joined: 31 Mar 2014 Posts: 2 Location: Berlin
|
Posted: Tue Apr 01, 2014 12:18 pm Post subject: Problems with mutt |
|
|
hey *!
i'm having some problems with mutt. i'm coming from archlinux and use mutt since years (prebuilt of course). now on gentoo it acts some different. my questions: a) instead of a header with subject, to, cc, date, client i'm having every information about the mailserver etc. (it's a bit annoying to scroll every mail down) and b) the 'y'-keybind to get the folderlist doesn't work.(added a macro but i thought it is default behavior). how can i get rid of this?
my conf:
Code: | ###############
# mutt config #
# flexo3001 #
###############
## options ##
# mail
set mbox_type = Maildir
set folder = ~/mail
set spoolfile = "+gmail/inbox"
set mail_check = 0
set timeout = 3
mailboxes +gmail/inbox +gmail/trash +gmail/draft +gmail/sent +gmail/spam
set editor = "/usr/bin/vim -c 'set tw=80 ft=mail' -c 'set wrap' -c 'set nocp'"
set query_command="abook --mutt-query '%s'"
set envelope_from
set copy
set askcc
set askbcc
set include
set recall = no
set beep_new = yes
set sort = 'threads'
set sort_aux = 'reverse-last-date-received'
set auto_tag = yes
set pager_context = 5
set pager_index_lines = 10
set pager_stop
set quit
#set delete
set tilde
set smart_wrap
set askcc
set mime_forward
set mime_forward_rest
set forward_quote
set charset = "utf-8"
set send_charset = "utf-8"
set menu_scroll
set date_format = "%Y/%m/%d %H:%M"
set folder_format = "%2C %t %N %8s %d %f"
set status_format = "%f %?n? %n ? (%?o?%o/?%m) [%l] %V %> (%s/%S) %P"
set forward_format = "Fwd: %s"
unset markers
unset mark_old
unset confirmappend
unset move
unset help
hdr_order Date From To Cc Bcc
alternative_order text/plain text/enriched text/html *
auto_view text/html text/enriched
# colors
source ~/.mutt/flexo.theme
# directories
set alias_file = ~/.mutt/alias
set header_cache = ~/.mutt/cache/headers
set certificate_file = ~/.mutt/certificates
set message_cachedir = ~/.mutt/cache/bodies
set mailcap_path = ~/.mutt/mailcap
# account specific sources
folder-hook gmail/* source ~/.mutt/gmail.muttrc
## keybindings ##
bind editor <Tab> complete-query
bind editor <Tab> complete
bind editor <space> noop
bind index gg first-entry
bind index G last-entry
bind index W clear-flag
bind index w set-flag
bind index K previous-unread
bind index J next-unread
bind pager q exit
bind pager Q toggle-quoted
bind pager / search
bind pager j next-line
bind pager k previous-line
bind pager K previous-undeleted
bind pager J next-undeleted
bind pager gg top
bind pager G bottom
bind pager i noop
bind index,pager R group-reply
bind index,pager \# noop
bind index,pager \& noop
# abook
macro index a "|abook --add-email\n" 'add sender to abook'
macro pager a "|abook --add-email\n" 'add sender to abook'
# macros
macro index,pager go "<change-folder>=gmail/inbox<enter>" "Go to gmail inbox"
macro index,pager y <change-folder>?<toggle-mailboxes>
# offlineimap
macro index S "<shell-escape>/usr/bin/offlineimap -o -q -u Quiet<enter>" "sync IMAP" |
my /etc/portage/package.use/mutt:
Code: | mail-client/mutt gpg |
i tried compiling with imap, idn, mbox and smime. i don't want to compile with every single flag.
thanks
flexoh _________________ Fight war not wars, destroy power not people!
Last edited by flexo3001 on Thu May 28, 2020 9:41 pm; edited 1 time in total |
|
Back to top |
|
|
nsoveiko n00b
Joined: 04 Dec 2004 Posts: 53 Location: somewhere over the rainbow
|
Posted: Tue Apr 01, 2014 7:42 pm Post subject: Re: Problems with mutt |
|
|
flexo3001 wrote: | a) instead of a header with subject, to, cc, date, client i'm having every information about the mailserver etc. |
in ~/.muttrc:
Code: | ignore *
unignore from: date subject to cc reply-to
|
flexo3001 wrote: | b) the 'y'-keybind to get the folderlist doesn't work.(added a macro but i thought it is default behavior). how can i get rid of this? |
not sure to get rid of exactly what |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Tue Apr 01, 2014 9:35 pm Post subject: Re: Problems with mutt |
|
|
flexo3001 wrote: | [...] my questions: a) instead of a header with subject, to, cc, date, client i'm having every information about the mailserver etc. |
flexo3001 ... this sounds as though 'display-toggle-weed' has been selected, perhaps you hit "h" at some point ... though such a toggle will only last per session, so perhaps not. Anyhow, the following can be set to select what headers are displayed ...
Code: | set hdrs
unset header
folder-hook . "ignore *"
folder-hook . "unignore From: To: Date: Subject: Cc: Bcc: Reply-To: |
... or whatever you so wish of the above.
flexo3001 wrote: | and b) the 'y'-keybind to get the folderlist doesn't work. (added a macro but i thought it is default behavior). how can i get rid of this? |
"c" is "change-folder" and a subsequent "?" provides a folder list (though it will provide a known mailbox by default if that mailbox has unread mail). "y" is unbound in index,pager so you should be able to bind it ... the issue seems to be quoting, the following works here:
Code: | macro index,pager y "<change-folder>?<toggle-mailboxes>" |
flexo3001 wrote: | Code: | mailboxes +gmail/inbox +gmail/trash +gmail/draft +gmail/sent +gmail/spam
mailboxes +fu/inbox +fu/trash +fu/draft +fu/sent
mailboxes +rocketmail/inbox +rocketmail/trash +rocketmail/draft +rocketmail/sent +rocketmail/spam
mailboxes +spline/inbox +spline/trash +spline/draft +spline/sent
mailboxes +mpib/inbox +mpib/trash +mpib/draft +mpib/sent +mpib/spam |
|
"mailboxes" should only define those mailboxes which have mail delivered (with imap that is generally "INBOX") ... but you really should separate these mailboxes/accounts with folder-hooks (as I'm sure you probably want to have certain things set when these mailboxes are entered (like "reply_to" and "+sent", "+draft", etc). eg:
Code: | set realname=""
send-hook "(~t @)" 'set record="+sent"'
send-hook "(~f @gmail.com)" 'my_hdr From: Flexo3001 <flexo3001@gmail.com> ; \
my_hdr Reply-To: Flexo3001 <flexo3001@gmail.com>'
send-hook "(~f @rocketmail.tld)" 'my_hdr From: Flexo3001 <flexo3001@rocketmail.tld> ; \
my_hdr Reply-To: Flexo3001 <flexo3001@rocketmail.tld>'
[similarly for each domain/mail address]
folder-hook ~/mail/gmail/inbox 'set folder="~/mail/gmail"
folder-hook ~/mail/rocketmail/inbox 'set folder="~/mail/rocketmail"
[similarly for each domain/mail address]
folder-hook . 'set postponed="+drafts"'
alternates "flexo3001@(gmail.com|rocketmail.com)|(someother@domain.tld)"
mailboxes = +gmail/inbox +rocketmail/inbox +spline/inbox +mpib/inbox |
... this way each mailbox's +sent, +drafts is set specifically for the account and each email account's address is set correctly for that account when entering the folder. It also allows you to set other things (like sigs or what-have-you) for these respective accounts.
HTH & best ... khay |
|
Back to top |
|
|
flexo3001 n00b
Joined: 31 Mar 2014 Posts: 2 Location: Berlin
|
Posted: Wed Apr 02, 2014 5:21 am Post subject: Post subject: Re: Problems with mutt |
|
|
thanks, i will try. but i don't get it why mutt acts differently in gentoo compared to archlinux(most upstream-distro) or the deprecated debian....
greetz
flexo _________________ Fight war not wars, destroy power not people! |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed Apr 02, 2014 10:56 am Post subject: Re: Post subject: Re: Problems with mutt |
|
|
flexo3001 wrote: | thanks, i will try. but i don't get it why mutt acts differently in gentoo compared to archlinux(most upstream-distro) or the deprecated debian.... |
flexo3001 ... you're welcome. I don't know what arch provides in that regard but Debian (7.3) provides an /etc/Muttrc with header weeding and various other rc in Muttrc.d/, gentoo's /etc/mutt/Muttrc on the other hand doesn't.
best ... khay |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|