Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* nnml or nnmaildir for mail archive + notmuch
@ 2016-09-21  7:12 Saša Janiška
  2016-09-21  8:12 ` Adam Sjøgren
  0 siblings, 1 reply; 7+ messages in thread
From: Saša Janiška @ 2016-09-21  7:12 UTC (permalink / raw)
  To: info-gnus-english

Hello,

I’ve some old mail archive which I want to migrate to Gnus.

Messages are simply sorted by year folders and I’d like to use notmuch
for querying.

In the past I had mail archive stored in Maildir and configured as:

(nnmaildir "archive"
           (directory "~/.nnmaildir")
           (directory-files nnheader-directory-files-safe)
           (get-new-mail nil)
           (nnir-search-engine notmuch))


The maximum number of messages in year-folders is ~6K, so considering my
use case I wonder which mail back end would you recommend for my mail
archive along with notmuch search-capability: nnmaildir or nnml?


Sincerely,
Gour

-- 
One who restrains the senses of action but whose mind dwells on
sense objects certainly deludes himself and is called a pretender.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: nnml or nnmaildir for mail archive + notmuch
  2016-09-21  7:12 nnml or nnmaildir for mail archive + notmuch Saša Janiška
@ 2016-09-21  8:12 ` Adam Sjøgren
  2016-09-22 10:22   ` Saša Janiška
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Sjøgren @ 2016-09-21  8:12 UTC (permalink / raw)
  To: info-gnus-english

Saša writes:

> The maximum number of messages in year-folders is ~6K, so considering my
> use case I wonder which mail back end would you recommend for my mail
> archive along with notmuch search-capability: nnmaildir or nnml?

I use nnml for everything, works fine for me.


  Best regards,

    Adam

-- 
 "Världens kapare meddelar att millimeterrättvisa inte        Adam Sjøgren
  kommer införas i år heller"                            asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: nnml or nnmaildir for mail archive + notmuch
  2016-09-21  8:12 ` Adam Sjøgren
@ 2016-09-22 10:22   ` Saša Janiška
  2016-09-22 10:56     ` Adam Sjøgren
  0 siblings, 1 reply; 7+ messages in thread
From: Saša Janiška @ 2016-09-22 10:22 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

> I use nnml for everything, works fine for me.

I put the following in gnus-secondary-select-methods:

(nnml "archive"
                (nnml-directory "~/emacs/gnus/archive")
                (nnml-active-file "~/emacs/gnus/archive/active")
                (nnml-get-new-mail nil)
                (nnir-search-engine notmuch)
             ) 
          )

but wonder how to initialize it, iow. I created ~/emacs/gnus/archive
and would like to put my messages sorted by year like: archive/2015,
archive/2016 etc. but not sure how to init the setup so I can start
mv-ing msgs there?

In the past I was using Maildir, but after pre-populated ~/Maildir with
desired directory tree, Gnus was able to read it at once.

What do I miss here?


Sincerely,
Gour

-- 
Just try to learn the truth by approaching a spiritual master.
Inquire from him submissively and render service unto him.
The self-realized souls can impart knowledge unto you because
they have seen the truth.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: nnml or nnmaildir for mail archive + notmuch
  2016-09-22 10:22   ` Saša Janiška
@ 2016-09-22 10:56     ` Adam Sjøgren
  2016-09-22 12:29       ` Saša Janiška
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Sjøgren @ 2016-09-22 10:56 UTC (permalink / raw)
  To: info-gnus-english

Saša writes:

> asjo@koldfront.dk (Adam Sjøgren) writes:
>
>> I use nnml for everything, works fine for me.
>
> I put the following in gnus-secondary-select-methods:
>
> (nnml "archive"
>                 (nnml-directory "~/emacs/gnus/archive")
>                 (nnml-active-file "~/emacs/gnus/archive/active")
>                 (nnml-get-new-mail nil)
>                 (nnir-search-engine notmuch)
>              ) 
>           )
>
> but wonder how to initialize it, iow. I created ~/emacs/gnus/archive
> and would like to put my messages sorted by year like: archive/2015,
> archive/2016 etc. but not sure how to init the setup so I can start
> mv-ing msgs there?

Start moving the articles in Gnus?

'B m' on the article and then enter the name of the group, something
like, say, 'nnml+archive:2015' - if I understand what you want
correctly.

(You shouldn't move files around behind Gnus' back, when using nnml.)

Maybe I don't understand your question?


For reference, my configuration looks like this:

  (setq gnus-message-archive-method '(nnml "archive"
                                           (nnml-directory "~/Mail/archive")
                                           (nnml-active-file "~/Mail/archive/active")
                                           (nnml-get-new-mail nil)
                                           (nnir-search-engine notmuch)
                                           (nnml-inhibit-expiry t)))

  (setq gnus-message-archive-group
        '((if (message-news-p)
              (concat "news-" (format-time-string "%Y"))
            (concat "mail-" (format-time-string "%Y")))))

to get groups named 'nnml+archive:mail-2016' etc.


  Best regards,

    Adam

-- 
 "Tom has put all my music into this rectangle."              Adam Sjøgren
                                                         asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: nnml or nnmaildir for mail archive + notmuch
  2016-09-22 10:56     ` Adam Sjøgren
@ 2016-09-22 12:29       ` Saša Janiška
  2016-09-22 13:29         ` Adam Sjøgren
  0 siblings, 1 reply; 7+ messages in thread
From: Saša Janiška @ 2016-09-22 12:29 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

> Start moving the articles in Gnus?

Yes, moving or copying them to the archive.

> 'B m' on the article and then enter the name of the group, something
> like, say, 'nnml+archive:2015' - if I understand what you want
> correctly.

Yes, the problem is that when I want to copy/move some article to the
archive and start typing in minibuffe, e.g. ’nnm’ then Gnus responds
with ’no match’.

Otoh, if I press ’^’, I see:

 {nnml:local} (opened)

so wonder what do I miss?

> (You shouldn't move files around behind Gnus' back, when using nnml.)

I read that nnml is not like nnmaildir in this regard. Thanks. ;)

> For reference, my configuration looks like this:

[…]

Thank you.

Sincerely,
Gour

-- 
From anger, complete delusion arises, and from delusion
bewilderment of memory. When memory is bewildered,
intelligence is lost, and when intelligence is lost
one falls down again into the material pool.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: nnml or nnmaildir for mail archive + notmuch
  2016-09-22 12:29       ` Saša Janiška
@ 2016-09-22 13:29         ` Adam Sjøgren
  2016-09-22 14:57           ` Saša Janiška
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Sjøgren @ 2016-09-22 13:29 UTC (permalink / raw)
  To: info-gnus-english

Saša writes:

> asjo@koldfront.dk (Adam Sjøgren) writes:

>> 'B m' on the article and then enter the name of the group, something
>> like, say, 'nnml+archive:2015' - if I understand what you want
>> correctly.

> Yes, the problem is that when I want to copy/move some article to the
> archive and start typing in minibuffe, e.g. ’nnm’ then Gnus responds
> with ’no match’.

And if you keep typing and press RET?

Isn't "No match" just a message from the auto-complete functionality,
which can't complete groups that do not exists (yet)?


  Best regards,

    Adam

-- 
 "Dom 999 saker                                               Adam Sjøgren
  jag aldrig skulle göra                                 asjo@koldfront.dk
  Dom vägs upp av 999 värre
  saker jag redan har gjort"


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: nnml or nnmaildir for mail archive + notmuch
  2016-09-22 13:29         ` Adam Sjøgren
@ 2016-09-22 14:57           ` Saša Janiška
  0 siblings, 0 replies; 7+ messages in thread
From: Saša Janiška @ 2016-09-22 14:57 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

> Isn't "No match" just a message from the auto-complete functionality,
> which can't complete groups that do not exists (yet)?

I was misled with my previous experience when using nnmaildir backend
where the folder hierarchy was pre-populated. :-(

It seems there is lot of things to learn in regard to Gnus, but, at
least, one is certain there is no need to look elsewhere ever. ;)

Thank you!


Sincerely,
Gour

-- 
The working senses are superior to dull matter; mind is higher
than the senses; intelligence is still higher than the mind;
and he [the soul] is even higher than the intelligence.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

end of thread, other threads:[~2016-09-22 14:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-21  7:12 nnml or nnmaildir for mail archive + notmuch Saša Janiška
2016-09-21  8:12 ` Adam Sjøgren
2016-09-22 10:22   ` Saša Janiška
2016-09-22 10:56     ` Adam Sjøgren
2016-09-22 12:29       ` Saša Janiška
2016-09-22 13:29         ` Adam Sjøgren
2016-09-22 14:57           ` Saša Janiška

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