Gnus development mailing list
 help / color / mirror / Atom feed
* nnimp-index variable
@ 2012-09-28  0:14 Dylan O. Hanton
  2012-09-28 12:27 ` Dylan O. Hanton
  0 siblings, 1 reply; 3+ messages in thread
From: Dylan O. Hanton @ 2012-09-28  0:14 UTC (permalink / raw)
  To: ding

In emacs 24, doesn't nnimap-inbox allow multiple inbox?
(nnimap-inbox '("a.Inbox" "b.Inbox")) <-- what is wrong?

(nnimap-inbox "a.Inbox") <-- work correctly


in my configuration
--
(setq gnus-select-method
      '(nnimap "Mail"
               (nnimap-address "localhost")
               (nnimap-stream network)
               (nnimap-authenticator login)
               (nnimap-inbox '("a.Inbox" "b.Inbox"))
               (nnimap-unsplittable-articles nil)
               (nnimap-split-methods 'nnmail-split-fancy)))
--



sorry, my poor english
--
emacsean!




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

* Re: nnimp-index variable
  2012-09-28  0:14 nnimp-index variable Dylan O. Hanton
@ 2012-09-28 12:27 ` Dylan O. Hanton
  2012-09-29  0:19   ` Dylan O. Hanton
  0 siblings, 1 reply; 3+ messages in thread
From: Dylan O. Hanton @ 2012-09-28 12:27 UTC (permalink / raw)
  To: ding

doh@lavabit.com (Dylan O. Hanton) writes:

> In emacs 24, doesn't nnimap-inbox allow multiple inbox?
> (nnimap-inbox '("a.Inbox" "b.Inbox")) <-- what is wrong?
>
> (nnimap-inbox "a.Inbox") <-- work correctly
>
>
> in my configuration
> --
> (setq gnus-select-method
>       '(nnimap "Mail"
>                (nnimap-address "localhost")
>                (nnimap-stream network)
>                (nnimap-authenticator login)
>                (nnimap-inbox '("a.Inbox" "b.Inbox"))
>                (nnimap-unsplittable-articles nil)
>                (nnimap-split-methods 'nnmail-split-fancy)))
> --
>
>
>
> sorry, my poor english
> --
> emacsean!
>
>
>

mac OS & emacs 24(In Terminal.APP) & gnus 5.13(built-in)
nnimap.el

(deffoo nnimap-request-scan (&optional group server)
  (when group
    (setq group (nnimap-decode-gnus-group group)))
  (when (and (nnimap-possibly-change-group nil server)
	     nnimap-inbox
	     nnimap-split-methods)
    (nnheader-message 7 "nnimap %s splitting mail..." server)
    ;; (nnimap-split-incoming-mail)
    (if (listp nnimap-inbox)
        (dolist (nnimap-inbox nnimap-inbox)
          (nnimap-split-incoming-mail))
      (nnimap-split-incoming-mail))
    (nnheader-message 7 "nnimap %s splitting mail...done" server)))

I did more googling. I found this. so changed, but gnus doesn't work
correctly. Do I need to change more?


And how to install gnus git version?(Mac OS)
my emacs lisp location is
  /Applications/Emacs.app/Contents/Resources/lisp

It's different between my dir and Makefile's dir variable.

--
emacsean!




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

* Re: nnimp-index variable
  2012-09-28 12:27 ` Dylan O. Hanton
@ 2012-09-29  0:19   ` Dylan O. Hanton
  0 siblings, 0 replies; 3+ messages in thread
From: Dylan O. Hanton @ 2012-09-29  0:19 UTC (permalink / raw)
  To: ding


If you use gnus 5.13(builtin) in emacs 24, change nnimap.el 

>(deffoo nnimap-request-scan (&optional group server) (when group (setq
>group (nnimap-decode-gnus-group group))) (when (and
>(nnimap-possibly-change-group nil server) nnimap-inbox
>nnimap-split-methods) (nnheader-message 7 "nnimap %s splitting mail..."
>server)
    ;; (nnimap-split-incoming-mail)         ;; <--- delete or comment
    (if (listp nnimap-inbox)                ;;  -|
        (dolist (nnimap-inbox nnimap-inbox) ;;   |  add code
          (nnimap-split-incoming-mail))     ;;   |
      (nnimap-split-incoming-mail))         ;;  -|
>    (nnheader-message 7 "nnimap %s splitting mail...done" server)))

nnimap-index usage:

for single inbox
(nnimap-index "abc")

for multi inbox
(nnimap-index ("abcinbox" "definbox" "ghi\.inbox")) <-- not quote '()

I don't know lisp, well, so don't know why.

example:

(setq gnus-select-method
      '(nnimap "Mail"
               (nnimap-address "localhost")
               (nnimap-stream network)
               (nnimap-authenticator login)
               (nnimap-inbox ("a\.inbox" "b\.inbox" "c\.inbox"))
               (nnimap-unsplittable-articles nil)
               (nnimap-split-methods 'nnmail-split-fancy)))

nicely work :)

=============================================================================
for gnus git version,

I don't know how to install gnus git version in mac.
Makefile is not suitable for Mac and I don't know how to fix it, :)
So all folder was copied to ~/.emacs.d/v...., not ./configure && make

;; ~/.emacs,d/init.el or your init file
(add-to-list 'load-path "~/.emacs.d/vendor/gnus/lisp")
(add-to-list 'load-path "~/.emacs.d/vendor/gnus/contrib")
(require 'gnus-load)

Because nnimap.el was patched already,
just use in this case(gnus git version - ma gnus v0.6) -- tested :)

I replied for newbie like me.
enjoy gnuuus, and sorry poor english 

-- 
emacsean!




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

end of thread, other threads:[~2012-09-29  0:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-28  0:14 nnimp-index variable Dylan O. Hanton
2012-09-28 12:27 ` Dylan O. Hanton
2012-09-29  0:19   ` Dylan O. Hanton

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