🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: YAMN from github on Linux

#304288
From: Stefan Claas
Date: Sat, 04 May 2019 07:15
50 lines
3119 bytes
Am Sat, 4 May 2019 00:53:49 -0600
schrieb Grant Taylor <gtaylor@tnetconsulting.net>:

> 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().

Respect, that you dive so deep into YAMN. What I don't understand
why is this so complicated to set-up on your machine?

Can you please try the follwing instead. YAMN has a yamn.cfg
which must reside in the it's YAMN homedir, as you know.

What happens if you use the [FILES] parameters instead, of
your hacking? Like:

[FILES]

Maildir = /path/to/Maildir
Pooldir = /path/to/pooldir
etc?

Regards
Stefan
Technical Details
Message-ID: <qaje6e$h1v$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!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> <qajd82$q4h$1@tncsrv09.home.tnetconsulting.net>

Show Full Headers
Complete Article Headers
Message-ID: <qaje6e$h1v$1@dont-email.me>
Subject: Re: YAMN from github on Linux
Date: Sat, 4 May 2019 09:15:25 +0200
From: Stefan Claas <sac@300baud.de>
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> <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!not-for-mail
Content-Type: text/plain; charset=UTF-8
Cancel-Lock: sha1:NaN+Go3fGPPBBTftSG3HQkXEoC4=
Newsgroups: alt.privacy.anon-server
Mime-Version: 1.0
Organization: A noiseless patient Spider
Content-Transfer-Encoding: quoted-printable
Lines: 51
X-Received-Bytes: 3277
X-Received-Body-Crc: 3706780189
Injection-Date: Sat, 4 May 2019 07:15:26 -0000 (UTC)
X-Newsreader: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu)