Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: Gnus and IMAP
       [not found] ` <iluu1igw0zx.fsf@latte.josefsson.org>
@ 2002-11-17 18:45   ` Ichimusai
  2002-11-18  8:57     ` Simon Josefsson
  0 siblings, 1 reply; 12+ messages in thread
From: Ichimusai @ 2002-11-17 18:45 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> Ichimusai <ichi@ichimusai.org> writes:
> 
> > I have Gnus set up to use POP for fetching my mails, but I am
> > considering switching to IMAP4 as it would be easier with at least one
> > of the servers.
> >
> > Can I just take this:
> >
> > (setq mail-sources 
> >       '((file :path "/var/spool/mail/ichi")
> > 	(pop :server "pop.algonet.se" :user "XXXXXX" :password "XXXXXX")
> > 	(pop :server "pop3.activeisp.com" :user "XXXXXX" :password "XXXXXX")))
> >
> > And change it to
> >
> > (setq mail-sources 
> >       '((file :path "/var/spool/mail/ichi")
> > 	(imap :server "pop.algonet.se" :user "XXXXXX" :password "XXXXXX")
> > 	(imap :server "pop3.activeisp.com" :user "XXXXXX" :password "XXXXXX")))
> 
> I think so.
> 
> > error in process filter: imap-parse-response: Internal error, tag 5 status BAD code nil text FETCH invalid message sequence set
> > error in process filter: Internal error, tag 5 status BAD code nil text FETCH invalid message sequence set
> 
> Except this it looks fine.  Could you frob `imap-log' and post the
> contents of *imap-log* after you get this error?  It could be a bug,
> I'm not sure anyone really uses the IMAP mail source.

Certainly, here it comes:

(oh, and pop.algonet.se and imap.algonet.se points to the same
machines so don't be confused if I have tried both below)

* OK BMR ErlangTM/OTP IMAP4rev1 v2.1 [0s9944964sheridan]
1 CAPABILITY
* CAPABILITY IMAP4 IMAP4REV1 NAMESPACE SCAN SORT THREAD=ORDEREDSUBJECT
1 OK CAPABILITY completed
2 LOGIN "XXXXXXXX" "XXXXXXXXX"
2 OK LOGIN completed
3 SELECT "INBOX"
* 2 EXISTS
* OK [UIDVALIDITY 969524230] UID validity status
* OK [UIDNEXT 1037557972] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 1] 1 is first unseen message in INBOX
* 0 RECENT
3 OK [READ-WRITE] SELECT completed
4 UID SEARCH UNSEEN UNDELETED
* SEARCH 1037557208 1037557780
4 OK UID SEARCH completed
5 UID FETCH -36184616 RFC822.PEEK
5 OK UID FETCH completed
6 UID FETCH -36184044 RFC822.PEEK
6 OK UID FETCH completed
7 CLOSE
7 OK CLOSE completed
8 LOGOUT
* BYE angel IMAP4rev1 server terminating connection
8 OK LOGOUT completed

As you can see there are two mails in the box, one is unseen from this
client, but from the *Groups* buffer there is no access to the mail, I
doubt it is ever fetched. I don't see any errors though.

So I tried something else.

> From the *Groups* buffer I did ^ and then I added it as another
server of the nnimap type. After giving it my account name and
password it connected nicely and I got the following groups:

K      0: INBOX
K      0: Skickade brev
K      0: Trash

I hit "u" on all of them and the K's disappeared, and then I "q":ed
back to the *Groups* buffer where I did "F" and yay, my INBOX etc on
the IMAP server showed up.

However, the joy was short, because I was unable to access any folders
even after having subscribed to them :( Hitting return on one of them
produces this error message:

Retrieving newsgroup: nnimap+imap.algonet.se:INBOX...
nnimap: Updating info for nnimap+imap.algonet.se:INBOX...done
Group INBOX selected
gnus-select-newsgroup: Couldn't request group nnimap+imap.algonet.se:INBOX: Group INBOX selected

That is from the *Messages* buffer.

Below you will find the contents of the IMAP-Log buffer after such a
session (it's a bit long but I am not culling it out, maybe you can
read out more from this, I am not so experienced with IMAP):

25 SELECT "Trash"
* 7 EXISTS
* OK [UIDVALIDITY 1037289655] UID validity status
* OK [UIDNEXT 1037558247] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 5] 5 is first unseen message in Trash
* 0 RECENT
25 OK [READ-WRITE] SELECT completed
26 EXAMINE "Trash"
* 7 EXISTS
* OK [UIDVALIDITY 1037289655] UID validity status
* OK [UIDNEXT 1037558247] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 5] 5 is first unseen message in Trash
* 0 RECENT
26 OK [READ-ONLY] EXAMINE completed
27 CLOSE
27 OK CLOSE completed
28 EXAMINE "Trash"
* 7 EXISTS
* OK [UIDVALIDITY 1037289655] UID validity status
* OK [UIDNEXT 1037558247] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 5] 5 is first unseen message in Trash
* 0 RECENT
28 OK [READ-ONLY] EXAMINE completed
29 FETCH 1,* UID
* 1 FETCH (UID 1037289654)
* 7 FETCH (UID 1037289660)
29 OK FETCH completed
30 SELECT "Skickade brev"
* 40 EXISTS
* OK [UIDVALIDITY 972912217] UID validity status
* OK [UIDNEXT 1037558248] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 1] 1 is first unseen message in Skickade brev
* 0 RECENT
30 OK [READ-WRITE] SELECT completed
31 EXAMINE "Skickade brev"
* 40 EXISTS
* OK [UIDVALIDITY 972912217] UID validity status
* OK [UIDNEXT 1037558248] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 1] 1 is first unseen message in Skickade brev
* 0 RECENT
31 OK [READ-ONLY] EXAMINE completed
32 CLOSE
32 OK CLOSE completed
33 EXAMINE "Skickade brev"
* 40 EXISTS
* OK [UIDVALIDITY 972912217] UID validity status
* OK [UIDNEXT 1037558248] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 1] 1 is first unseen message in Skickade brev
* 0 RECENT
33 OK [READ-ONLY] EXAMINE completed
34 FETCH 1,* UID
* 1 FETCH (UID 972912211)
* 40 FETCH (UID 1037550771)
34 OK FETCH completed
35 SELECT "INBOX"
* 2 EXISTS
* OK [UIDVALIDITY 969524230] UID validity status
* OK [UIDNEXT 1037558248] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 1] 1 is first unseen message in INBOX
* 0 RECENT
35 OK [READ-WRITE] SELECT completed
36 EXAMINE "INBOX"
* 2 EXISTS
* OK [UIDVALIDITY 969524230] UID validity status
* OK [UIDNEXT 1037558248] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 1] 1 is first unseen message in INBOX
* 0 RECENT
36 OK [READ-ONLY] EXAMINE completed
37 CLOSE
37 OK CLOSE completed
38 EXAMINE "INBOX"
* 2 EXISTS
* OK [UIDVALIDITY 969524230] UID validity status
* OK [UIDNEXT 1037558248] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS ()] Permanent flags
* OK [UNSEEN 1] 1 is first unseen message in INBOX
* 0 RECENT
38 OK [READ-ONLY] EXAMINE completed
39 FETCH 1,* UID
* 1 FETCH (UID 1037557208)
* 2 FETCH (UID 1037557780)
39 OK FETCH completed

Any help much appreciated. There is probably just something silly
going on here which I have missed.

-- 
AA #769   ICQ: 1645566   Yahoo Messenger: ichimusai 
Home: http://www.ichimusai.org/   IRC Ichimusai#AmigaSWE@IRCnet
I like my tea like I like my women... Green and tastes a little bit
like seaweed.
    -- GranoblasticMan, alt.fan.douglas-adams


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

* Re: Gnus and IMAP
  2002-11-17 18:45   ` Gnus and IMAP Ichimusai
@ 2002-11-18  8:57     ` Simon Josefsson
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Josefsson @ 2002-11-18  8:57 UTC (permalink / raw)


Ichimusai <ichi@ichimusai.org> writes:

> 4 UID SEARCH UNSEEN UNDELETED
> * SEARCH 1037557208 1037557780
> 4 OK UID SEARCH completed
> 5 UID FETCH -36184616 RFC822.PEEK
> 5 OK UID FETCH completed
> 6 UID FETCH -36184044 RFC822.PEEK
> 6 OK UID FETCH completed

Ouch, I'm afraid you are running into the Emacs integer limit.  There
is nothing Gnus nor nnimap can do, the only options is to use XEmacs
(which has a 31 bit limit), use Emacs on a 64bit machine, or hack
Emacs to use emulated 64bit integers ("long long").


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

* Re: GNUS and imap
  2009-03-17 13:11           ` Richard Riley
  2009-03-17 15:17             ` Kamil Jońca
@ 2009-03-21 13:31             ` Kamil Jońca
  1 sibling, 0 replies; 12+ messages in thread
From: Kamil Jońca @ 2009-03-21 13:31 UTC (permalink / raw)
  To: info-gnus-english

Richard Riley <rileyrgdev@gmail.com> writes:

> kjonca@poczta.onet.pl (Kamil Jońca) writes:
>
>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>
>>> kjonca@poczta.onet.pl (Kamil Jońca) wrote:
>>>
>>>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>>>> [...]
>>>>> BTW Have you considered using IMAP?
>>>>
>>>> Yes, I'm trying. But I cant make gnus to see my folders other than
>>>> INBOX)
>>>
>>> <file src="~/bin/imap">
>>
>> [...snip...]
>> I think that is something wrong rather with gnus, because folders are
>> visible with thunderbird and Mutt, and only gnus can't see
>> them. (Browse server can't see them also) :(
>>
>> KJ
>
> What IMAP server? Works fine here with dovecot.
Sorry, it was stupid typo with setting
gnus-secondary-select-methods in my gnus.el. Now wors fine, almost.
The only thing, I can't set is archive based on from header, 
gnus-message-archive-group seems to be evaluated *before* "From" header
is set from group posting-style.

KJ

-- 
można nie mieć nawet żadnego sensownego argumentu, a dzięki odpowiedniej
gestykulacji stworzyć poczucie wiarygodności.
Puls Biznesu

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

* Re: GNUS and imap
  2009-03-17 13:48             ` Richard Riley
  2009-03-17 15:24               ` Andreas Most
@ 2009-03-18 15:18               ` David Abrahams
  1 sibling, 0 replies; 12+ messages in thread
From: David Abrahams @ 2009-03-18 15:18 UTC (permalink / raw)
  To: info-gnus-english


on Tue Mar 17 2009, Richard Riley <rileyrgdev-AT-gmail.com> wrote:

> Is this server specific? I have only
>
>        gnus-select-method '(nnimap "mymail"
> 				   (nnimap-stream ssl)
> 				   (nnimap-address "imap.myserver.net")
> 				   (nnimap-authinfo-file "~/.authinfo")
> 				   (nnir-search-engine imap))

I've been doing something like that for years, and I use dovecot, and it
works.  I wonder what's tripping up the OP.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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

* Re: GNUS and imap
  2009-03-17 13:48             ` Richard Riley
@ 2009-03-17 15:24               ` Andreas Most
  2009-03-18 15:18               ` David Abrahams
  1 sibling, 0 replies; 12+ messages in thread
From: Andreas Most @ 2009-03-17 15:24 UTC (permalink / raw)
  To: info-gnus-english

Richard Riley <rileyrgdev@gmail.com> writes:

> Andreas Most <Andreas.Most@nospam.invalid> writes:
>
>> kjonca@poczta.onet.pl (Kamil Jońca) writes:
>>
>>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>>
>>>> kjonca@poczta.onet.pl (Kamil Jońca) wrote:
>>>>
>>>>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>>>>> [...]
>>>>>> BTW Have you considered using IMAP?
>>>>>
>>>>> Yes, I'm trying. But I cant make gnus to see my folders other than
>>>>> INBOX)
>>>>
>>>> <file src="~/bin/imap">
>>>
>>> [...snip...]
>>> I think that is something wrong rather with gnus, because folders are
>>> visible with thunderbird and Mutt, and only gnus can't see
>>> them. (Browse server can't see them also) :(
>>
>> I found the following in some forum thread (but can't remember where):
>> Add a function to your .gnus.el
>>
>> (defun gnus-browse-imaps-server (server)
>>         "Browse a mail server in Gnus via IMAP-SSL."
>>         (interactive "sServer name: ")
>>         (gnus-group-browse-foreign-server
>>           (list 'nnimap server
>>              (list 'nnimap-address server)
>>              '(nnimap-stream ssl)
>>              '(nnimap-list-pattern ("INBOX" "mail/*" "Mail/*" "INBOX.*"))
>>              '(nnimap-expunge-on-close ask))))
>>
>> I have actually changed the list pattern to ("*" "*/*") which works for
>> Google Mail. After calling M-x gnus-browse-imaps-server you will be
>> asked for the server. You will then get a list of folders to which you
>> can subscribe.
>>
>> Andreas.
>>
>> --
>> AndreasDotMostAtGmailDotCom
>
> Is this server specific? I have only
>
>        gnus-select-method '(nnimap "mymail"
> 				   (nnimap-stream ssl)
> 				   (nnimap-address "imap.myserver.net")
> 				   (nnimap-authinfo-file "~/.authinfo")
> 				   (nnir-search-engine imap))
>
> And it works fine (emacs 23).

I have started with Gnus only recently, so I am not yet familiar with
all the features. As of my understanding it is only possible to browse
the server specified in the gnus-select-method but not in the
gnus-secondary-select-methods. Moreover, with the above method it is
possible to add folders from different imap services for the poor people
(like me) who have several email accounts.

Andreas.

--
AndreasDotMostAtGmailDotCom

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

* Re: GNUS and imap
  2009-03-17 13:11           ` Richard Riley
@ 2009-03-17 15:17             ` Kamil Jońca
  2009-03-21 13:31             ` Kamil Jońca
  1 sibling, 0 replies; 12+ messages in thread
From: Kamil Jońca @ 2009-03-17 15:17 UTC (permalink / raw)
  To: info-gnus-english

Richard Riley <rileyrgdev@gmail.com> writes:

> kjonca@poczta.onet.pl (Kamil Jońca) writes:
>
>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>
>>> kjonca@poczta.onet.pl (Kamil Jońca) wrote:
>>>
>>>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>>>> [...]
>>>>> BTW Have you considered using IMAP?
>>>>
>>>> Yes, I'm trying. But I cant make gnus to see my folders other than
>>>> INBOX)
>>>
>>> <file src="~/bin/imap">
>>
>> [...snip...]
>> I think that is something wrong rather with gnus, because folders are
>> visible with thunderbird and Mutt, and only gnus can't see
>> them. (Browse server can't see them also) :(
>>
>> KJ
>
> What IMAP server? Works fine here with dovecot.

Dovecot. 
1. I can add groups maunally with  G m in *Group buffer*
2. I can't list folders others than INBOX  (witn e.g. browse server) and
for example Thunderbird can.
3. my dovecot configuration (mostly default except mail_location)
====================
protocols = imap imaps
listen = localhost
log_path =  /var/log/dovecot
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_processes_count = 1
mail_location = maildir:~/Mail:LAYOUT=FS:INBOX=~/Mail:INDEX=~/.mail/dovecot
mail_privileged_group = mail
mail_debug = yes
mail_log_prefix = "%Us(%u): "
protocol imap {
}
  
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
  sieve=~/.dovecot.sieve
  sieve_storage=~/sieve
}
auth default {
  mechanisms = plain
  passdb pam {
  }
  userdb passwd {
  }
  user = root
}
dict {
}
plugin {
}
=====================

-- 
KJ
The world is coming to an end.  Please log off.

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

* Re: GNUS and imap
  2009-03-17 12:44         ` Kamil Jońca
  2009-03-17 13:11           ` Andreas Most
  2009-03-17 13:11           ` Richard Riley
@ 2009-03-17 15:01           ` Andrzej Adam Filip
  2 siblings, 0 replies; 12+ messages in thread
From: Andrzej Adam Filip @ 2009-03-17 15:01 UTC (permalink / raw)
  To: info-gnus-english

kjonca@poczta.onet.pl (Kamil Jońca) wrote:

> Andrzej Adam Filip <anfi@onet.eu> writes:
>
>> kjonca@poczta.onet.pl (Kamil Jońca) wrote:
>>
>>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>>> [...]
>>>> BTW Have you considered using IMAP?
>>>
>>> Yes, I'm trying. But I cant make gnus to see my folders other than
>>> INBOX)
>>
>> <file src="~/bin/imap">
>
> [...snip...]
> I think that is something wrong rather with gnus, because folders are
> visible with thunderbird and Mutt, and only gnus can't see
> them. (Browse server can't see them also) :(

Do you mean "Server Buffer" selectable from (*Groups*) buffer by
pressing ^ ? [ Or selecting menu "Gnus/Enter Server Buffer" ]


-- 
[pl>en Andrew] Andrzej Adam Filip : anfi@onet.eu : anfi@xl.wp.pl
A star captain's most solemn oath is that he will give his life, even
his entire crew, rather than violate the Prime Directive.
  -- Kirk, "The Omega Glory", stardate unknown

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

* Re: GNUS and imap
  2009-03-17 13:11           ` Andreas Most
@ 2009-03-17 13:48             ` Richard Riley
  2009-03-17 15:24               ` Andreas Most
  2009-03-18 15:18               ` David Abrahams
  0 siblings, 2 replies; 12+ messages in thread
From: Richard Riley @ 2009-03-17 13:48 UTC (permalink / raw)
  To: info-gnus-english

Andreas Most <Andreas.Most@nospam.invalid> writes:

> kjonca@poczta.onet.pl (Kamil Jońca) writes:
>
>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>
>>> kjonca@poczta.onet.pl (Kamil Jońca) wrote:
>>>
>>>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>>>> [...]
>>>>> BTW Have you considered using IMAP?
>>>>
>>>> Yes, I'm trying. But I cant make gnus to see my folders other than
>>>> INBOX)
>>>
>>> <file src="~/bin/imap">
>>
>> [...snip...]
>> I think that is something wrong rather with gnus, because folders are
>> visible with thunderbird and Mutt, and only gnus can't see
>> them. (Browse server can't see them also) :(
>
> I found the following in some forum thread (but can't remember where):
> Add a function to your .gnus.el
>
> (defun gnus-browse-imaps-server (server)
>         "Browse a mail server in Gnus via IMAP-SSL."
>         (interactive "sServer name: ")
>         (gnus-group-browse-foreign-server
>           (list 'nnimap server
>              (list 'nnimap-address server)
>              '(nnimap-stream ssl)
>              '(nnimap-list-pattern ("INBOX" "mail/*" "Mail/*" "INBOX.*"))
>              '(nnimap-expunge-on-close ask))))
>
> I have actually changed the list pattern to ("*" "*/*") which works for
> Google Mail. After calling M-x gnus-browse-imaps-server you will be
> asked for the server. You will then get a list of folders to which you
> can subscribe.
>
> Andreas.
>
> --
> AndreasDotMostAtGmailDotCom

Is this server specific? I have only

       gnus-select-method '(nnimap "mymail"
				   (nnimap-stream ssl)
				   (nnimap-address "imap.myserver.net")
				   (nnimap-authinfo-file "~/.authinfo")
				   (nnir-search-engine imap))

And it works fine (emacs 23).

regards

r.

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

* Re: GNUS and imap
  2009-03-17 12:44         ` Kamil Jońca
  2009-03-17 13:11           ` Andreas Most
@ 2009-03-17 13:11           ` Richard Riley
  2009-03-17 15:17             ` Kamil Jońca
  2009-03-21 13:31             ` Kamil Jońca
  2009-03-17 15:01           ` Andrzej Adam Filip
  2 siblings, 2 replies; 12+ messages in thread
From: Richard Riley @ 2009-03-17 13:11 UTC (permalink / raw)
  To: info-gnus-english

kjonca@poczta.onet.pl (Kamil Jońca) writes:

> Andrzej Adam Filip <anfi@onet.eu> writes:
>
>> kjonca@poczta.onet.pl (Kamil Jońca) wrote:
>>
>>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>>> [...]
>>>> BTW Have you considered using IMAP?
>>>
>>> Yes, I'm trying. But I cant make gnus to see my folders other than
>>> INBOX)
>>
>> <file src="~/bin/imap">
>
> [...snip...]
> I think that is something wrong rather with gnus, because folders are
> visible with thunderbird and Mutt, and only gnus can't see
> them. (Browse server can't see them also) :(
>
> KJ

What IMAP server? Works fine here with dovecot.

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

* Re: GNUS and imap
  2009-03-17 12:44         ` Kamil Jońca
@ 2009-03-17 13:11           ` Andreas Most
  2009-03-17 13:48             ` Richard Riley
  2009-03-17 13:11           ` Richard Riley
  2009-03-17 15:01           ` Andrzej Adam Filip
  2 siblings, 1 reply; 12+ messages in thread
From: Andreas Most @ 2009-03-17 13:11 UTC (permalink / raw)
  To: info-gnus-english

kjonca@poczta.onet.pl (Kamil Jońca) writes:

> Andrzej Adam Filip <anfi@onet.eu> writes:
>
>> kjonca@poczta.onet.pl (Kamil Jońca) wrote:
>>
>>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>>> [...]
>>>> BTW Have you considered using IMAP?
>>>
>>> Yes, I'm trying. But I cant make gnus to see my folders other than
>>> INBOX)
>>
>> <file src="~/bin/imap">
>
> [...snip...]
> I think that is something wrong rather with gnus, because folders are
> visible with thunderbird and Mutt, and only gnus can't see
> them. (Browse server can't see them also) :(

I found the following in some forum thread (but can't remember where):
Add a function to your .gnus.el

(defun gnus-browse-imaps-server (server)
        "Browse a mail server in Gnus via IMAP-SSL."
        (interactive "sServer name: ")
        (gnus-group-browse-foreign-server
          (list 'nnimap server
             (list 'nnimap-address server)
             '(nnimap-stream ssl)
             '(nnimap-list-pattern ("INBOX" "mail/*" "Mail/*" "INBOX.*"))
             '(nnimap-expunge-on-close ask))))

I have actually changed the list pattern to ("*" "*/*") which works for
Google Mail. After calling M-x gnus-browse-imaps-server you will be
asked for the server. You will then get a list of folders to which you
can subscribe.

Andreas.

--
AndreasDotMostAtGmailDotCom

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

* Re: GNUS and imap
  2009-03-17 12:29       ` GNUS and imap Andrzej Adam Filip
@ 2009-03-17 12:44         ` Kamil Jońca
  2009-03-17 13:11           ` Andreas Most
                             ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Kamil Jońca @ 2009-03-17 12:44 UTC (permalink / raw)
  To: info-gnus-english

Andrzej Adam Filip <anfi@onet.eu> writes:

> kjonca@poczta.onet.pl (Kamil Jońca) wrote:
>
>> Andrzej Adam Filip <anfi@onet.eu> writes:
>>> [...]
>>> BTW Have you considered using IMAP?
>>
>> Yes, I'm trying. But I cant make gnus to see my folders other than
>> INBOX)
>
> <file src="~/bin/imap">

[...snip...]
I think that is something wrong rather with gnus, because folders are
visible with thunderbird and Mutt, and only gnus can't see
them. (Browse server can't see them also) :(

KJ


-- 
KJ
Zuzanka najwyraźniej pełni obowiązki Albina Siwaka w tej ekipie...
(C) Slawek Kotynski w dyskusj nt. pl.whatewer.SETI@home...

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

* Re: GNUS and imap
  2009-03-17 12:09     ` GNUS and imap [was: Re: Archiving posts] Kamil Jońca
@ 2009-03-17 12:29       ` Andrzej Adam Filip
  2009-03-17 12:44         ` Kamil Jońca
  0 siblings, 1 reply; 12+ messages in thread
From: Andrzej Adam Filip @ 2009-03-17 12:29 UTC (permalink / raw)
  To: info-gnus-english

kjonca@poczta.onet.pl (Kamil Jońca) wrote:

> Andrzej Adam Filip <anfi@onet.eu> writes:
>> [...]
>> BTW Have you considered using IMAP?
>
> Yes, I'm trying. But I cant make gnus to see my folders other than
> INBOX)

<file src="~/bin/imap">
#!/bin/bash
export USER=kamil
export MAIL=maildir:~/Maildir
exec /usr/lib/dovecot/imap
</file>

<file src="~/.emacs">
'(gnus-secondary-select-methods 
  (quote (
   (nnimap "" 
    (nnimap-stream shell) 
    (imap-shell-program "/home/kamil/bin/imap")))))
</file>

To create imap folder seen by gnus as "nnimap:Sent" create maildir
folder ~/Maildir/.Sent ["/home/kamil/Maildir/.Sent/" in procmail recipes]

P.S.
I use more slightly complicated solution with my "personal" 
(per my OS account only) dovecot configuration files.

-- 
[pl>en Andrew] Andrzej Adam Filip : anfi@onet.eu : anfi@xl.wp.pl
[Sir Stafford Cripps] has all the virtues I dislike and none of the
vices I admire.
  -- Winston Churchill

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

end of thread, other threads:[~2009-03-21 13:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m365uxl7ya.fsf@h130n1fls31o965.telia.com>
     [not found] ` <iluu1igw0zx.fsf@latte.josefsson.org>
2002-11-17 18:45   ` Gnus and IMAP Ichimusai
2002-11-18  8:57     ` Simon Josefsson
2009-03-07 13:06 Archiving posts to mbox file Kamil Jońca
2009-03-07 15:36 ` Kamil Jońca
2009-03-07 17:07   ` Archiving posts Andrzej Adam Filip
2009-03-17 12:09     ` GNUS and imap [was: Re: Archiving posts] Kamil Jońca
2009-03-17 12:29       ` GNUS and imap Andrzej Adam Filip
2009-03-17 12:44         ` Kamil Jońca
2009-03-17 13:11           ` Andreas Most
2009-03-17 13:48             ` Richard Riley
2009-03-17 15:24               ` Andreas Most
2009-03-18 15:18               ` David Abrahams
2009-03-17 13:11           ` Richard Riley
2009-03-17 15:17             ` Kamil Jońca
2009-03-21 13:31             ` Kamil Jońca
2009-03-17 15:01           ` Andrzej Adam Filip

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