Claws oauth2 setting up

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Claws oauth2 setting up

Postby James225 » Jan 5th, '25, 11:13

I used Evolution for many years and for some reason cannot install on Mageia. I installed it and when it came to running the app it starts up and then when the setup page comes up it disappears,

As Claws is the distro choice of email client i thought i would try that. But setting up oauth2 manually i haven't found easy. I have a yahoo and gmail acount i wish to use. I've entered the imap and smtp details. I presume then one clicks 'auto configure' which then takes one to the web login to login and then all should be okay.

I'd be grateful if someone could advise.
James225
 
Posts: 19
Joined: Aug 28th, '24, 16:55

Re: Claws oauth2 setting up

Postby doktor5000 » Jan 5th, '25, 18:23

You're not interested in getting evolution working if you're used to that ?
James225 wrote:As Claws is the distro choice of email client i thought i would try that.

Why do you think so ?

In general I'd probably recommend something that is a bit more userfriendly and commonly used, e.g. thunderbird.
That is also pretty extensively documented both for thunderbird and gmail: https://support.mozilla.org/en-US/kb/th ... il-account

Although for claws that's also described pretty well: https://www.claws-mail.org/faq/index.ph ... _for_Gmail
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18021
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Claws oauth2 setting up

Postby James225 » Jan 6th, '25, 06:16

a] Evolution seems to have a bug as i said which does not seem to have been solved.

b] Claws is what is on the Mageia Live DVD and is installed.

c] Thunderbird is ok but i would rather use MH than mbox for mail.

d] That's what i have been trying to follow hence why i posted as it's not that clear. It has not been updated since oauth2 was updated in the Summer.

Removed full quote. ~Germ
James225
 
Posts: 19
Joined: Aug 28th, '24, 16:55

Re: Claws oauth2 setting up

Postby doktor5000 » Jan 6th, '25, 17:44

James225 wrote:d] That's what i have been trying to follow hence why i posted as it's not that clear. It has not been updated since oauth2 was updated in the Summer.

What in particular is not clear? What did you try yet from those instruction, with what outcome ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18021
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Claws oauth2 setting up

Postby James225 » Jan 7th, '25, 12:47

It doesn't access the email like most oauth procedures.

Most likely the problem is that this Mageia version is 4.1.1 released 20oct22. They do a release each year and the latest is 4.3.0 10jun24. In the latest version they revamped it as most providers have switched to oauth2. Think it is only AOL that has not implemented it yet.

May i ask for 4.3.0 to be put in the repo.
James225
 
Posts: 19
Joined: Aug 28th, '24, 16:55

Re: Claws oauth2 setting up

Postby Germ » Jan 7th, '25, 15:29

You need to file a package request bug report at Mageia Bugzilla.

https://wiki.mageia.org/en/How_to_repor ... ge_request

https://bugs.mageia.org/
Starting in 1999: Mandrake > Mandriva > Mageia
Linux User #274693
User avatar
Germ
 
Posts: 707
Joined: Mar 30th, '11, 13:16
Location: Chelsea, Oklahoma USA

Re: Claws oauth2 setting up

Postby morgano » Jan 7th, '25, 16:35

Yes best is to file an update request - it clearly is due for an update.

If you can not wait, you can install it now as flatpak
https://wiki.mageia.org/en/Flatpak
https://flathub.org/apps/org.gnome.Evolution
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1478
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Claws oauth2 setting up

Postby James225 » Jan 7th, '25, 17:23

morgano wrote:Yes best is to file an update request - it clearly is due for an update.


Just done it so hopefully i've done it correctly. Thing is if Claws is the distro email client [as it is on the install DVD] i'm at a loss as to why no one else has spotted it.

As we know there are not so many email clients in linux to choose from. The use of MH in Claws in my view is a plus. Sylpheed was a more attractive layout but i think it has ceased maintenance now.
James225
 
Posts: 19
Joined: Aug 28th, '24, 16:55

Re: Claws oauth2 setting up

Postby doktor5000 » Jan 7th, '25, 18:17

You still didn't answer the question what exactly you already tried and to what outcome.
Version update should not be necessary, oauth2 support is present since 4.0
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18021
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Claws oauth2 setting up

Postby James225 » Jan 7th, '25, 18:51

In the last release oauth2 had a major update i read in the notes. I'm getting ready to go to work and will be away for 4 days. I'll post when i get back as i haven't got time now.
Last edited by doktor5000 on Jan 7th, '25, 18:56, edited 1 time in total.
Reason: removed fullquote
James225
 
Posts: 19
Joined: Aug 28th, '24, 16:55

Re: Claws oauth2 setting up

Postby morgano » Jan 7th, '25, 21:13

James225 wrote:
morgano wrote:Yes best is to file an update request - it clearly is due for an update.


Just done it so hopefully i've done it correctly.


I could not find, please link.

Thing is if Claws is the distro email client [as it is on the install DVD] i'm at a loss as to why no one else has spotted it.


There are others on DVD too, like Thunderbird. I *think* most use TB. My reason for using it is that it works on many desktops and OS:es. I used Konqueror before, but found it too tied with KDE, and had for me disturbing bugs.

What client gets installed automatically depends on which desktop you have chosen. But you can choose another.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1478
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Claws oauth2 setting up

Postby James225 » Jan 12th, '25, 15:56

doktor5000 wrote:You still didn't answer the question what exactly you already tried and to what outcome.
Version update should not be necessary, oauth2 support is present since 4.0


As i undestand it to set up claws one does

Configuration - Preferences for current account

Under Account one has
a] Basic
name of account named "yahoo"
Full name: James Freer
mail address: jrjfreer@yahoo.co.uk
server receiving: imap.mail.yahoo.com
server sending: smtp.mail.yahoo.com
userID: jrjfreer@yahoo.co.uk

b] Receive
authentication method selected "OAUTH2"
userID: jrjfreer@yahoo.co.uk

c] Send
authentication method selected "OAUTH2"
userID: jrjfreer@yahoo.co.uk

d] Compose
left blank apart from selected directory "en-GB"

e] Templates
left blank as i don't use any

f] Privacy
left as default

g] TLS
selected by default
IMAP use TLS
SMTP use TLS
clent certificates left blank
selected use non blicking TLS

h] Proxy
use proxy server
left not selected

i] Oauth2
selected OAUTH2 email service
provider selected "yahoo"
Client ID: jrjfreer@yahoo.co.uk
client secret left blank
obtain authorisation code "open default browser with request"

j] Advanced
selected support receiving port 465
selected IMAP sending 993

Then one goes to oauth2 and selects 'open default browser with request'
I get this 'Uh - Oh' [one should get a code which one then selects with 'copy link' and then paste into 'authorisation code' space below. That's what i am not getting. Screenshot attached.

I thought that userID maybe just the name i.e. in my case "jrjfreer" not "jrjfreer@yahoo.co.uk" tried that and made no difference still the same 'Uh-ho' when connecting with browser.
account-oauth2attempt.png
account-oauth2attempt.png (73.69 KiB) Viewed 32331 times
James225
 
Posts: 19
Joined: Aug 28th, '24, 16:55

Re: Claws oauth2 setting up

Postby doktor5000 » Jan 12th, '25, 18:49

Most recent bug report I can find is this: https://www.claws-mail.org/bugzilla/sho ... gi?id=4588
It says to put the project on the google cloud console as "testing" rather then "production" as mentioned on their wiki.
Also you need to setup a project in the google cloud platform that you authenticate against using oauth2, did you do that because you don't mention anything about that ?

For yahoo, you should probably also read their documentation, as there are similar prerequisites, see the last bullet at https://developer.yahoo.com/oauth2/guide/
Also check e.g. https://askubuntu.com/a/1534353/329633
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18021
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Claws oauth2 setting up

Postby James225 » Jan 13th, '25, 09:13

Haven't attempted gmail yet - i thought i'd set up yahoo account first.
Last edited by isadora on Jan 13th, '25, 13:04, edited 1 time in total.
Reason: Please refrain from quoting former message.
James225
 
Posts: 19
Joined: Aug 28th, '24, 16:55

Re: Claws oauth2 setting up

Postby James225 » Jan 13th, '25, 11:19

From what i can work out setting up claws is more involved than i thought. I used to set up an email client without trouble years ago. Now Oauth2 has made things more complex. Why they choose to keep it as a manual setup baffles me. Evolution and Thunderbird do it automatically like all phone apps.

I checked this morning on the Mageia liveDVD and Claws is there as default email client. I thought it was worth asking but as i realise now one might as well use Thunderbird and be set up in a couple of minutes.
James225
 
Posts: 19
Joined: Aug 28th, '24, 16:55

Re: Claws oauth2 setting up

Postby Germ » Jan 13th, '25, 15:39

You're not the only one having problems with Claws Mail...

https://forum.mxlinux.org/viewtopic.php?t=83340
Starting in 1999: Mandrake > Mandriva > Mageia
Linux User #274693
User avatar
Germ
 
Posts: 707
Joined: Mar 30th, '11, 13:16
Location: Chelsea, Oklahoma USA

Re: Claws oauth2 setting up

Postby doktor5000 » Jan 13th, '25, 18:16

Well the oauth setup on the provider side is the same, no matter what client. For most of the time thunderbird didn't use oauth by default, and used to connect as "3rd party application" which is inherently more insecure.
Apart from that Thunderbird has a complete browser engine included, so it's pretty easy for them to add the necessary browser dialogs to setup oauth2 inside thunderbird nowadays without relying on an external browser.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18021
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Claws oauth2 setting up

Postby James225 » Jan 22nd, '25, 13:46

morgano wrote:
James225 wrote:
morgano wrote:Yes best is to file an update request - it clearly is due for an update.


Just done it so hopefully i've done it correctly.


I could not find, please link.

Thing is if Claws is the distro email client [as it is on the install DVD] i'm at a loss as to why no one else has spotted it.


There are others on DVD too, like Thunderbird. I *think* most use TB. My reason for using it is that it works on many desktops and OS:es. I used Konqueror before, but found it too tied with KDE, and had for me disturbing bugs.

What client gets installed automatically depends on which desktop you have chosen. But you can choose another.


I tried to use the bug report but that was perhaps the wrong thing to do.

If i can't use Claws i wil try and use Evolution.

But again i have found Mageia has ver 3.48.3 and current version is 3.54.x

As i can't do it can someone please raise a packaging request for Claws and Evolution.
James225
 
Posts: 19
Joined: Aug 28th, '24, 16:55

Re: Claws oauth2 setting up

Postby morgano » Jan 22nd, '25, 16:13

James225 wrote:I tried to use the bug report but that was perhaps the wrong thing to do.

I still cant find it. Link please.

I now opened an update request https://bugs.mageia.org/show_bug.cgi?id=33950
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1478
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Claws oauth2 setting up

Postby csablak » Feb 11th, '25, 09:56

You might want to try the Vivaldi browser, which has an integrated mail client.
csablak
 
Posts: 28
Joined: Oct 20th, '14, 18:24


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest