Gnus development mailing list
 help / color / mirror / Atom feed
* Configuration weirdness
@ 2016-01-11 22:32 Norman Walsh
  2016-01-11 22:44 ` Norman Walsh
  2016-01-14 15:52 ` Norman Walsh
  0 siblings, 2 replies; 11+ messages in thread
From: Norman Walsh @ 2016-01-11 22:32 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]

Hi all,

This message is a kind of carry on to my message about searching. I wanted
to try notmuch. Historically I use gnus just for email (all nnml). So my
gnus-select-method is:

  (setq gnus-select-method '(nnml ""))

Well, I also have:

(setq gnus-secondary-select-methods
      '((nndiary "")))

but I haven't actually used nndairy in a while. My group display is:

     0, 229: acmecorp
     0,   7: acmecorp.engineering
    38, 194: acmecorp.discuss

etc.

The setup instructions for nnir, suggested doing this:

(setq gnus-select-method '(nnml ""
                                (nnir-search-engine notmuch)
                                ))

When I restart gnus, I get all of my existing groups, but I also get these

  2342,   0: nnml:acmecorp
   222,   0: nnml:acmecorp.engineering
  3332,   0: nnml:acmecorp.discuss

I don't actually care about the nnml: prefix, but I'd like to have a
single list and I'd like not to loose all my existing marks.

Anyone have any idea why my change had the effect that it did? Or how
to get it fixed?

                                        Be seeing you,
                                          norm

--
Norman Walsh <ndw@nwalsh.com> | At least two-thirds of our miseries
http://nwalsh.com/            | spring from human stupidity, human
                              | malice and those great motivators and
                              | justifiers of malice and stupidity:
                              | idealism, dogmatism and proselytizing
                              | zeal on behalf of religous or political
                              | ideas.--Aldous Huxley

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 172 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration weirdness
  2016-01-11 22:32 Configuration weirdness Norman Walsh
@ 2016-01-11 22:44 ` Norman Walsh
  2016-01-12  0:51   ` Eric Abrahamsen
  2016-01-14 15:52 ` Norman Walsh
  1 sibling, 1 reply; 11+ messages in thread
From: Norman Walsh @ 2016-01-11 22:44 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

Norman Walsh <ndw@nwalsh.com> writes:
> Anyone have any idea why my change had the effect that it did? Or how
> to get it fixed?

FWIW, it appears that if I hack the .newsrc.eld file to copy/move
the (“foldername” …) expressions to (“nnml:foldername” …) then
it kind of works. But I'm not sure how safe that is.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | There has never been an unexpectedly
http://nwalsh.com/            | short debugging period in the history
                              | of computers.--Steven Levy

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 172 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration weirdness
  2016-01-11 22:44 ` Norman Walsh
@ 2016-01-12  0:51   ` Eric Abrahamsen
  2016-01-12  1:01     ` Norman Walsh
                       ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Eric Abrahamsen @ 2016-01-12  0:51 UTC (permalink / raw)
  To: ding

Norman Walsh <ndw@nwalsh.com> writes:

> Norman Walsh <ndw@nwalsh.com> writes:
>> Anyone have any idea why my change had the effect that it did? Or how
>> to get it fixed?
>
> FWIW, it appears that if I hack the .newsrc.eld file to copy/move
> the (“foldername” …) expressions to (“nnml:foldername” …) then
> it kind of works. But I'm not sure how safe that is.

If you've already done it, and nothing broke, then you should be okay.
The backend you put in your `gnus-select-method' is meant to be the
"primary" select method, which means that group names aren't prefixed
with the server name (ie, you were originally seeing just seeing
"acmecorp.engineering", no "nnml" prefix).

I don't know why adding a `nnir-search-engine' parameter would change
that, but the prefix itself shouldn't really make any difference.

Are you sure notmuch works with nnml? I was under the impression it only
works with the maildir format.

Eric




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration weirdness
  2016-01-12  0:51   ` Eric Abrahamsen
@ 2016-01-12  1:01     ` Norman Walsh
  2016-01-12  6:51     ` Adam Sjøgren
  2016-01-12  7:04     ` Glyn Millington
  2 siblings, 0 replies; 11+ messages in thread
From: Norman Walsh @ 2016-01-12  1:01 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]

Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> If you've already done it, and nothing broke, then you should be okay.
> The backend you put in your `gnus-select-method' is meant to be the
> "primary" select method, which means that group names aren't prefixed
> with the server name (ie, you were originally seeing just seeing
> "acmecorp.engineering", no "nnml" prefix).

Ok. I only tested it on one group, and I only tested that it briefly.
But I can try to convert them all.

> I don't know why adding a `nnir-search-engine' parameter would change
> that, but the prefix itself shouldn't really make any difference.

Ok.

> Are you sure notmuch works with nnml? I was under the impression it only
> works with the maildir format.

It appears to. The search engine behind mu4e only supports maildir.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | We look back on our life as a thing of
http://nwalsh.com/            | broken pieces, because our mistakes and
                              | failures are always the first to strike
                              | us, and outweigh in our imagination
                              | what we have accomplished and
                              | attained.--Goethe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 172 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration weirdness
  2016-01-12  0:51   ` Eric Abrahamsen
  2016-01-12  1:01     ` Norman Walsh
@ 2016-01-12  6:51     ` Adam Sjøgren
  2016-01-12  7:04     ` Glyn Millington
  2 siblings, 0 replies; 11+ messages in thread
From: Adam Sjøgren @ 2016-01-12  6:51 UTC (permalink / raw)
  To: ding

Eric writes:

> Are you sure notmuch works with nnml? I was under the impression it only
> works with the maildir format.

It does - I use notmuch with nnml :-)


  Best regards,

    Adam

-- 
 "You gotta realize, you can kill somebody with               Adam Sjøgren
  kindness too."                                         asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration weirdness
  2016-01-12  0:51   ` Eric Abrahamsen
  2016-01-12  1:01     ` Norman Walsh
  2016-01-12  6:51     ` Adam Sjøgren
@ 2016-01-12  7:04     ` Glyn Millington
  2016-01-12  7:38       ` Eric Abrahamsen
  2 siblings, 1 reply; 11+ messages in thread
From: Glyn Millington @ 2016-01-12  7:04 UTC (permalink / raw)
  To: ding

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Are you sure notmuch works with nnml? I was under the impression it only
> works with the maildir format.

Yes it works very nicely with nnml :) From man notmuch

       The mail directory you specify can contain any number of
       sub-directories and should primarily contain only files with
       individual email messages (eg. maildir or mh archives are
       perfect).

atb


Glyn




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration weirdness
  2016-01-12  7:04     ` Glyn Millington
@ 2016-01-12  7:38       ` Eric Abrahamsen
  0 siblings, 0 replies; 11+ messages in thread
From: Eric Abrahamsen @ 2016-01-12  7:38 UTC (permalink / raw)
  To: ding

Glyn Millington <glyn.millington@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Are you sure notmuch works with nnml? I was under the impression it only
>> works with the maildir format.
>
> Yes it works very nicely with nnml :) From man notmuch
>
>        The mail directory you specify can contain any number of
>        sub-directories and should primarily contain only files with
>        individual email messages (eg. maildir or mh archives are
>        perfect).

Okay! I learned something today.

Thanks to all.

E




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration weirdness
  2016-01-11 22:32 Configuration weirdness Norman Walsh
  2016-01-11 22:44 ` Norman Walsh
@ 2016-01-14 15:52 ` Norman Walsh
  2016-01-15  1:46   ` Eric Abrahamsen
  1 sibling, 1 reply; 11+ messages in thread
From: Norman Walsh @ 2016-01-14 15:52 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 2925 bytes --]

Hello again,

Contrary to what I reported about hacking .newsrc.eld to fix this,
further attempts to do so have failed. Depending on how I hack things,
I get variously errors about missing directories, or groups with no
mail, etc.

I even tried moving my ~/Mail directory out of the way and “restarting”
to see if I could get an example of what a clean setup would look like.
That wasn't fruitful.

I also tried making some other method (nndiary) my primary select
method so that the nnml: prefix would be expected. Also not fruitful.

I've now got a whole bunch of useless

  *,   0: nnml:group-name

groups *and*

  2, 234: group-name

groups. Which is kind of annoying.

I'm happy to have nnml: if that's what makes nnir happy. And I would like
to get nnir working with notmuch since that seemed to do a quite nice job
for the actual searching.

Norman Walsh <ndw@nwalsh.com> writes:
> This message is a kind of carry on to my message about searching. I wanted
> to try notmuch. Historically I use gnus just for email (all nnml). So my
> gnus-select-method is:
>
>   (setq gnus-select-method '(nnml ""))
>
> Well, I also have:
>
> (setq gnus-secondary-select-methods
>       '((nndiary "")))
>
> but I haven't actually used nndairy in a while. My group display is:
>
>      0, 229: acmecorp
>      0,   7: acmecorp.engineering
>     38, 194: acmecorp.discuss
>
> etc.
>
> The setup instructions for nnir, suggested doing this:
>
> (setq gnus-select-method '(nnml ""
>                                 (nnir-search-engine notmuch)
>                                 ))
>
> When I restart gnus, I get all of my existing groups, but I also get these
>
>   2342,   0: nnml:acmecorp
>    222,   0: nnml:acmecorp.engineering
>   3332,   0: nnml:acmecorp.discuss
>
> I don't actually care about the nnml: prefix, but I'd like to have a
> single list and I'd like not to loose all my existing marks.
>
> Anyone have any idea why my change had the effect that it did? Or how
> to get it fixed?
>
>                                         Be seeing you,
>                                           norm
>
> --
> Norman Walsh <ndw@nwalsh.com> | At least two-thirds of our miseries
> http://nwalsh.com/            | spring from human stupidity, human
>                               | malice and those great motivators and
>                               | justifiers of malice and stupidity:
>                               | idealism, dogmatism and proselytizing
>                               | zeal on behalf of religous or political
>                               | ideas.--Aldous Huxley

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | My life has a superb cast but I can’t
http://nwalsh.com/            | figure out the plot.--Ashleigh Brilliant

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 172 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration weirdness
  2016-01-14 15:52 ` Norman Walsh
@ 2016-01-15  1:46   ` Eric Abrahamsen
  2016-01-15 17:01     ` Norman Walsh
  0 siblings, 1 reply; 11+ messages in thread
From: Eric Abrahamsen @ 2016-01-15  1:46 UTC (permalink / raw)
  To: ding

Norman Walsh <ndw@nwalsh.com> writes:

> Hello again,
>
> Contrary to what I reported about hacking .newsrc.eld to fix this,
> further attempts to do so have failed. Depending on how I hack things,
> I get variously errors about missing directories, or groups with no
> mail, etc.
>
> I even tried moving my ~/Mail directory out of the way and “restarting”
> to see if I could get an example of what a clean setup would look like.
> That wasn't fruitful.
>
> I also tried making some other method (nndiary) my primary select
> method so that the nnml: prefix would be expected. Also not fruitful.
>
> I've now got a whole bunch of useless
>
>   *,   0: nnml:group-name
>
> groups *and*
>
>   2, 234: group-name
>
> groups. Which is kind of annoying.
>
> I'm happy to have nnml: if that's what makes nnir happy. And I would like
> to get nnir working with notmuch since that seemed to do a quite nice job
> for the actual searching.

I may have run out of helpfulness here -- I really don't understand what
is causing this, and I suspect it would take a heck of a lot of
code exploring to figure it out. I guess my recommendation would be to
get your important servers into `gnus-secondary-select-methods', and
then clean up whatever mess results. Once you know which of your
duplicated groups are bogus and which are "real", you can always just
delete the bogus ones.

Sorry,
Eric




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration weirdness
  2016-01-15  1:46   ` Eric Abrahamsen
@ 2016-01-15 17:01     ` Norman Walsh
  2016-01-16  0:13       ` Norman Walsh
  0 siblings, 1 reply; 11+ messages in thread
From: Norman Walsh @ 2016-01-15 17:01 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 597 bytes --]

Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> I may have run out of helpfulness here -- I really don't understand what
> is causing this, and I suspect it would take a heck of a lot of

Right. I'll just have to dig in and see what I can do. Or dig into a
lot of code ;-)

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | There has never been an unexpectedly
http://nwalsh.com/            | short debugging period in the history
                              | of computers.--Steven Levy

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 172 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Configuration weirdness
  2016-01-15 17:01     ` Norman Walsh
@ 2016-01-16  0:13       ` Norman Walsh
  0 siblings, 0 replies; 11+ messages in thread
From: Norman Walsh @ 2016-01-16  0:13 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]

Norman Walsh <ndw@nwalsh.com> writes:
> Right. I'll just have to dig in and see what I can do. Or dig into a
> lot of code ;-)

I dug about for a long while and made some progress. But getting “nnml:” into
the .newsrc.eld file in the right places was tedious and I got frustrated by
the number of mistakes I made.

When I had it mostly working, I discovered that I didn't need to specify

  (nnir-search-engine notmuch)

in the select method if I specified it as a default:

  (setq nnir-method-default-engines '((nnimap . imap) (nntp . gmane) (nnml . notmuch)))

So, in fact, I've gone back to mostly where I started with the
additional default and everything seems to be working fine.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | There has never been an unexpectedly
http://nwalsh.com/            | short debugging period in the history
                              | of computers.--Steven Levy

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 172 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-01-16  0:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-11 22:32 Configuration weirdness Norman Walsh
2016-01-11 22:44 ` Norman Walsh
2016-01-12  0:51   ` Eric Abrahamsen
2016-01-12  1:01     ` Norman Walsh
2016-01-12  6:51     ` Adam Sjøgren
2016-01-12  7:04     ` Glyn Millington
2016-01-12  7:38       ` Eric Abrahamsen
2016-01-14 15:52 ` Norman Walsh
2016-01-15  1:46   ` Eric Abrahamsen
2016-01-15 17:01     ` Norman Walsh
2016-01-16  0:13       ` Norman Walsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).