Is it possible to output unread count to the terminal?

Support topics for the mail/news/chat client
hundone

Is it possible to output unread count to the terminal?

Post by hundone » 2015-04-12, 09:09

Is it possible to output unread count to the terminal? As of know I have to switch workspace to check if I have new mail. It would be nice if I could output the unread count to the terminal and then let Conky show the unread count.

squarefractal

Re: Is it possible to output unread count to the terminal?

Post by squarefractal » 2015-04-12, 12:03

No, that I don't think is really possible, unless there's (or you write) an extension.

You could also install one of these "minimize to notification tray" extensions like MintrayR and have an icon that's always in the notification tray, regardless of which desktop you're in.

hundone

Re: Is it possible to output unread count to the terminal?

Post by hundone » 2015-04-12, 12:09

I dont have a tray. :) And I'm not that good at coding either.

squarefractal

Re: Is it possible to output unread count to the terminal?

Post by squarefractal » 2015-04-12, 14:18

Depending on your desktop environment, you can add a notification area in one of the "panels" (or whatever they call it). Unless its Gnome 3, in which case refer to these links:
https://superuser.com/questions/749908/ ... a-in-gnome
https://forums.opensuse.org/showthread. ... ation-area

hundone

Re: Is it possible to output unread count to the terminal?

Post by hundone » 2015-04-12, 15:17

I'm using the i3 wm and it was by choise I dont use a tray. :) Thanks anyway!

New Tobin Paradigm

Re: Is it possible to output unread count to the terminal?

Post by New Tobin Paradigm » 2015-04-12, 15:24

You MAY be able to create an extension that will shove it into the terminal. Though normally mozilla programs started from the terminal output error log stuff.. I THINK.

hundone

Re: Is it possible to output unread count to the terminal?

Post by hundone » 2015-04-12, 15:28

Matt A Tobin wrote:You MAY be able to create an extension that will shove it into the terminal. Though normally mozilla programs started from the terminal output error log stuff.. I THINK.
I'm not interested in running Fossamail via the terminal. I was hoping there was some command I haven't found yet that could output the total amount of unread mails. The same way it works with Newsbeuter: "newsbeuter -x print-unread".

New Tobin Paradigm

Re: Is it possible to output unread count to the terminal?

Post by New Tobin Paradigm » 2015-04-12, 15:31

Oh.. No there is not. Sorry. FossaMail like most Mozilla-based applications is designed purely as a GUI application.

hundone

Re: Is it possible to output unread count to the terminal?

Post by hundone » 2015-04-12, 15:38

Most apps usually support some simple instructions via the terminal, even the GUI ones. :)

squarefractal

Re: Is it possible to output unread count to the terminal?

Post by squarefractal » 2015-04-13, 01:54

Unlike Fossamail, Newsbeuter is a CLI application :)

I've never used Fossamail, but its likely that the application is storing this data somewhere. This has been reported not to work. Maybe you can spend some time inspecting where it's stored (e.g. by checking all the sqlite3 dbs)?

hundone

Re: Is it possible to output unread count to the terminal?

Post by hundone » 2015-04-13, 04:59

Newsbeuter was just a example. Rhythmbox could output information to the terminal, you could even control it via the terminal. And that's a GUI application. ;)

User avatar
Moonchild
Project founder
Project founder
Posts: 39080
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Is it possible to output unread count to the terminal?

Post by Moonchild » 2015-04-14, 08:00

FossaMail is not written solely for Linux, and as such "logging misc things to the terminal on-demand" is not part of its code. Linux-native GUI applications might have such features on occasion, mixing CLI and GUI, but for FossaMail that has never been a design goal, is not intended to be run one-shot to garner information and output it on the command-line.

You would indeed be better off using a separate program to check for and output unread post counts on mail servers if you don't like to use a tray notification.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

hundone

Re: Is it possible to output unread count to the terminal?

Post by hundone » 2015-04-14, 08:02

External program. Why didn't I think of that? Duh.. Thanks!