Hi all,
I'm using a build of dovecot 1.2, and I'm seeing this:
# ls -al 1235038385.M765212P13483.tch-mailstore1\,S\=3927\,W\=4017\:2\,S -rw------- 1 mail mail 3927 2009-02-19 10:13 1235038385.M765212P13483.tch-mailstore1,S=3927,W=4017:2,S
(root@tch-mailstore1:/mailstore/mail/domain.net/i/ian/mail/.postini/cur) (2009-02-23 13:46:04) # sieve-test -c ../../../sieve/default.sieve 1235038385.M765212P13483.tch-mailstore1\,S\=3927\,W\=4017\:2\,S Fatal: Can't open mail stream as raw
Can anyone suggest what this error means?
Thanks,
Ian
2009/2/23 Ian P. Christian <pookey@pookey.co.uk>:
# sieve-test -c ../../../sieve/default.sieve 1235038385.M765212P13483.tch-mailstore1\,S\=3927\,W\=4017\:2\,S Fatal: Can't open mail stream as raw
Running strace on this, I see it's trying to do this:
open("sieve/default.svbin.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 6 lseek(6, 0, SEEK_CUR) = 0 fstat(6, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 write(6, "\276\272\376\312\0\0\0\0\2\0\0\0"..., 12) = 12 pwrite(6, "\0\0\0\0i\0\0\0"..., 8, 44) = 8 pwrite(6, "\10\5regex\0\0\10fileinto\0\0\10envelope\0\0\6r"..., 105, 52) = 105 pwrite(6, "\1\0\0\0$\6\0\0"..., 8, 160) = 8 pwrite(6, "\10\0\1\2\3\4\5\6\7\4\0\0\0,\5score\0\7scoredp\0\tth"..., 1572, 168) = 1572 write(6, "\0\0\0\0i\0\0\0,\0\0\0\0\0\0\0"..., 16) = 16 write(6, "\1\0\0\0$\6\0\0\240\0\0\0\0\0\0\0"..., 16) = 16 close(6) = 0 rename("sieve/default.svbin.tmp", "sieve/default.svbin") = 0 stat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0 open("/tmp/./test", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "Fatal: Can't open mail stream as "..., 37Fatal: Can't open mail stream as raw ) = 37 exit_group(89) = ?
Was fixed like this:
# sieve-test -c sieve/default.sieve ./test Fatal: Can't open mail stream as raw
# touch /tmp/test
# sieve-test -c sieve/default.sieve ./test
Performed actions:
(none)
Implicit keep:
- store message in folder: INBOX
Info: final result: success
If I remove that file, it stops working. Odd :)
participants (1)
-
Ian P. Christian