Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555180 - mail-client/mutt toggle header weeding in Mutt doesn't work
Summary: mail-client/mutt toggle header weeding in Mutt doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-17 10:22 UTC by miro.rovis
Modified: 2015-07-18 11:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_555180.txt,17.50 KB, text/plain)
2015-07-17 10:22 UTC, miro.rovis
Details
emerge --info 2nd try at posting (file_555180.txt,16.36 KB, text/plain)
2015-07-17 19:03 UTC, miro.rovis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description miro.rovis 2015-07-17 10:22:58 UTC
Created attachment 406994 [details]
emerge --info

I revisited the issue of Gentoo Mutt install.

(Mutt, with the gpg use flag works currently on my machine without gpgme,
without having to install the gpgme, which was my previous bug (527338).)

While I can not influence the
manual not being displayed in official portage Mutt's own window as is the
case for upstream, I believe the unweedable headers, which show in my Mutt,
such as when opening new emails, surely should be looked into:

In mutt, after opening any e-mail, regardless that it is in the help described as:

h      display-toggle-weed      display message and toggle header weeding

has, in Gentoo Mutt, the sole effect of slightly wrapping the headers, on and
off, and not weeding them. Surely it is a drag, when you always only see
headers if you just move from one mail to the others with up-arrow or down
arrow, on, say, non-huge monitors with the sole viewport solely for Mutt.

On an outside-of-portage installed Mutt, the behavior of pressing h while any
email is displayed, is of truely toggling the headers on and off, and the
default is, surely, off, just, say, the Date:, From:, To:, Subject:
User-Agent:, and no other headers displayed.

I have posted extensively, firstly, when I knew less, this video for the purpose:

http://www.croatiafidelis.hr/foss/cap/cap-150714_gen_mutt/Screen_150714_Mutt_in_Gentoo.webm

and the post on the ole topic:

Mutt without Portage/in Local Overlay
https://forums.gentoo.org/viewtopic-t-1002146-start-50.html#7779222

and then, as I researched more, about my grsec-hardened role base access policy issues:

My Hard Earned RBAC policy for Mutt 
http://forums.grsecurity.net/viewtopic.php?f=5&t=4235

where in particular, see this post, regarding from-portage Mutt:

( same title as above )
http://forums.grsecurity.net/viewtopic.php?f=5&t=4235&p=15393#p15393

and surely, see the logs, screencast, traffic dump and all in the respective
subdirectory of:

http://www.croatiafidelis.hr/foss/cap/cap-150714_gen_mutt/

In which regard I will be available for a few days for any questions, or quick test, that developers might ask or need, on the Gentoo Portage installed Mutt, so we can see all more clearly in this issue, and if it is a bug, as it looks to me (but I am not an expert), fix it.

But later I will, for now, move to installing Mutt out-of-portage, because my
resources of time are compelling, and I really can't learn Mutt properly
without having the manual available in Mutt's own window, not allowing of
which is, according to my understanding, Gentoo devs' (wrong) choice. Do
correct me if my understanding is not right.

Namely I tried to get that manual in Mutt, and header weeding, in my own
ebuild, available, the ebuild is in the same dir as above (
http://www.croatiafidelis.hr/foss/cap/cap-150714_gen_mutt/mutt-1.5.23-r22.ebuild
), but without success.

Kind regards,
Miroslav Rovis, Gentoo user miroR
Comment 1 Fabian Groffen gentoo-dev 2015-07-17 11:57:36 UTC
h bound to display-toggle-weed works fine here, cannot reproduce.  Are you sure your key is bound?
Comment 2 miro.rovis 2015-07-17 19:03:28 UTC
Created attachment 407032 [details]
emerge --info 2nd try at posting
Comment 3 miro.rovis 2015-07-17 19:05:30 UTC
[[ Sorry for this text having been posted illegible previously. ]]

I revisited the issue of Gentoo Mutt install.

(Mutt, with the gpg use flag works currently on my machine without gpgme,
without having to install the gpgme, which was my previous bug (527338).)

While I can not influence the
manual not being displayed in official portage Mutt's own window as is the
case for upstream, I believe the unweedable headers, which show in my Mutt,
such as when opening new emails, surely should be looked into:

In mutt, after opening any e-mail, regardless that it is in the help described as:

h      display-toggle-weed      display message and toggle header weeding

has, in Gentoo Mutt, the sole effect of slightly wrapping the headers, on and
off, and not weeding them. Surely it is a drag, when you always only see
headers if you just move from one mail to the others with up-arrow or down
arrow, on, say, non-huge monitors with the sole viewport solely for Mutt.

On an outside-of-portage installed Mutt, the behavior of pressing h while any
email is displayed, is of truely toggling the headers on and off, and the
default is, surely, off, just, say, the Date:, From:, To:, Subject:
User-Agent:, and no other headers displayed.

I have posted extensively, firstly, when I knew less, this video for the purpose:

http://www.croatiafidelis.hr/foss/cap/cap-150714_gen_mutt/Screen_150714_Mutt_in_Gentoo.webm

and the post on the ole topic:

Mutt without Portage/in Local Overlay
https://forums.gentoo.org/viewtopic-t-1002146-start-50.html#7779222

and then, as I researched more, about my grsec-hardened role base access policy issues:

My Hard Earned RBAC policy for Mutt 
http://forums.grsecurity.net/viewtopic.php?f=5&t=4235

where in particular, see this post, regarding from-portage Mutt:

( same title as above )
http://forums.grsecurity.net/viewtopic.php?f=5&t=4235&p=15393#p15393

and surely, see the logs, screencast, traffic dump and all in the respective
subdirectory of:

http://www.croatiafidelis.hr/foss/cap/cap-150714_gen_mutt/

In which regard I will be available for a few days for any questions, or quick test, that developers might ask or need, on the Gentoo Portage installed Mutt, so we can see all more clearly in this issue, and if it is a bug, as it looks to me (but I am not an expert), fix it.

But later I will, for now, move to installing Mutt out-of-portage, because my
resources of time are compelling, and I really can't learn Mutt properly
without having the manual available in Mutt's own window, not allowing of
which is, according to my understanding, Gentoo devs' (wrong) choice. Do
correct me if my understanding is not right.

Namely I tried to get that manual in Mutt, and header weeding, in my own
ebuild, available, the ebuild is in the same dir as above (
http://www.croatiafidelis.hr/foss/cap/cap-150714_gen_mutt/mutt-1.5.23-r22.ebuild
), but without success.

Kind regards,
Miroslav Rovis, Gentoo user miroR
Comment 4 Fabian Groffen gentoo-dev 2015-07-17 19:08:39 UTC
can you post your muttrc please?
Comment 5 miro.rovis 2015-07-17 19:37:44 UTC
Fabian wrote:
> h bound to display-toggle-weed works fine here, cannot reproduce.
> Are you sure your key is bound?
Yes I have:

set weed

I see the "set weed=yes" in the Muttrc.dist, having now gone to investigate.

I now tried setting:

set weed=yes

and it still doesn't work either. On: Mutt 1.5.23 (2014-03-12, Gentoo 1.5.23-r7), and also on mutt from my last year's ebuild (on another system):

https://forums.gentoo.org/viewtopic-t-1002146-start-25.html#7660538

In the /etc/Muttrc.dist, it's commented out. But I do have it in my ~/.muttrc --in both systems above mentioned--. Anyway, shouldn't it just be the default, actually, isn't it the default? I installed it without frills of any kind, neither my own...

I repeat, the behavior is just as in the video, and as explained before, even if I change the "set weed" (which has been there all the time in my ~/.muttrc) to "set weed=yes", and close and start mutt again, in either of the two systems.
Comment 6 miro.rovis 2015-07-17 19:51:49 UTC
My .muttrc for 1.5.23-r7:
=========================
# -*- muttrc -*-

set mbox_type="Maildir"
set spoolfile=imap://miro@localhost/
set folder=imap://miro@localhost/
set record=imap://miro@localhost/Sent/
set postponed=imap://miro@localhost/Drafts/

#set ssl_starttls=yes
#set ssl_force_tls=yes
#set ssl_usesystemcerts=no
set imap_passive

#set sendmail="/usr/sbin/sendmail"
set from=miroslav.rovis1@zg.ht.hr
#set from=miro.rovis@croatiafidelis.hr
set use_envelope_from
set envelope_from_address=miroslav.rovis1@zg.ht.hr
#set envelope_from_address=miro.rovis@croatiafidelis.hr
alias mrCf miro.rovis@croatiafidelis.hr, mrTh miroslav.rovis1@zg.ht.hr
set quit=ask-yes
set delete=ask-yes
set include
set charset=utf-8
set send_charset=us-ascii:utf-8:iso-8859-1:iso-8859-2
set sort=threads
set strict_threads=yes

set copy                                  # Keep copies of outgoing mail...
set nobeep                                # We don't need no beeping software.
set pager_context=1                       # Display 1 lines of context in pager.
set pager_index_lines=9
set pager_stop                            # Don't skip msgs on next page.
set mime_forward=ask-no
set weed=yes

source ~/.mutt/colors                    # Define colours.
source ~/.mutt/gpgrc
set alias_file=~/.mutt/aliases
source ~/.mutt/aliases
set history=999
set history_file=~/.mutthistory
source ~/.mutthistory

push <show-version>
set edit_headers

macro index \cb |urlview\n
macro pager \cb |urlview\n

===========================
Just would go as attachment...
Comment 7 Fabian Groffen gentoo-dev 2015-07-18 09:55:50 UTC
You're missing ignore headers:

http://www.mutt.org/doc/manual/manual-3.html#ss3.8
Comment 8 miro.rovis 2015-07-18 10:53:37 UTC
Well, how come, then, that that same .muttrc works, verbatim, unchanged, unmodified, just that exact configuration file, when I only install the upstream mutt, say the LFS way, not the Gentoo portage way?&#013;&#013;RESOLVED INVALID. But, I bet we will see it applied!&#013;&#013;Just as now a non-gpgme system like mine can install mutt which previously was not the case. See the Forums page linked in the bug 527338 (add support for app-crypt/gnupg as alternative to app-crypt/gpgme). That one was RESOLVED INVALID, but the support is now there.&#013;&#013;Thanks!&#013;
Comment 9 Fabian Groffen gentoo-dev 2015-07-18 11:14:27 UTC
that is because the ebuild installs a minimalistic Muttrc, while from source installs the doc/Muttrc, which starts with:

#
# System configuration file for Mutt
#

# Default list of header fields to weed when displaying.
# Ignore all lines by default...
ignore *

# ... then allow these through.
unignore from: subject to cc date x-mailer x-url user-agent

# Display the fields in this order
hdr_order date from to cc subject


The reason Gentoo installs a minimalistic Muttrc is documented in that very same Muttrc:

# Some minimal Mutt settings, Gentoo-style.  These reflect the Gentoo
# predilection for maildir folders.
#
# Please don't add settings to this file to change other user
# preferences (such as colors), since those can be hard for a user to
# undo if their preference doesn't match yours!  For example, it is
# *impossible* currently in mutt to remove color settings from objects
# other than the index.