πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #304287

Re: YAMN from github on Linux

#304287
From: Grant Taylor
Date: Sat, 04 May 2019 06:53
32 lines
2769 bytes
On 5/4/19 12:47 AM, Grant Taylor wrote:
> dir.Unseen(key) will only see messages in the Maildir/new/ subdirectory. 
>  Β It doesn't see anything in Maildir/cur/.Β  So, having anything else 
> looking at the Maildir and moving messages from the Maildir/new/ 
> subdirectory to the Maildir/cur/ subdirectory renders those messages 
> invisible to YAMN.

Minor correction:  That should be "dir.Unseen()", not "dir.Unseen(key)".

I did some more hacking and got dir.Keys() to see the messages in 
Maildir/cur/.  I even managed to get dir.Flags(key) to return status 
about messages.  This means that it's possible to look for the "S" 
(seen) flag to know if the message(s) in the Maildir/cur/ subdirectory 
is (are) unread or not.  -  I didn't go further, considering the following.

Unfortunately dir.Keys() does not see messages in the Maildir/new/ 
subdirectory.  So, it is going to take a combination of dir.Unseen() and 
dir.Keys() to see the contents of both the Maildir/new/ and Maildir/cur/ 
subdirectories.  I don't know enough about Go to be able to append / 
concatenate / ??? the results of dir.Unseen() and dir.Keys().

At this point, I think that I can likely get a stock / unmodified YAMN 
to compile and run.  I may have to feed it a number of messages.  But I 
suspect that it will work as intended.

I'm just not keen on the idea of the behavior of dir.Unseen().



-- 
Grant. . . .
unix || die
Technical Details
Message-ID: <qajd82$q4h$1@tncsrv09.home.tnetconsulting.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <qa9i5g$7js$1@tncsrv09.home.tnetconsulting.net> <qab43l$nbm$1@tncsrv09.home.tnetconsulting.net> <qab48d$nbm$2@tncsrv09.home.tnetconsulting.net> <qaf31g$2fi$3@dont-email.me> <qafbqq$vqr$1@tncsrv09.home.tnetconsulting.net> <qajcsd$7nn$1@tncsrv09.home.tnetconsulting.net>

Show Full Headers
Complete Article Headers
Message-ID: <qajd82$q4h$1@tncsrv09.home.tnetconsulting.net>
Subject: Re: YAMN from github on Linux
Date: Sat, 4 May 2019 00:53:49 -0600
From: Grant Taylor <gtaylor@tnetconsulting.net>
References: <qa9i5g$7js$1@tncsrv09.home.tnetconsulting.net> <qab43l$nbm$1@tncsrv09.home.tnetconsulting.net> <qab48d$nbm$2@tncsrv09.home.tnetconsulting.net> <qaf31g$2fi$3@dont-email.me> <qafbqq$vqr$1@tncsrv09.home.tnetconsulting.net> <qajcsd$7nn$1@tncsrv09.home.tnetconsulting.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: TNet Consulting
Lines: 32
NNTP-Posting-Host: alpha.home.tnetconsulting.net
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: tncsrv09.home.tnetconsulting.net 1556953154 26769 198.18.18.251 (4 May 2019 06:59:14 GMT)
X-Complaints-To: newsmaster@tnetconsulting.net
NNTP-Posting-Date: Sat, 4 May 2019 06:59:14 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.5.3
In-Reply-To: <qajcsd$7nn$1@tncsrv09.home.tnetconsulting.net>
Content-Language: en-US