On Wed, Mar 11, 2020 at 06:55:14PM -0500, Greg Marks wrote:
Up until recently this worked perfectly. It began to fail, however, after I changed my e-mail account password to something containing a dollar sign, of the form abc$def.
Hi Greg,I have a couple suggestions to try. The first is to change your <password_file>.cpt to only contain the password, instead of mutt commands.
Then in your .muttrc put: set password_variable="`/usr/bin/ccrypt -c <password_file>.cpt`"The backquotes inside double quotes causes the password to be assigned without any further processing.
The next thing to try is putting the account-hook command in single quotes:
account-hook $folder 'set imap_user=<email_local_part>@<univ_domain> imap_pass=$password_variable'That will prevent mutt from substituting the password while reading in the account-hook, and then evaluating the password while running the account hook command.
The remaining problem is that while this allows me to read e-mail, I am unable to send e-mail. Sending e-mail fails with the error message "SASL authentication failed."
My best guess is what Sam Kuper mentioned. There may be a disconnect between your IMAP and SMTP password. I would make sure that you changed both passwords. It may be the SMTP password is still the old IMAP password.
It would be great to get some authoritative guidance on this!
I'd suggest reading http://www.mutt.org/doc/manual/#muttrc-syntax closely. Single quotes don't evaluate anything. The only issue is embedded single quotes, which need to be embedded like this:
set foo='embedded'\''quote' That's why I suggested just using set foo="`/usr/bin/ccrypt ...`'" which bypasses the problem. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature
