* sieve: NO "Expected EOL"
@ 2004-05-25 11:26 Jochen Küpper
2004-05-25 12:00 ` Simon Josefsson
0 siblings, 1 reply; 6+ messages in thread
From: Jochen Küpper @ 2004-05-25 11:26 UTC (permalink / raw)
Trying to upload my sieve-script I get the following error:
,----
| [...script...]
|
| NO "Expected EOL"
`----
Cyrus timsieved v2.1.11
GNU Emacs 21.3.1 (i386--freebsd, X toolkit, Xaw3d scroll bars) of 2004-03-03 on mxp02
No Gnus v0.3
Anything to do about that?
Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D
(Part 3 you find in my messages before fall 2003.)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sieve: NO "Expected EOL"
2004-05-25 11:26 sieve: NO "Expected EOL" Jochen Küpper
@ 2004-05-25 12:00 ` Simon Josefsson
[not found] ` <iluzn7w4sz8.fsf-Hx3HMpEclzRikQyLtWShHUB+6BGkLq7r@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Simon Josefsson @ 2004-05-25 12:00 UTC (permalink / raw)
Jochen Küpper <jochen@fhi-berlin.mpg.de> writes:
> Trying to upload my sieve-script I get the following error:
> ,----
> | [...script...]
> |
> | NO "Expected EOL"
> `----
>
> Cyrus timsieved v2.1.11
> GNU Emacs 21.3.1 (i386--freebsd, X toolkit, Xaw3d scroll bars) of 2004-03-03 on mxp02
> No Gnus v0.3
>
> Anything to do about that?
Perhaps the script has to end with a newline?
Can you reproduce this using a smaller script, and post the entire
log?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sieve: NO "Expected EOL"
[not found] ` <iluzn7w4sz8.fsf-Hx3HMpEclzRikQyLtWShHUB+6BGkLq7r@public.gmane.org>
@ 2004-05-25 14:04 ` Jochen Küpper
2004-05-25 14:24 ` Simon Josefsson
0 siblings, 1 reply; 6+ messages in thread
From: Jochen Küpper @ 2004-05-25 14:04 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 733 bytes --]
On Tue, 25 May 2004 14:00:11 +0200 Simon Josefsson wrote:
Simon> Can you reproduce this using a smaller script, and post the entire
Simon> log?
Attached.
Seems to be a coding-system problem. In the manage-sieve log I see
\201 characters that where somehow hidden in my local sieve-script
buffer. I changed the script to ASCII-only and everything works fine.
(I'm happy with that solution, but can do some more testing (with
guidelines;) if it helps to enhance manage-sieve or emacs.)
Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D
(Part 3 you find in my messages before fall 2003.)
[-- Attachment #2: Type: text/plain, Size: 1575 bytes --]
"IMPLEMENTATION" "Cyrus timsieved v2.1.11"
"SASL" "PLAIN OTP DIGEST-MD5 CRAM-MD5"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational regex"
"STARTTLS"
OK
AUTHENTICATE "DIGEST-MD5"
{224}
bm9uY2U9IlNOU3ltNzlsbEJBcFVrWWkwSms0NXBrMlJWMlRmemVqNWZVbEhGdXErbUU9IixyZWFsbT0ibHVyc2EiLHFvcD0iYXV0aCxhdXRoLWludCxhdXRoLWNvbmYiLGNpcGhlcj0icmM0LTQwLHJjNC01NixyYzQiLG1heGJ1Zj00MDk2LGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz
"dXNlcm5hbWU9ImpvY2hlbiIscmVhbG09Imx1cnNhIixub25jZT0iU05TeW03OWxsQkFwVWtZaTBKazQ1cGsyUlYyVGZ6ZWo1ZlVsSEZ1cSttRT0iLGNub25jZT0iMXhsODYyYWl6bjd3NG5xMiIsbmM9MDAwMDAwMDEsZGlnZXN0LXVyaT0ic2lldmUvaW1hcC5yei1iZXJsaW4ubXBnLmRlIixxb3A9YXV0aCxyZXNwb25zZT0wOTA4Yjk4NjJhOWIyYmM3YjNhYmYzZTM2NDJhYzhlOQ=="
OK (SASL "cnNwYXV0aD01MTE0M2M3YTllZGZhZWM0M2MyYzZjZDUyZTc2ZmE3Mg==")
LISTSCRIPTS
"sieve.conf" ACTIVE
"noproblem.sieve"
OK
GETSCRIPT "noproblem.sieve"
{237}
# sieve script FHI Berlin
#
# Copyright (C) 2003,2004 Jochen Kuepper <jochen-W2i0oK7yYu0+t3nig+EZI7NAH6kLmebB@public.gmane.org>
require "fileinto";
# VfK Suedwest
if address :contains "from" "florianschuhwerk-LWAfsSFWpa4@public.gmane.org" {
fileinto "leute/Sport/Volleyball/VfK";
}
OK
PUTSCRIPT "noproblem.sieve" {242+}
# sieve script FHI Berlin
#
# Copyright (C) 2003,2004 Jochen Kuepper <jochen-W2i0oK7yYu0+t3nig+EZI7NAH6kLmebB@public.gmane.org>
require "fileinto";
# VfK Südwest
if address :contains "from" "florianschuhwerk-LWAfsSFWpa4@public.gmane.org" {
fileinto "leute/Sport/Volleyball/VfK";
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sieve: NO "Expected EOL"
2004-05-25 14:04 ` Jochen Küpper
@ 2004-05-25 14:24 ` Simon Josefsson
[not found] ` <iluekp84m9w.fsf-Hx3HMpEclzRikQyLtWShHUB+6BGkLq7r@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Simon Josefsson @ 2004-05-25 14:24 UTC (permalink / raw)
Jochen Küpper <jochen@fhi-berlin.mpg.de> writes:
> On Tue, 25 May 2004 14:00:11 +0200 Simon Josefsson wrote:
>
> Simon> Can you reproduce this using a smaller script, and post the entire
> Simon> log?
>
> Attached.
>
> Seems to be a coding-system problem. In the manage-sieve log I see
> \201 characters that where somehow hidden in my local sieve-script
> buffer. I changed the script to ASCII-only and everything works fine.
> (I'm happy with that solution, but can do some more testing (with
> guidelines;) if it helps to enhance manage-sieve or emacs.)
Ah. Hm. Sieve scripts are UTF-8, so perhaps the emacs-sieve stuff
should do some conversion. Does the following patch do anything
useful?
Index: sieve-manage.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/sieve-manage.el,v
retrieving revision 7.5
diff -u -p -u -w -r7.5 sieve-manage.el
--- sieve-manage.el 20 May 2004 08:02:41 -0000 7.5
+++ sieve-manage.el 25 May 2004 14:24:33 -0000
@@ -160,8 +160,8 @@ for doing the actual authentication.")
sieve-manage-server-eol
sieve-manage-capability))
(defconst sieve-manage-default-stream 'network)
-(defconst sieve-manage-coding-system-for-read 'binary)
-(defconst sieve-manage-coding-system-for-write 'binary)
+(defconst sieve-manage-coding-system-for-read 'utf-8)
+(defconst sieve-manage-coding-system-for-write 'utf-8)
(defvar sieve-manage-stream nil)
(defvar sieve-manage-auth nil)
(defvar sieve-manage-server nil)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sieve: NO "Expected EOL"
[not found] ` <iluekp84m9w.fsf-Hx3HMpEclzRikQyLtWShHUB+6BGkLq7r@public.gmane.org>
@ 2004-05-27 12:11 ` Jochen Küpper
2004-05-27 13:17 ` Simon Josefsson
0 siblings, 1 reply; 6+ messages in thread
From: Jochen Küpper @ 2004-05-27 12:11 UTC (permalink / raw)
Sorry to come back so late, but now I am somewhat confident the
response below is alright.
On Tue, 25 May 2004 16:24:59 +0200 Simon Josefsson wrote:
Simon> Ah. Hm. Sieve scripts are UTF-8, so perhaps the emacs-sieve stuff
Simon> should do some conversion. Does the following patch do anything
Simon> useful?
[...]
With this patch I cannot connect to the server at all anymore. The
sieve-buffer has only the following content, the *sieve-manage-log*
buffer is empty.
,----
| Server : imap.rz-berlin.mpg.de:2000
|
`----
Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D
(Part 3 you find in my messages before fall 2003.)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sieve: NO "Expected EOL"
2004-05-27 12:11 ` Jochen Küpper
@ 2004-05-27 13:17 ` Simon Josefsson
0 siblings, 0 replies; 6+ messages in thread
From: Simon Josefsson @ 2004-05-27 13:17 UTC (permalink / raw)
Jochen Küpper <jochen@fhi-berlin.mpg.de> writes:
> Sorry to come back so late, but now I am somewhat confident the
> response below is alright.
>
> On Tue, 25 May 2004 16:24:59 +0200 Simon Josefsson wrote:
>
> Simon> Ah. Hm. Sieve scripts are UTF-8, so perhaps the emacs-sieve stuff
> Simon> should do some conversion. Does the following patch do anything
> Simon> useful?
>
> [...]
>
> With this patch I cannot connect to the server at all anymore. The
> sieve-buffer has only the following content, the *sieve-manage-log*
> buffer is empty.
> ,----
> | Server : imap.rz-berlin.mpg.de:2000
> |
> `----
It was just a lucky shot. I guess the problem is more complicated.
If someone wants to work on it, feel free.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-05-27 13:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-25 11:26 sieve: NO "Expected EOL" Jochen Küpper
2004-05-25 12:00 ` Simon Josefsson
[not found] ` <iluzn7w4sz8.fsf-Hx3HMpEclzRikQyLtWShHUB+6BGkLq7r@public.gmane.org>
2004-05-25 14:04 ` Jochen Küpper
2004-05-25 14:24 ` Simon Josefsson
[not found] ` <iluekp84m9w.fsf-Hx3HMpEclzRikQyLtWShHUB+6BGkLq7r@public.gmane.org>
2004-05-27 12:11 ` Jochen Küpper
2004-05-27 13:17 ` Simon Josefsson
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).