YepDude. Minus 30 credibility points.
YepDude. Minus 30 credibility points.
And how do I do it?cboldt wrote:
Edit "oops". Same principle though, don't create that file, just tell mutt that's where your Mail Transfer Agent (MTA) is going to put your email.
YepDude. Minus 30 credibility points.
YepDude. Minus 30 credibility points.
roboto ... as you have 'set mbox_type=Maildir' then mutt expects this "mailbox" to be 'maildir' ... what is a maildir?roboto wrote:I had recently installed mutt, but an issue had arisen. When I open mutt, a message at the bottom said /home/myusername/.maildir is not a mailbox.
Code: Select all
% ls ~/.maildir
cur/ new/ tmp/
% ls -ld ~/.maildir
lrwxrwxrwx 1 khayyam users 23 2012-10-17 11:32 /home/khayyam/.maildir -> mail/aporia-local/INBOX/
Don't :) ... /var/spool/mail isn't used (if it was you would know, because you would have setup your MTA to use it), generally an MTA will deliver to the user's home, eg:roboto wrote:So I changed some stuff in /etc/mutt/Muttrc; converting the directory from /home/myusername/.maildir to /var/spool/mail. But, it did not have permissions, so I typed [...]
Code: Select all
% grep maildir /etc/postfix/main.cf
home_mailbox = .maildir/Like most cli applications, it will first look in $HOMEroboto wrote:And *where* do I find mutt's configuration, the only one I know is /etc/mutt/Muttrc, but I don't know what else to do with it.
Code: Select all
/home/khayyam/.muttrc
/home/khayyam/.mutt/00-personal
/home/khayyam/.mutt/01-aliases.d
/home/khayyam/.mutt/02-keybindings
/home/khayyam/.mutt/03-hooks
/home/khayyam/.mutt/04-charsets
/home/khayyam/.mutt/05-gpg-autoencrypt
/home/khayyam/.mutt/05-gpg.rc
/home/khayyam/.mutt/05-gpgme.rc-DISABLED
/home/khayyam/.mutt/06-imap-DISABLED
/home/khayyam/.mutt/07-mutt-colors-solarized
/home/khayyam/.mutt/08-lists
/home/khayyam/.mutt/certificates
/home/khayyam/.mutt/display-filters
/home/khayyam/.mutt/mailcap
/home/khayyam/.mutt/mailcap-DISABLED
/home/khayyam/.mutt/scriptsCode: Select all
source ~/.mutt/00-personal
source ~/.mutt/01-aliases.d/aliases
source ~/.mutt/02-keybindings
source ~/.mutt/03-hooks
source ~/.mutt/04-charsets
source ~/.mutt/05-gpg.rc
source ~/.mutt/05-gpg-autoencrypt
source ~/.mutt/07-mutt-colors-solarized/mutt-colors-solarized-dark-16.muttrcYepDude. Minus 30 credibility points.
roboto ... yes, because the package only installs a system wide muttrc in /etc .. user config files are left to users devices.roboto wrote:I don't have any mutt file or directory in /home/myusername except for ~/.maildir and ~/.maildir-sent.
'print' is a zsh builtin, bash doesn't have it. I provided the above so you could see how I configure mutt, and where the files are located ... not so that you might search for these same files.roboto wrote:khay... you typed: print -rl ~/.mutt{rc,/*}
Those errors should be fairly self-explanatory, but why on earth are you using 'sudo' for commands targeting '~/'? Bonus question, why do I get the following errors?roboto wrote:I typed: print -rl ~/.mutt{rc,/*}
sudo: print: command not found
sudo grep '^source' ~/.muttrc
grep: /home/myusername/.muttrc: No such file or directory
Code: Select all
% sudo print -rl ~/.mutt{rc,/*}
zsh: command not found: sudo
% ls nonexistantfile
ls: cannot access 'nonexistantfile': No such file or directoryI can't answer that without knowing how you plan to use mutt, perhaps [post=8043388]this post[/post] (and other sections of the thread) will provide you some idea. Or you can search for mutt, using my username as 'author', and get further examples.roboto wrote:I created ~/.muttrc, but I don't know what to do with it.
YepDude. Minus 30 credibility points.
roboto ... well, you should be careful about following random stuff posted on the internet, particularly when the command 'sudo' is involved. That user created all those files as root (due to the use of sudo) and so files like ~/.mutt/certificates are owned by root and u+rw but go-rw ... you can fix all this with the following (substituting 'roboto' for your username):roboto wrote:I did exactly what was mentioned in that thread and also added my e-mail address to it.
Code: Select all
$ sudo chown -c -R roboto:users ~/.mutt{,rc}OK, you would need to write to ~/.mutt/certificates to do sasl, because mutt will attempt to save the certificate there ... so, this issue may be due to that, or the syntax you've used in ~/.muttrc for your smtp server (some require 'username@domain.tld:password@mail.domain.tld', and some use 'username:password@mail.domain.tld). It sounds as though you're accessing imap so I suspect it is a tls issue, or some misconfiguration on your part, are you also using gmail? Can we see your configuration (anonymised)?roboto wrote:Mutt works well now and the "not a mailbox" message was gone, but another issue had arisen. I was sending myself an e-mail for testing reasons, but it did not appear in my inbox. I tried to send one to someone, and he/she said that he/she did not get any e-mail. I added imap smtp sasl to the USE flags for mutt. Still same issue.
YepDude. Minus 30 credibility points.
Code: Select all
% emerge -pvq mail-client/muttYepDude. Minus 30 credibility points.
Code: Select all
set hostname="gmail.com"Code: Select all
set ssl_use_sslv2=no
set ssl_use_sslv3=no
set ssl_use_tlsv1=yesYepDude. Minus 30 credibility points.
roboto ... ok, good. It must have been an issue with ssl negotiation.roboto wrote:The code you suggested works!
I see, so previously you weren't getting connected to imap.roboto wrote:When I launched mutt, there were certificate verifications and my inbox showed up. Also, my self e-mails showed up in my inbox.
np ... you're welcome. BTW, here is an updated .muttrc, incorporating the above, with a few small changes, and an addition ('set record=+Sent'), this is so a copy of sent mail is saved on imap (if you want that, otherwise you should set 'set copy=no').roboto wrote:Many, many thanks!
Code: Select all
set hostname="google.com"
set ssl_use_sslv2=no
set ssl_use_sslv3=no
set ssl_use_tlsv1=yes
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="Roboto"
set folder="imaps://imap.gmail.com/"
set spoolfile="+INBOX"
set postponed="+Drafts"
set record="+Sent"
mailboxes="+INBOX"
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"Code: Select all
unset imap_passive
set mail_check="120" # time in seconds