Home >Backend Development >Golang >[DevLog # Gmail-TUI: Replicating Gmail-Web&#s Navigation

[DevLog # Gmail-TUI: Replicating Gmail-Web&#s Navigation

DDD
DDDOriginal
2024-11-24 06:40:11448browse

Thanks to all the kind support on the previous DevLog, I am back with the latest update on my Gmail-TUI application! If you are not aware of this OpenSource project, I am developing a Terminal-based UI application that aims to replicate the Gmail-Web experience in the terminal, without the need for a Web-Browser:

Read DevLog #01 | Contribute to the Project's GitHub Repository

Replicating Gmail-Web's Navigation

[DevLog # Gmail-TUI: Replicating Gmail-Web

While the implementation of the Inbox feature is still a work in progress, I have implemented a better navigation system within the Gmail-TUI than its previous version, as can be seen above.

In the earlier version, the user would be directly prompted to compose a mail and send it, since that was the only feature available at that time. After the recent modifications, however, a basic blueprint has been laid for how a user will be able to navigate within this application:

  1. The Login Screen is now shown as the main page.
  2. After a successful login, the Dashboard is displayed with possible options for Composing Mails (Implemented) and Viewing Inbox, Starred, and Draft mails (WIP).
  3. Upon selecting the desired option, the user is led to a new page for performing option-related operations.
  4. Exit & Back options have been provided on appropriate pages for a better user experience.

[DevLog # Gmail-TUI: Replicating Gmail-Web
A successful login is currently being validated by sending a 'Login-alert' mail to the person trying to log in. If the email-password does not match, then the 'Login-alert' mail will not be sent to the user and they will be prompted to retry again.

As of now, only the Compose options is functional but after the implementation of the IMAP-Protocol, the remaining options will be modified to perform related operations.

Plans For Now

Okay, so to recap, since the first DevLog, the following functionalities have now been added to Gmail-TUI:

  • ✅ A login page for entering email ID and password
  • ✅ Composing and sending mails
  • [WIP] Listing received emails with email IDs in the Inbox
  • [WIP] Opening the content of the received mail after clicking it
  • [WIP] Viewing sent emails in the Sent-Box
  • ✅ Area to choose from the Compose, Inbox, Drafts, Sent buttons

Since networking has never really been my strongest point, I have been working on better understanding the IMAP Protocol that is to be used to display emails in User’s inbox. Sadly for me, I have been struggling with properly grasping the related concepts. Or rather, I feel like I am unnecessarily prolonging the implementation of the Inbox feature by wanting to learn more and more about IMAP because of just how fascinating it really is!

I understand how it’s to be implemented in the code now but there's a part of me that wishes I wouldn’t move on until I understand everything about IMAP - which I realise is pretty impractical.

Therefore, I have made up my mind: I will be implementing the inbox feature using whatever knowledge I have gained so far and ensuring that this feature is present in the next version of Gmail-TUI. I mean, what is the point of trying to capture so much knowledge without even trying to implement it somewhere... Right?


If you liked reading this DevLog and would like to have a closer look at my development process, please consider following me on X, Reddit, and GitHub!

The above is the detailed content of [DevLog # Gmail-TUI: Replicating Gmail-Web&#s Navigation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn