From:  Kari Hurtta <hurtta@klovni.keh.iki.fi>
Date:  20 Jun 2017 19:04:47 Hong Kong Time
Newsgroup:  news.alt119.net/comp.mail.elm
Subject:  

Re: Command to Return Number of Unread Emails

NNTP-Posting-Host:  89.27.35.245

Allodoxaphobia  writes:

> On Fri, 13 Jan 2017 23:35:21 +0000 (UTC), Computer Nerd Kev wrote:
>>
>> To this end I've been trying to find a Linux command line
>> utility (preferably included with, or available in a package
>> for, OpenWrt) to simply return the number of unread emails
>> in a specified Email inbox. 
>
> Local "Email inbox", or remote (imap)?
>
> Don't laugh, but I use `nfrm` (in a bash script) from the elm 
> package to count (new/unread in my case) messages in my myriad 
> of email folders.
>
>   https://ts3.easyco.net/easydocs/linux/man/man1/frm.htm
>
> I use _nothing_ else from the elm package.  
> In fact, I copy nfrm to $HOME/bin/ and uninstall elm.  heh...
>
> Ahh..  Reading further I see it's a remote email server.
> So, this is probably just more wasted electrons.
>
> Jonesy

nfrm from Elm ME+ can read IMAP (or POP) mailboxes,
but it prompts password -- you can not save password
to configuration.

However, it is slow for this purpose.

/ Kari Hurtta

http://www.elmme-mailer.org/