Gnus development mailing list
 help / color / mirror / Atom feed
* imap APPEND problem
@ 2003-03-13 15:30 Alexander Kotelnikov
  2003-03-14 16:52 ` Simon Josefsson
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kotelnikov @ 2003-03-13 15:30 UTC (permalink / raw)


Hello.

I have a problem with appending articles to groups on IMAP.

First, how it looks like: for instance, if I have
(setq gnus-outgoing-message-group "nnimap+myxomop:INBOX.outbox")
where "myxomop" is my imap server I get the following in *imap-log* on
send:

36 APPEND "INBOX.outbox" {591}
136 BAD Invalid literal in Append command

Second, when it happens. Everything works if I connect imap server
with "network". But if I do it with ssh:
imap-shell-program '("ssh -q %s nc localhost imap")
I get the problem.

When it works (with "network") there is additional CR (^M) in the end
of APPEND command. Probably, the problem is in netcat usage...

-- 
Alexander Kotelnikov
Saint-Petersburg, Russia



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

* Re: imap APPEND problem
  2003-03-13 15:30 imap APPEND problem Alexander Kotelnikov
@ 2003-03-14 16:52 ` Simon Josefsson
  2003-03-14 22:37   ` Alexander Kotelnikov
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Josefsson @ 2003-03-14 16:52 UTC (permalink / raw)


Alexander Kotelnikov <sacha@forexware.com> writes:

> Hello.
>
> I have a problem with appending articles to groups on IMAP.
>
> First, how it looks like: for instance, if I have
> (setq gnus-outgoing-message-group "nnimap+myxomop:INBOX.outbox")
> where "myxomop" is my imap server I get the following in *imap-log* on
> send:
>
> 36 APPEND "INBOX.outbox" {591}
> 136 BAD Invalid literal in Append command
>
> Second, when it happens. Everything works if I connect imap server
> with "network". But if I do it with ssh:
> imap-shell-program '("ssh -q %s nc localhost imap")
> I get the problem.

Try (setq imap-client-eol "\r\n"), or use telnet instead of nc.




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

* Re: imap APPEND problem
  2003-03-14 16:52 ` Simon Josefsson
@ 2003-03-14 22:37   ` Alexander Kotelnikov
  2003-03-18 21:28     ` Alexander Kotelnikov
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kotelnikov @ 2003-03-14 22:37 UTC (permalink / raw)


>>>>> On Fri, 14 Mar 2003 17:52:43 +0100
>>>>> "SJ" == Simon Josefsson <jas@extundo.com> wrote:
SJ> 
SJ> Alexander Kotelnikov <sacha@forexware.com> writes:
>> Hello.
>> 
>> I have a problem with appending articles to groups on IMAP.
>> 
>> First, how it looks like: for instance, if I have
>> (setq gnus-outgoing-message-group "nnimap+myxomop:INBOX.outbox")
>> where "myxomop" is my imap server I get the following in *imap-log* on
>> send:
>> 
>> 36 APPEND "INBOX.outbox" {591}
>> 136 BAD Invalid literal in Append command
>> 
>> Second, when it happens. Everything works if I connect imap server
>> with "network". But if I do it with ssh:
>> imap-shell-program '("ssh -q %s nc localhost imap")
>> I get the problem.
SJ> 
SJ> Try (setq imap-client-eol "\r\n"), or use telnet instead of nc.

imap-client-eol does not hel, unfortunately. I still get

226 FETCH 1,* UID
* 1 FETCH (UID 3)
* 22 FETCH (UID 24)
226 OK Completed
227 UNSELECT
227 OK Completed
228 APPEND "INBOX.outbox" {638}
228 BAD Invalid literal in Append command
229 SELECT "INBOX.ding"
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)

Try to use telnet was my first intention, but 
imap-shell-program '("ssh -q %s telnet localhost imap")
does not work at all. Gnus stops on opening connection to imap.

-- 
Alexander Kotelnikov
Saint-Petersburg, Russia



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

* Re: imap APPEND problem
  2003-03-14 22:37   ` Alexander Kotelnikov
@ 2003-03-18 21:28     ` Alexander Kotelnikov
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Kotelnikov @ 2003-03-18 21:28 UTC (permalink / raw)


>>>>> On Sat, 15 Mar 2003 01:37:01 +0300
>>>>> "AK" == Alexander Kotelnikov <sacha@myxomop.com> wrote:
AK> 
>>>>> On Fri, 14 Mar 2003 17:52:43 +0100
>>>>> "SJ" == Simon Josefsson <jas@extundo.com> wrote:
SJ> 
SJ> Alexander Kotelnikov <sacha@forexware.com> writes:
>>> Hello.
>>> 
>>> I have a problem with appending articles to groups on IMAP.
>>> 
>>> First, how it looks like: for instance, if I have
>>> (setq gnus-outgoing-message-group "nnimap+myxomop:INBOX.outbox")
>>> where "myxomop" is my imap server I get the following in *imap-log* on
>>> send:
>>> 
>>> 36 APPEND "INBOX.outbox" {591}
>>> 136 BAD Invalid literal in Append command
>>> 
>>> Second, when it happens. Everything works if I connect imap server
>>> with "network". But if I do it with ssh:
>>> imap-shell-program '("ssh -q %s nc localhost imap")
>>> I get the problem.
SJ> 
SJ> Try (setq imap-client-eol "\r\n"), or use telnet instead of nc.
AK> 
AK> imap-client-eol does not hel, unfortunately. I still get
AK> 
AK> 226 FETCH 1,* UID
AK> * 1 FETCH (UID 3)
AK> * 22 FETCH (UID 24)
AK> 226 OK Completed
AK> 227 UNSELECT
AK> 227 OK Completed
AK> 228 APPEND "INBOX.outbox" {638}
AK> 228 BAD Invalid literal in Append command
AK> 229 SELECT "INBOX.ding"
AK> * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
AK> 
AK> Try to use telnet was my first intention, but 
AK> imap-shell-program '("ssh -q %s telnet localhost imap")
AK> does not work at all. Gnus stops on opening connection to imap.

So this is still true:
http://www.gnus.org/list-archives/ding/200204/msg00189.html

-- 
Alexander Kotelnikov
Saint-Petersburg, Russia



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

end of thread, other threads:[~2003-03-18 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-13 15:30 imap APPEND problem Alexander Kotelnikov
2003-03-14 16:52 ` Simon Josefsson
2003-03-14 22:37   ` Alexander Kotelnikov
2003-03-18 21:28     ` Alexander Kotelnikov

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