mailctl --> oama (OAuth Manager)
#26
Replies: 4 comments
|
It would be nice if oama also had a transparent way of getting the refresh token. Stuff like |
I suppose that can be done. Printing the already stored refresh token on |
|
This is great news. |
See the new |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
mailctlis undergoing a fundamental rewrite and will be transformed into anew utility called
oamastanding for OAuth Manager.It will be simpler, better, etc. -- I hope :-)
(Oama is also a name of a Hawaiian fish.)
History
mailctloriginated from a shell script with same name I used to gluetogether and control the components of my email system. These components
were
mutt,msmtp,fdm,crontabandpass. The script worked finewith my setup for quite a while. I should note that I have been using
several email accounts for various purposes.
When the need for dealing with OAuth2 credentials for my gmail account arose
and I could not find an additional component to deal with OAuth for my
liking I decided to replace the script with a utility of my own. So a new
application written in Haskell was born. The application provided everything
what the old script did plus also solved the OAuth problem for the other
components.
The new
mailctlprogram was more or less like my old script with someadditional functionality. It worked but in fact was an inconsistent mess
with numerous external dependencies. It completely went against the (Unix)
design philosophy of solving one definite problem well while avoiding
coupling and leaving not related problems to other tools. Who says that you
cannot write hard to maintain spaghetti code in Haskell.
On top of that dealing with OAuth turned out to be more difficult than I
anticipated. Service providers make it hard: no standard followed, no proper
documentation, implementations keep subtly changing, no compatibility just
go for the vendor lock-in.
Going public
When I made the program public and people started using it the design and
implementation shortcomings surfaced quickly. It also became clear that most
people wanted to use it differently from the way I used it. I guess most
users use mainly the OAuth component and even if they use some of the other
functionalities they are not always a perfect fit for them or wanted to use
something else.
As bug reports and new feature requests were coming in the maintenance has
been becoming increasingly difficult and frustrating. The time has arrived
for a rewrite.
The new program:
oamaThe essence of the redesign is stripping away every functionalities and
external (tool) dependencies which are not directly related to dealing with
OAuth credentials.
Here is the outline of the main goals.
Available commands left:
Backends:
Reduce configuration as much as reasonable:
Gradually improve the
authorizationprocess, in particular for companyaccounts.
Provide completely static binaries at least for Linux x86_64 and
aarch64 architectures.
It is obvious that the new program won't be a controller of some mail
system only a utility to deal with OAuth credentials. That's why the new
name is OAuth Manager (oama).
Comments are welcome, just don't ask me to keep the old mailctl ;-)
All reactions