unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Gnus generates .nnmaildir directories causing mbsync to fail
@ 2024-04-19  2:00 Marc Coquand
  2024-04-19  8:33 ` Mekeor Melire
  2024-04-20 23:32 ` Eric Abrahamsen
  0 siblings, 2 replies; 3+ messages in thread
From: Marc Coquand @ 2024-04-19  2:00 UTC (permalink / raw)
  To: help-gnu-emacs


Heya!

I'm trying to setup Gnus with maildir. I've setup the following:

(setq gnus-secondary-select-methods
      '((nnmaildir "personal"
                   (nnmail-expiry-target "nnmaildir+personal:Trash")
                   (directory "~/mail-home"))))

It reads the directory without issue, but when I try to sync I get an
error that there is a folder .nnmaildir created, which I believe is done
by gnus.

Is there a way to setup gnus so it doesn't generate these metadata files
within the directories?


Thanks in advance

-- marc



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

* Re: Gnus generates .nnmaildir directories causing mbsync to fail
  2024-04-19  2:00 Gnus generates .nnmaildir directories causing mbsync to fail Marc Coquand
@ 2024-04-19  8:33 ` Mekeor Melire
  2024-04-20 23:32 ` Eric Abrahamsen
  1 sibling, 0 replies; 3+ messages in thread
From: Mekeor Melire @ 2024-04-19  8:33 UTC (permalink / raw)
  To: Marc Coquand; +Cc: help-gnu-emacs

2024-04-18 21:00 marc@mccd.space:

> I'm trying to setup Gnus with maildir.

> It reads the directory without issue, but when I try to sync I get an
> error that there is a folder .nnmaildir created, which I believe is done
> by gnus.
>
> Is there a way to setup gnus so it doesn't generate these metadata files
> within the directories?

I did it the other way around: I instructed mbsync to ignore the
.nnmaildir files by adding some negated pattern rules to its
configuration, specifically to the Channel configuration, like this:

	Patterns INBOX * !.nnmaildir !INBOX/.nnmaildir

I'm not sure if it's redundant. Good luck!



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

* Re: Gnus generates .nnmaildir directories causing mbsync to fail
  2024-04-19  2:00 Gnus generates .nnmaildir directories causing mbsync to fail Marc Coquand
  2024-04-19  8:33 ` Mekeor Melire
@ 2024-04-20 23:32 ` Eric Abrahamsen
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Abrahamsen @ 2024-04-20 23:32 UTC (permalink / raw)
  To: Marc Coquand; +Cc: help-gnu-emacs

Marc Coquand <marc@mccd.space> writes:

> Heya!
>
> I'm trying to setup Gnus with maildir. I've setup the following:
>
> (setq gnus-secondary-select-methods
>       '((nnmaildir "personal"
>                    (nnmail-expiry-target "nnmaildir+personal:Trash")
>                    (directory "~/mail-home"))))
>
> It reads the directory without issue, but when I try to sync I get an
> error that there is a folder .nnmaildir created, which I believe is done
> by gnus.
>
> Is there a way to setup gnus so it doesn't generate these metadata files
> within the directories?

No, it looks like the location of the metadata folder is hard-coded.



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

end of thread, other threads:[~2024-04-20 23:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-19  2:00 Gnus generates .nnmaildir directories causing mbsync to fail Marc Coquand
2024-04-19  8:33 ` Mekeor Melire
2024-04-20 23:32 ` Eric Abrahamsen

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 read-only IMAP folder(s) and NNTP newsgroup(s).