Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

About mail-client/mutt

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
19 posts • Page 1 of 1
Author
Message
emochi
n00b
n00b
User avatar
Posts: 60
Joined: Tue Jul 19, 2016 6:08 am
Location: Tokyo, Japan

About mail-client/mutt

  • Quote

Post by emochi » Tue Mar 14, 2017 6:38 am

Hello.
I can not install 'mail-client/mutt'.
user $ sudo emerge --ask mail-client/mutt

These are the packages that would be merged, in order:

Calculating dependencies i

!!! Problem resolving dependencies for mail-client/mutt
... done!

!!! The ebuild selected to satisfy "mail-client/mutt" has unmet requirements.
- mail-client/mutt-1.8.0::gentoo USE="berkdb crypt gdbm hcache nls ssl -debug -doc (-gnutls) -gpg -idn -imap -kerberos -libressl -lmdb -mbox -nntp -notmuch -pop -qdbm -sasl (-selinux) -sidebar -slang -smime -smtp -tokyocabinet -vanilla" ABI_X86="64"

The following REQUIRED_USE flag constraints are unsatisfied:
hcache? ( exactly-one-of ( berkdb gdbm lmdb qdbm tokyocabinet ) )

The above constraints are a subset of the following complete expression:
hcache? ( exactly-one-of ( berkdb gdbm lmdb qdbm tokyocabinet ) ) imap? ( ssl ) pop? ( ssl ) nntp? ( ssl ) smime? ( ssl !gnutls ) smtp? ( ssl ) sasl? ( any-of ( imap pop smtp nntp ) ) kerberos? ( any-of ( imap pop smtp nntp ) )

user $
Please give me advice.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31988
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Tue Mar 14, 2017 6:54 am

Code: Select all

The following REQUIRED_USE flag constraints are unsatisfied: 
hcache? ( exactly-one-of ( berkdb gdbm lmdb qdbm tokyocabinet ) ) 
Message tell you that you have set hcache you can have only one of these "berkdb gdbm lmdb qdbm tokyocabinet" use flags.
You need to disable or berkdb or gdbm if you want hcache with package.use
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
emochi
n00b
n00b
User avatar
Posts: 60
Joined: Tue Jul 19, 2016 6:08 am
Location: Tokyo, Japan

  • Quote

Post by emochi » Tue Mar 14, 2017 7:48 am

Thanks a lot fedeliallalinea.

I was able to install mail-client/mutt.

Code: Select all

user $ sudo emerge -av =mail-client/mutt-1.7.2
Many thanks.
Top
emochi
n00b
n00b
User avatar
Posts: 60
Joined: Tue Jul 19, 2016 6:08 am
Location: Tokyo, Japan

  • Quote

Post by emochi » Tue Mar 14, 2017 11:37 am

Please tell me how to set up sending and receiving mail using mutt.
Top
josephg
l33t
l33t
User avatar
Posts: 783
Joined: Sun Jan 10, 2016 5:12 pm
Location: usually offline
Contact:
Contact josephg
Website

  • Quote

Post by josephg » Tue Mar 14, 2017 12:11 pm

emochi wrote:Please tell me how to set up sending and receiving mail using mutt.
http://wiki.gentoo.org/wiki/mutt
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Top
emochi
n00b
n00b
User avatar
Posts: 60
Joined: Tue Jul 19, 2016 6:08 am
Location: Tokyo, Japan

  • Quote

Post by emochi » Tue Mar 14, 2017 1:42 pm

Thanks a lot josephg.

It seems very difficult to set Mutt.
With my ability, it may be slightly impossible.
Setting mutt
user $ sudo mkdir -p ~/.mutt/cache/headers
user $ sudo mkdir -p ~/.mutt/cache/bodies
user $ sudo touch ~/.mutt/certificates
user $ sudo touch ~/.mutt/muttrc

user $ sudo nano ~/.mutt/muttrc

set ssl_starttls = yes
set ssl_force_tls = yes
set imap_user = ‘username@gmail.com’
set imap_pass = ‘password’
set from = ’username@gmail.com’
set realname = ’Usuha Emochi’
set folder = ‘imaps://imap.gmail.com/’
set spoolfile = ‘imaps://imap.gmail.com/INBOX’
set postponed = ‘imaps://imap.gmail.com/[Gmail]/Drafts’
set header_cache = ‘~/.mutt/cache/headers’
set message_cachedir = ‘~/.mutt/cache/bodies’
set certificate_file = ‘~/.mutt/certificates’
set smtp_url = ‘smtps://username@gmail.com:password@smtp.gmail.com:465/’
set move = no
set imap_keepalive = 900
It is not possible to improve the above setting and use it.
Last edited by emochi on Thu Mar 16, 2017 8:45 am, edited 3 times in total.
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Tue Mar 14, 2017 2:24 pm

emochi ...

in the above you don't have USE='imap smtp sasl' set ... all of which are needed for imap, smtp, and tls.

best ... khay
Top
radio_flyer
Guru
Guru
User avatar
Posts: 321
Joined: Thu Nov 04, 2004 8:54 pm
Location: Northern California

  • Quote

Post by radio_flyer » Wed Mar 15, 2017 7:49 am

emochi...

Like khayyam said, you either need 'imap smtp sasl' USE flags for direct communication between mutt and your ISP's mail server (the 'Outlook' way), or if you're using a local mbox mail spool (the 'Unix' way) you need to set up the receive side (eg fetchmail and optionally procmail) and the sending side (eg exim) of the mail spool. The latter method is the 'power user' approach to mutt mail, but getting the setup right is a little tricky. There's also a plethora of other mbox transports like dovecot, postfix, getmail, msmtp, offlineimap, etc. etc. Look around the Network and Security forum for more examples of the various ways mutt can be set up.
Top
emochi
n00b
n00b
User avatar
Posts: 60
Joined: Tue Jul 19, 2016 6:08 am
Location: Tokyo, Japan

  • Quote

Post by emochi » Wed Mar 15, 2017 10:56 am

Thanks a lot khayyam.
Thanks a lot radio_flyer.
user $ mutt
Error on line 1 of /home/pure/.mutt/muttrc: ssl_starttls is unknown variable
Error on line 2 of /home/pure/.mutt/muttrc: ssl_force_tls is an unknown variable
Error in line 3 of /home/pure/.mutt/muttrc: imap_user is an unknown variable
Error in line 4 of /home/pure/.mutt/muttrc: imap_pass is an unknown variable
Error in line 11 of /home/pure/.mutt/muttrc: message_cachedir is an unknown variable
Error on line 12 in /home/pure/.mutt/muttrc: certificate_file is an unknown variable
Error in line 13 of /home/pure/.mutt/muttrc: smtp_url is an unknown variable
Error at line 15 in /home/pure/.mutt/muttrc: imap_keepalive is an unknown variable
Error in source: /home/pure/.mutt/muttrc
I need something to continue ...
user $
My make.conf file USE="bindist xa libkms imap smtp sasl"
Should I stop by my skills?
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Wed Mar 15, 2017 12:35 pm

emochi ... I think it's due to your use of backticks, and (perhaps) spaces, please try the following:

Code: Select all

set ssl_starttls="yes"
set ssl_force_tls="yes"
set imap_user="user_name@gmail.com"
set imap_pass="password"
set from="user_name@gmail.com"
set realname="E Mochi"
set folder="imaps://imap.gmail.com/"
set spoolfile="imaps://imap.gmail.com/INBOX"
set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"
set header_cache="~/.mutt/cache/headers"
set message_cachedir="~/.mutt/cache/bodies"
set certificate_file="~/.mutt/certificates"
set smtp_url="smtps://user_name@gmail.com:password@smtp.gmail.com:465/"
set move="no"
set imap_keepalive="900"
Also, you should make sure that ~/.mutt/certificates exists, and has the correct permissions:

Code: Select all

% touch ~/.mutt/certificates
% chmod u+rw,go-rwx ~/.mutt/certificates
Also, having 'USE="imap smtp sasl" in make.conf doesn't mean the package is built with those useflags, if you change them you are required to rebuild the package (I assume you did but I'd prefer not to trust this is the case):

Code: Select all

mail-client/mutt imap smtp sasl smime

Code: Select all

# emerge --ask --changed-use mail-client/mutt
To use radio_flyer's description, I use "the unix way", mail-mta/postfix for MTA (which is setup to forward mail to various mailservers based on the sender) and net-mail/offlineimap for grabing mail from imap. This means all mail is available (offline) and outgoing mail can be defered (so, held) if the machine is offline. I have used mutt's builtin smtp/imap and it worked, but being able to compose/send mail 'offline' is a necessity, as I do all mail on a laptop (though I have a fallback mutt setup on a remote machine that can be accessed via ssh).

HTH & best ... khay
Top
emochi
n00b
n00b
User avatar
Posts: 60
Joined: Tue Jul 19, 2016 6:08 am
Location: Tokyo, Japan

  • Quote

Post by emochi » Wed Mar 15, 2017 4:50 pm

Thanks a lot khayyam.

The following error message was displayed.

Code: Select all

user $ sudo emerge --ask --changed-use mail-client/mutt

These are the packages that would be merged, in order:

Calculating dependencies                                

!!! Problem resolving dependencies for mail-client/mutt
... done!

!!! The ebuild selected to satisfy "mail-client/mutt" has unmet requirements.
- mail-client/mutt-1.8.0::gentoo USE="berkdb crypt gdbm hcache nls ssl -debug -doc (-gnutls) -gpg -idn -imap -kerberos -libressl -lmdb -mbox -nntp -notmuch -pop -qdbm -sasl (-selinux) -sidebar -slang -smime -smtp -tokyocabinet -vanilla" ABI_X86="64"

  The following REQUIRED_USE flag constraints are unsatisfied:
    hcache? ( exactly-one-of ( berkdb gdbm lmdb qdbm tokyocabinet ) )

  The above constraints are a subset of the following complete expression:
    hcache? ( exactly-one-of ( berkdb gdbm lmdb qdbm tokyocabinet ) ) imap? ( ssl ) pop? ( ssl ) nntp? ( ssl ) smime? ( ssl !gnutls ) smtp? ( ssl ) sasl? ( any-of ( imap pop smtp nntp ) ) kerberos? ( any-of ( imap pop smtp nntp ) )

user $

Code: Select all

/etc/portage/package.use
mail-client/mutt imap smtp sasl smime
What kind of operation procedure should this be done?
I am very concerned with the rudimentary question.

Code: Select all

user $ ls /etc/portage/package.use/
use
user $ cat /etc/portage/package.use/
cat: /etc/portage/package.use/: Is a directory
user $ sudo echo "mail-client/mutt imap smtp sasl smime" >> /etc/portage/package.use
bash: /etc/portage/package.use: Is a directory

root # echo "mail-client/mutt imap smtp sasl smime" >> /etc/portage/package.use
bash: /etc/portage/package.use: Is a directory
root # 
[Moderator edit: changed [quote] tags to

Code: Select all

 tags to preserve output layout. -Hu][/color][/i]
Top
radio_flyer
Guru
Guru
User avatar
Posts: 321
Joined: Thu Nov 04, 2004 8:54 pm
Location: Northern California

  • Quote

Post by radio_flyer » Wed Mar 15, 2017 6:37 pm

emochi, check out this forum post for the differences between using a directory or a file for /etc/portage/package.use:

viewtopic-t-1045470-start-0.html

If there's nothing in the directory, you can just rmdir it and then your echo command will work. If you keep the directory format, just echo the mutt USE flags into a file inside the directory, eg:
# echo "mail-client/mutt -berkdb imap smtp sasl smime" > /etc/portage/package.use/mutt

Note that I also turned off the berkdb USE flag because you can only have one database selected when compiling mutt, and by default your selected profile (or the ebuild, didn't check) enables both berkdb and gdbm.
Alternatively, feel free to disable gdbm and use berkdb (or turn off both and use one of the other ones on the hcache? line).
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Wed Mar 15, 2017 7:04 pm

emochi wrote:The following error message was displayed.

Code: Select all

  The following REQUIRED_USE flag constraints are unsatisfied:
    hcache? ( exactly-one-of ( berkdb gdbm lmdb qdbm tokyocabinet ) )
emochi ... with USE=hcache set you can only set "exactly one of" 'berkdb' or 'gdbm':

Code: Select all

mail-client/mutt imap smtp sasl smime -gdbm
Note that I'm using 1.5.24-r2 (stable), which doesn't have the hcache useflag, and I can build with both 'berkdb' and 'gdbm' useflags enabled, the ~arch/unstable package has all three as +IUSE ...

Code: Select all

 + + berkdb   : Add support for sys-libs/db (Berkeley DB for MySQL)
 + + gdbm     : Add support for sys-libs/gdbm (GNU database libraries)
 + - hcache   : Enable header cache
That will enevitably cause the above error, and is testament to why using ~arch requires the skills to do so.
emochi wrote:
khayyam wrote:

Code: Select all

mail-client/mutt imap smtp sasl smime
What kind of operation procedure should this be done? I am very concerned with the rudimentary question.
package.use is a directory, but the above is a designation (as it use to be a file), the filename(s) within this are arbitrary so I generally don't stipulate the filename (because I don't know how yours may, or may not, be configured) ... anyhow, simply provide a suitable filename:

Code: Select all

# echo "mail-client/mutt imap smtp sasl smime -gdbm" >> /etc/portage/package.use/$(uname -m).package.use
or ... as you seem to be using sudo for system administation:

Code: Select all

% echo "mail-client/mutt imap smtp sasl smime -gdbm" | sudo tee -a /etc/portage/package.use/$(uname -m).package.use
HTH & best ... khay
Top
radio_flyer
Guru
Guru
User avatar
Posts: 321
Joined: Thu Nov 04, 2004 8:54 pm
Location: Northern California

  • Quote

Post by radio_flyer » Wed Mar 15, 2017 7:49 pm

khayyam, I was happily using stable mutt too on my stable system until last week when gpgme hit the stable tree. Now there's this:

https://bugs.gentoo.org/show_bug.cgi?id=604902

However, other bug reports show issues with the 1.7 series (duplicate emails etc), so I just moved to 1.8.0 and haven't had any issues with it.

The stable tree is a bit of mess right now with mutt. Until the devs sort it out going ~ with 1.8.0 seems to be the only option. I'm surprised you haven't run into that issue yet.
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Wed Mar 15, 2017 8:22 pm

radio_flyer wrote:khayyam, I was happily using stable mutt too on my stable system until last week when gpgme hit the stable tree. Now there's this: https://bugs.gentoo.org/show_bug.cgi?id=604902
radio_flyer ... thanks for the heads up ... I'm not effected because I don't have mail-client/mutt[gpg] as I don't use gpgme. I configure gpg via muttrc and that is all gpgme is used for (ie, all you need do is set 'set crypt_use_gpgme=yes'), otherwise (sans gpgme) you need to do something like this.

BTW, I think the gpg useflag for mutt is misleading, people may believe that you can't use gpg without this enabled ... which is incorrect. The useflag should probably be 'gpgme', as that is all it enables.

thanks again & best ... khay
Top
radio_flyer
Guru
Guru
User avatar
Posts: 321
Joined: Thu Nov 04, 2004 8:54 pm
Location: Northern California

  • Quote

Post by radio_flyer » Wed Mar 15, 2017 9:33 pm

Same here khayyam, my .mutt_gpgrc dates from 2005 and looks a lot like your example.

However, I ran across this page a while back:
http://henrytodd.org/notes/2014/simpler ... ith-gpgme/

and decided to give it a try. I still keep the standard gpgrc around also so I can bounce back and forth as necessary depending on what is broken or not in portage :lol:

BTW, I totally agree with you about the gpg USE flag.
Top
emochi
n00b
n00b
User avatar
Posts: 60
Joined: Tue Jul 19, 2016 6:08 am
Location: Tokyo, Japan

  • Quote

Post by emochi » Thu Mar 16, 2017 4:40 am

Thanks a lot khayyam.
Thanks a lot radio_flyer.

Code: Select all

user $ sudo emerge -av =mail-client/mutt-1.7.2

user $ sudo mkdir -p ~/.mutt/cache/headers
user $ sudo mkdir -p ~/.mutt/cache/bodies
user $ sudo touch ~/.mutt/certificates
user $ sudo chmod u+rw,go-rwx ~/.mutt/certificates
user $ sudo touch ~/.mutt/muttrc

user $ sudo nano ~/.mutt/muttrc

set ssl_starttls="yes"
set ssl_force_tls="yes"
set imap_user="username@gmail.com"
set imap_pass="password"
set from="username@gmail.com"
set realname="Usuha Emochi"
set folder="imaps://imap.gmail.com/"
set spoolfile="imaps://imap.gmail.com/INBOX"
set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"
set header_cache="~/.mutt/cache/headers"
set message_cachedir="~/.mutt/cache/bodies"
set certificate_file="~/.mutt/certificates"
set smtp_url="smtps://username@gmail.com:password@smtp.gmail.com:465/"
set move="no"
set imap_keepalive="900"

user $ echo "mail-client/mutt imap smtp sasl smime -gdbm" | sudo tee -a /etc/portage/package.use/$(uname -m).package.use

user $ sudo emerge --ask --changed-use mail-client/mutt
I appreciate your kind advices.
I can send and receive e-mails using mail-client/mutt.
Thank you very much.
Top
josephg
l33t
l33t
User avatar
Posts: 783
Joined: Sun Jan 10, 2016 5:12 pm
Location: usually offline
Contact:
Contact josephg
Website

  • Quote

Post by josephg » Wed Mar 29, 2017 10:34 pm

except for the emerge, i would not sudo any of your following commands.
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Top
emochi
n00b
n00b
User avatar
Posts: 60
Joined: Tue Jul 19, 2016 6:08 am
Location: Tokyo, Japan

  • Quote

Post by emochi » Thu Mar 30, 2017 10:05 am

Thanks a lot josephg.
I appreciate your kind advices here.
Many thanks.
Top
Post Reply

19 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic