mutt-wizard icon indicating copy to clipboard operation
mutt-wizard copied to clipboard

i'm back!

Open muttnooob opened this issue 1 year ago • 19 comments

after several months away from mutt wizard, and neomutt, i've decided to come back for round 2. i'm such a noob, in that all i know about CLI is just what i've read in the last few months on it. totally not a linux head or anything... appreciate the patience...

problem: no matter what email i try to add using "mw -a [email protected]" I get "Log-on not successful" i am 100% the password is successful and that this account does not require any app-specific passwords to use, like Gmail. And I had no trouble setting these accounts up months ago. thunderbird (yuck) seems to have no problem logging in today via IMAP and downloading with these credentials.

suspect:

  • my email provider - a swiss provider called Infomaniak, or
  • my ineptness at following directions around password GPG store, or
  • again my email provider...it is an @ik.me domain which belongs to them.

note:

  • another email which is hosted at the same provider with my own domain prompts for the actual IMAP and SMTP addresses, don't know why. but it still yields "Log-on not successful" after prompting for those and then the password info.

Any idea why this is happening to me?

muttnooob avatar Nov 12 '23 22:11 muttnooob

just did some digging on the various files included in MW, and realized -- could it be a TLS or secure connection issue? And how do I make sure it is not this problem? Thanks in advance! (my email provider requires SSL / TLS authentication) -- my hunch is this is the trigger for "log-on not successful"....

muttnooob avatar Nov 13 '23 03:11 muttnooob

This person seems to be experiencing something similar https://github.com/LukeSmithxyz/mutt-wizard/issues/963.

muttnooob avatar Nov 13 '23 12:11 muttnooob

Hello @muttnooob More info is required to determine the problem, but I will try my best since I also used thunderbird before neomutt (I set it up yesterday) and also had the "log-on not succesful" message

What do you input for IMAP and SMTP server? For my personal email (on website theyellowarchitect.com), if I used imap.theyellowarchitect.com and smtp.theyellowarchitect.com it then asked for password but no matter what I entered, it said "log-on not succesful" message. I then used mail.theyellowarchitect.com for both IMAP and SMTP input. This made it work for me

If the above is not the issue, then it's maybe the port. By default IMAP is 993 and SMTP 465 (I have 587, it worked by default) , but if you have a different port, you must manually add it. See man mw and look into the -i and s command

If the imap/smtp address is not the issue, try to ssh into the mail server. It should only ask you for the same password you would input at neomutt's final input. If you connect with ssh, then the issue is probably the wrong imap/smtp address

TheYellowArchitect avatar Nov 18 '23 06:11 TheYellowArchitect

Hey there, we're the team behind @forwardemail (https://forwardemail.net) and we grew frustrated with Thunderbird; so we're trying out open-source terminal clients. We recommended mutt-wizard in our docs, and then stumbled upon this when trying to set it up. Ultimately what worked for us is to specify everything via the option flags, e.g. mw -a [email protected] -s smtp.forwardemail.net -S 587 -u [email protected] -i imap.forwardemail.net -I 993.

titanism avatar Nov 22 '23 21:11 titanism

Fantastic guys -- i will try this.

I will say to @TheYellowArchitect that I am 100% sure the server addresses are correct. In my case, both are "mail.infomaniak.com" So, I will go down the path of port specification and see where it leads... will update soon.

It is nice to see, as usual the support we get in these communities here and elsewhere of people who are a few steps ahead. I will return the favor to someone else, I promise.

muttnooob avatar Nov 27 '23 17:11 muttnooob

@titanism @TheYellowArchitect I tried doing manual settings, careful to double check the port and passwords for any potential errors. I still got "Log-on not successful" Where in the process would there be like an error code I could examine? Would the mail provider have record of what went wrong maybe? It is very strange - as these very same settings get Thunderbird up and running with no problems.

muttnooob avatar Nov 27 '23 19:11 muttnooob

Hey there, we're the team behind @forwardemail (https://forwardemail.net) and we grew frustrated with Thunderbird; so we're trying out open-source terminal clients. We recommended mutt-wizard in our docs, and then stumbled upon this when trying to set it up. Ultimately what worked for us is to specify everything via the option flags, e.g. mw -a [email protected] -s smtp.forwardemail.net -S 587 -u [email protected] -i imap.forwardemail.net -I 993.

by the way -- i visited your website and LOVE what you're doing.

muttnooob avatar Nov 27 '23 19:11 muttnooob

@muttnooob thank you! feedback super welcome. we ❤️ reading mail over terminal 😆

titanism avatar Nov 27 '23 20:11 titanism

@muttnooob thank you! feedback super welcome. we ❤️ reading mail over terminal 😆

so -- if i can't get this neomutt mutt wizard thing working -- what terminal client do you recommend? - just tried himalaya, but it seems like a productivity drain since it's pure CLI....

muttnooob avatar Nov 27 '23 20:11 muttnooob

@muttnooob you could try https://github.com/d99kris/nmail, it's more like alpine, but a bit more modern.

we wanted something with vi key bindings, so we went with neomutt

titanism avatar Nov 27 '23 20:11 titanism

oh oh - something is happening -- i did the above but this time i'm using -f which forces account creation without connection, and then running mbsync -- looks like it is grabbing stuff..... @TheYellowArchitect @titanism

muttnooob avatar Nov 27 '23 21:11 muttnooob

guys, looks like everything is working -- except I can't figure out how to get the mailsync or "mw -T" to work. it doesn't appear to be automatically pulling mails. do you know how i can find out if the cronjob manager is working?

muttnooob avatar Nov 29 '23 20:11 muttnooob

@muttnooob I haven't done automatically pulling mails atm (I just execute mailsync since it is binded to Super+F8 by default, see dwm's config)

I found this in luke's config guide (Super+F1)

Once you have successfully added your email address(es), you can open your mail with
neomutt which is also bound to Mod+e. You can sync your mail by pressing Mod+F8 and you
can set a cronjob to sync mail every 10 minutes by running mw -t 10.

You may also want to install pam-gnupg-git, which can be set up to automatically
unlock your GPG key on login, which will allow you avoid having put in a password to sync and
send, all while keeping your password safe and encrypted on your machine.

I ran mw -t 10, the output looks like "Task Failed Succesfully" since I lack crontab

/usr/local/bin/mw: line 243: crontab: command not found
Adding automatic mailsync every 10 minutes...
/usr/local/bin/mw: line 252: crontab: command not found

If you have crontab it should work for you @muttnooob

TheYellowArchitect avatar Nov 30 '23 16:11 TheYellowArchitect

crontab I opened /usr/local/bin/mw to see what mw -t does, it seems crontab is required, but latest LARBS lacks crontab. At least from my side.

TheYellowArchitect avatar Nov 30 '23 17:11 TheYellowArchitect

@muttnooob I haven't done automatically pulling mails atm (I just execute mailsync since it is binded to Super+F8 by default, see dwm's config)

I found this in luke's config guide (Super+F1)

Once you have successfully added your email address(es), you can open your mail with
neomutt which is also bound to Mod+e. You can sync your mail by pressing Mod+F8 and you
can set a cronjob to sync mail every 10 minutes by running mw -t 10.

You may also want to install pam-gnupg-git, which can be set up to automatically
unlock your GPG key on login, which will allow you avoid having put in a password to sync and
send, all while keeping your password safe and encrypted on your machine.

I ran mw -t 10, the output looks like "Task Failed Succesfully" since I lack crontab

/usr/local/bin/mw: line 243: crontab: command not found
Adding automatic mailsync every 10 minutes...
/usr/local/bin/mw: line 252: crontab: command not found

If you have crontab it should work for you @muttnooob

mw -t X seems to return no error messages, so it must be working. i keep pressing "o" just in case. but i suppose i could do a bunch of sending myself some emails to see if it is working. thank you!

muttnooob avatar Dec 01 '23 15:12 muttnooob

crontab I opened /usr/local/bin/mw to see what mw -t does, it seems crontab is required, but latest LARBS lacks crontab. At least from my side.

ah yes. i wouldn't know where to find mw, but now I know. thank you again.

muttnooob avatar Dec 01 '23 15:12 muttnooob

it seems neomutt truncates formatting to include both URL highlights and formatting of, say, bullets.

if there is a URL link longer than the defined width of the message view, those extra parts of the link are not highlighted to be useful. my workaround to get to URLs is to install URLscan and do CTRL+B to find the link I need.

similarly, if a person sends you an email with a few bullet points, the coloring of the bullet point also ends where the defined width of the message view as well.

have either of you picked up on this issue as well?

muttnooob avatar Dec 01 '23 15:12 muttnooob

if there is a URL link longer than the defined width of the message view, those extra parts of the link are not highlighted to be useful. my workaround to get to URLs is to install URLscan and do CTRL+B to find the link I need.

email-url

The URL was not cut, though I have no idea how to highlight or yank or open a hyperlink in neomutt without mouse (like newsboat, where you press o and auto-opens the base url)

TheYellowArchitect avatar Dec 01 '23 23:12 TheYellowArchitect

no matter what email i try to add using "mw -a [email protected]" I get "Log-on not successful" i am 100% the password is successful and that this account does not require any app-specific passwords to use, like Gmail. And I had no trouble setting these accounts up months ago. thunderbird (yuck) seems to have no problem logging in today via IMAP and downloading with these credentials.

I reformatted LARBS recently, and lost my GPG keys. On pressing mw -a [email protected] I couldn't login no matter what, even though my password was correct (I tried all possible) I even did ssh [email protected] to ensure the password was the problem I got the "log on not succesful."

Once I confirmed this, I did ssh [email protected] (has sudo priviledges) and did passwd hello and changed the password. Then I connected no problem.

TheYellowArchitect avatar Jul 11 '24 08:07 TheYellowArchitect