[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cyrus-devel
Subject:    Re: autocreate.sieve doesn't work correct. temporary files
From:       Artyom Aleksandrov <mailing.list () tem4uk ! ru>
Date:       2015-10-20 16:39:54
Message-ID: CAJtYNb2m4R3C+O_1v4adZx6GcXRvwxvU80Dbhvs-4cXdrjB6Bg () mail ! gmail ! com
[Download RAW message or body]

Sorry for delay.

Yes! Now it works!


On Fri, Oct 16, 2015 at 1:57 AM, ellie timoney <ellie@fastmail.com> wrote:

> Aha!
>
> Okay, it was calling cyrus_mkdir() with the wrong path:  cyrus_mkdir()
> expects to get a path to a *file*, and it ensures all the directory
> components exist (but ignores the file part).  But we were passing it only
> the directory component (/var/spool/sieve/r/root).  It was ignoring "root",
> assuming that was a filename, and only creating as far as ...../r/.
>
> Attached is a patch that fixes the cyrus_mkdir() to give it one of the
> filenames instead.  It also removes a redundant syslog line, since
> cyrus_mkdir() already logs all the information we need when it fails.
>
> Please let me know how it oes,
>
> ellie
>
>
> On Thu, Oct 15, 2015, at 07:20 AM, Artyom Aleksandrov wrote:
>
> I'm glad to help =)
> After applying all patches I got follow
>
> Oct 14 23:11:18 imapsync cyrus/imap[28525]: User root, Inbox subfolders,
> created 4, subscribed 4
> Oct 14 23:11:18 imapsync cyrus/imap[28525]: autocreate_sieve: Unable to
> create /var/spool/sieve/r/root/default.script.bc.NEW: No such file or
> directory
> Oct 14 23:11:18 imapsync cyrus/imap[28525]: autocreate_sieve: User root,
> default sieve script creation failed
> It's absolutely right error now, because no one directory/files is
> creating under */var/spool/sieve/r *directory
> But tmp files gone from */var/lib/cyrus/*
>
> On Fri, Oct 9, 2015 at 2:36 AM, ellie timoney <ellie@fastmail.com> wrote:
>
>
> Hi again,
>
> A couple more patches:
>
>
>
> First I guest we need NOT here (?)
>
>
> Doh!
>
>
>
> acsieve-sievedir.patch corrects this (though it sounds like you've already
> made this change yourself -- included for completion though)
>
>
>
> Oct  7 16:54:10 imapsync cyrus/imap[4062]: autocreate_sieve: Unable to
> create /var/spool/sieve/r/root/default.script.bc.NEW. Unknown error
>
>
>
> This wouldn't be an "unknown error" if it would bother to tell us what the
> error was....
>
> acsieve-syslog.patch fixes this, so the actual error will be logged.  It
> also fixes a bunch of similar syslog calls through this function that were
> doing the same unhelpful thing (i.e. logging an error without including the
> error message).
>
> I haven't had a chance to put together a test case for this yet, sorry.
> In the meantime hopefully the improved error messages will help us track
> this down.  Thanks for sending through these reports! :)
>
> Cheers,
>
>
> ellie
>
>
> On Fri, Oct 9, 2015, at 08:41 AM, ellie timoney wrote:
>
> First I guest we need NOT here (?)
>
>
> Doh!
>
>
> And second creating are failing with follow logs (yes I use 'root' user
> for testing)
>
> Oct  7 16:54:10 imapsync cyrus/imap[4062]: User root, Inbox subfolders,
> created 4, subscribed 4
> Oct  7 16:54:10 imapsync cyrus/imap[4062]: autocreate_sieve: Unable to
> create /var/spool/sieve/r/root/default.script.bc.NEW. Unknown error
> Oct  7 16:54:10 imapsync cyrus/imap[4062]: autocreate_sieve: User root,
> default sieve script creation failed
> No one files/folders are creating.
>
>
>
> That path looks okay, at least.  I expected more problems to shake out
> when the paths were fixed, so I'll look into this some more.
>
> - ellie
>
> On Thu, Oct 8, 2015, at 01:04 AM, Artyom Aleksandrov wrote:
>
> Hi, thank you for patch. But it does not work. ((
> First I guest we need NOT here (?)
>
> @@ -139,7 +138,7 @@ static int autocreate_sieve(const char *userid, const
> char *source_script)
>      }
>
>      /* Check if sievedir is defined in imapd.conf */
> -    if(!(sieve_dir = config_getstring(IMAPOPT_SIEVEDIR))) {
> +    if(config_getstring(IMAPOPT_SIEVEDIR)) {
> And second creating are failing with follow logs (yes I use 'root' user
> for testing)
>
> Oct  7 16:54:10 imapsync cyrus/imap[4062]: User root, Inbox subfolders,
> created 4, subscribed 4
> Oct  7 16:54:10 imapsync cyrus/imap[4062]: autocreate_sieve: Unable to
> create /var/spool/sieve/r/root/default.script.bc.NEW. Unknown error
> Oct  7 16:54:10 imapsync cyrus/imap[4062]: autocreate_sieve: User root,
> default sieve script creation failed
> No one files/folders are creating.
>
> On Tue, Oct 6, 2015 at 3:51 AM, ellie timoney <ellie@fastmail.com> wrote:
>
>
> Hi Artyom,
>
> Yeah wow, this is really gross.
>
> I'm pretty sure the gibberish in those "??????Default.script.bc" filenames
> is just whatever junk was in the (uninitialised) sieve_script_dir variable.
>
> I've had a rummage around, and there's a user_sieve_path() function in
> imap/user.c that does the heavy lifting of finding a user's sieve script
> directory.  Looks like sieve_script_dir wanted to be the result of that.
> Your fix is on the right track. :)
>
> I've attached a patch for 2.5.x that fixes these paths using
> user_sieve_path().  It also fixes the assumption that the sievedir value
> will end in a "/", which it doesn't by default, and shouldn't need to.  Can
> you try it out and see how it goes?  (The patch should apply cleanly on any
> version of 2.5, this file has barely changed since it was created.)
>
> The rest of the autocreate_sieve() function is pretty awful too -- there's
> almost certainly more bugs in there, and fixing the paths might just shake
> them out.  I'd like to tidy this up significantly (and make some test cases
> for it), but in the meantime hopefully this will get you moving forward.
>
> Cheers,
>
>
> ellie
>
>
> On Tue, Oct 6, 2015, at 12:56 AM, Artyom Aleksandrov wrote:
>
> Guys I don't understand hot it can work.
>
> I added additional logging and found that sieve_script_dir is not defined.
> After adding this definition the problem gone.
>
>
> 147     /* Check if autocreate_sieve_compiledscript is defined in
> imapd.conf */
> 148     if(!(compiled_source_script =
> config_getstring(IMAPOPT_AUTOCREATE_SIEVE_SCRIPT_COMPILED))) {
> 149         syslog(LOG_WARNING, "autocreate_sieve:
> autocreate_sieve_compiledscript option is not defined. Compiling it");
> 150         do_compile = 1;
> 151     }
> 152
> 153    char userletter[1];
> 154    userletter[0]=userid[0];
> 155    snprintf(sieve_script_dir, MAX_FILENAME,
> "%s%s/%s/",sieve_dir,userletter,userid);
>
>
>
> On Thu, Oct 1, 2015 at 8:49 PM, Artyom Aleksandrov <mailing.list@tem4uk.ru
> > wrote:
>
> Is it works? Which version do you use?
> Could you guest the reason of the problem? How I can troubleshoot it?
>
> :/var/lib/cyrus# ls -la
> total 2176
> -rw-------  1 cyrus mail     124 Sep 25 16:04 ??????Default.script.bc
> -rw-------  1 cyrus mail     231 Sep 25 16:04 ??????Default.script.script
> lrwxrwxrwx  1 cyrus mail      17 Sep 25 16:04 ??????defaultbc ->
> Default.script.bc
> -rw-------  1 cyrus mail     124 Jul  2 12:38 ??N???Default.script.bc
> -rw-------  1 cyrus mail     231 Jul  2 12:38 ??N???Default.script.script
> lrwxrwxrwx  1 cyrus mail      17 Jul  2 12:38 ??N???defaultbc ->
> Default.script.bc
> -rw-------  1 cyrus mail     124 Sep 22 15:10 0#?>??Default.script.bc
> -rw-------  1 cyrus mail     231 Sep 22 15:10 0#?>??Default.script.script
> lrwxrwxrwx  1 cyrus mail      17 Sep 22 15:10 0#?>??defaultbc ->
> Default.script.bc
>
>
> On Thu, Oct 1, 2015 at 7:55 PM, Alvin Starr <alvin@netvel.net> wrote:
>
> I use autocreate.
>
> So there is at least one.
>
>
> On 10/01/2015 12:18 PM, Artyom Aleksandrov wrote:
>
> Does anybody use autocreate_sieve?
>
> On Sat, Sep 26, 2015 at 1:30 AM, Artyom Aleksandrov <
> mailing.list@tem4uk.ru> wrote:
>
>
> Hello,I want to create default sieve scipt for all my users but I stuck
> with strange problem that looks like the bug. Unfortunately I've never
> wrote on C so it's difficult for me to find it.
> When Cyrus (2.5.3 or 2.5.6) create default sieve script it doesn't put
> file in sieve_dir/?/user folder. It jist creates tmp files in
> configdirectory with names like this
> -rw-------  1 cyrus mail   124 Sep 26 00:41 ?&?P??default.script.bc
> -rw-------  1 cyrus mail   231 Sep 26 00:41 ?&?P??default.script.script
> lrwxrwxrwx  1 cyrus mail    17 Sep 26 00:41 ?&?P??defaultbc ->
> default.script.bc
>
> There are not checks in this stage so my syslog is clean of error.
> Everything seems fine.
> Sep 26 00:41:34 imapsync cyrus/imap[26117]: autocreate_sieve: Problem
> opening compiled script file: default.script.bc. Compiling it
> Sep 26 00:41:34 imapsync cyrus/imap[26117]: autocreate_sieve: Compiled
> sieve script was successfully saved in default.script.bc
> Sep 26 00:41:34 imapsync cyrus/imap[26117]: autocreate_sieve: User XXXX,
> default sieve script creation succeeded
>
> My setting:
> autocreate_sieve_script: /var/spool/sieve/global/default.script
> autocreate_sieve_script_compile: yes
> autocreate_sieve_script_compiled: default.script.bc
> sievedir: /var/spool/sieve/
> Distributive: Ubuntu 14.04.3
>
>
> I'll be glad for any help. )
>
> Best regards, Artyom
>
>
>
>
>
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>
>
>
>
>
> --
> Alvin Starr                   ||   voice: (905)513-7688
> Netvel Inc.                   ||   Cell:  (416)806-0133 alvin@netvel.net              ||
>
>
>
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>
>
>
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>
>
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>
>
>
>
>

[Attachment #3 (text/html)]

<div dir="ltr"><div>Sorry for delay.<br><br>Yes! Now it \
works!<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On \
Fri, Oct 16, 2015 at 1:57 AM, ellie timoney <span dir="ltr">&lt;<a \
href="mailto:ellie@fastmail.com" target="_blank">ellie@fastmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><u></u>




<div><div>Aha!<br></div>
<div>  </div>
<div>Okay, it was calling cyrus_mkdir() with the wrong path:   cyrus_mkdir() expects \
to get a path to a <i>file</i>, and it ensures all the directory components exist \
(but ignores the file part).   But we were passing it only the directory component \
(/var/spool/sieve/r/root).   It was ignoring &quot;root&quot;, assuming that was a \
filename, and only creating as far as ...../r/.<br></div> <div>  </div>
<div>Attached is a patch that fixes the cyrus_mkdir() to give it one of the filenames \
instead.   It also removes a redundant syslog line, since cyrus_mkdir() already logs \
all the information we need when it fails.<br></div> <div>  </div>
<div>Please let me know how it oes,<span class="HOEnZb"><font \
color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"> \
<div>  </div> <div>ellie<br></div></font></span><div><div class="h5">
<div>  </div>
<div>  </div>
<div>On Thu, Oct 15, 2015, at 07:20 AM, Artyom Aleksandrov wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div><div><div><div>I&#39;m glad to help \
=)<br></div> </div>
<div>After applying all patches I got follow<br></div>
<div>  </div>
<div style="margin-left:40px"><div>Oct 14 23:11:18 imapsync cyrus/imap[28525]: User \
root, Inbox subfolders, created 4, subscribed 4<br></div> <div>Oct 14 23:11:18 \
imapsync cyrus/imap[28525]: autocreate_sieve: Unable to create \
/var/spool/sieve/r/root/default.script.bc.NEW: No such file or directory<br></div> \
<div>Oct 14 23:11:18 imapsync cyrus/imap[28525]: autocreate_sieve: User root, default \
sieve script creation failed<br></div> </div>
</div>
<div>It&#39;s absolutely right error now, because no one directory/files is creating \
under <i>/var/spool/sieve/r </i>directory<br></div> </div>
<div>But tmp files gone from <i>/var/lib/cyrus/</i><br></div>
</div>
<div><div>  </div>
<div><div>On Fri, Oct 9, 2015 at 2:36 AM, ellie timoney <span dir="ltr">&lt;<a \
href="mailto:ellie@fastmail.com" target="_blank">ellie@fastmail.com</a>&gt;</span> \
wrote:<br></div> <blockquote \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left \
-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><u></u><br></div>
 <div><div>Hi again,<br></div>
<div>  </div>
<div>A couple more patches:<br></div>
<div>  </div>
<div>  </div>
<blockquote><blockquote type="cite"><div dir="ltr"><span>First I guest we need NOT \
here (?)</span><br></div> </blockquote><div><div dir="ltr">  </div>
</div>
<div><span>Doh!</span><br></div>
</blockquote><div>  </div>
<div>  </div>
<div>acsieve-sievedir.patch corrects this (though it sounds like you&#39;ve already \
made this change yourself -- included for completion though)<br></div> <div>  </div>
<div>  </div>
<blockquote><blockquote><div><span>Oct   7 16:54:10 imapsync cyrus/imap[4062]: \
autocreate_sieve: Unable to  create /var/spool/sieve/r/root/default.script.bc.NEW. \
Unknown error</span><br></div> </blockquote></blockquote><div>  </div>
<div>  </div>
<div>This wouldn&#39;t be an &quot;unknown error&quot; if it would bother to  tell us \
what the error was....<br></div> <div>  </div>
<div>acsieve-syslog.patch fixes this, so the actual error will be logged.   It also \
fixes a bunch of similar syslog calls through this function that were doing the same \
unhelpful thing (i.e. logging an error without including the error \
message).<br></div> <div>  </div>
<div>I haven&#39;t had a chance to put together a test case for this yet, sorry.   In \
the meantime hopefully the improved error messages will help us track this down.   \
Thanks for sending through these reports! :)<br></div> <div>  </div>
<div>Cheers,<span><span style="color:rgb(136,136,136)"></span></span><br></div>
<div>  </div>
<div>  </div>
<div><span><span style="color:rgb(136,136,136)">ellie</span></span><br></div>
<div>  </div>
<div><div><div>  </div>
<div>On Fri, Oct 9, 2015, at 08:41 AM, ellie timoney wrote:<br></div>
<blockquote type="cite"><blockquote type="cite"><div dir="ltr">First I guest we need \
NOT here (?)<br></div> </blockquote><div><div dir="ltr">  </div>
</div>
<div>Doh!<br></div>
<div>  </div>
<div><blockquote type="cite"><div dir="ltr"><div><div>And second creating are failing \
with follow logs (yes I use &#39;root&#39; user for testing)<br></div> <div>  </div>
<div style="margin-left:40px"><div>Oct   7 16:54:10 imapsync cyrus/imap[4062]: User \
root, Inbox subfolders, created 4, subscribed 4<br></div> <div>Oct   7 16:54:10 \
imapsync cyrus/imap[4062]: autocreate_sieve: Unable to create \
/var/spool/sieve/r/root/default.script.bc.NEW. Unknown error<br></div> <div>Oct   7 \
16:54:10 imapsync cyrus/imap[4062]: autocreate_sieve: User root, default sieve script \
creation failed<br></div> </div>
</div>
<div>No one files/folders are creating.<br></div>
</div>
<div>  </div>
</blockquote></div>
<div>  </div>
<div>That path looks okay, at least.   I expected more problems to shake out when the \
paths were fixed, so I&#39;ll look into this some more.<br></div> <div>  </div>
<div>- ellie<br></div>
<div>  </div>
<div>On Thu, Oct 8, 2015, at 01:04 AM, Artyom Aleksandrov wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div><div><div>Hi, thank you for patch. But it \
does not work. ((<br></div> </div>
<div>First I guest we need NOT here (?)<br></div>
<div>  </div>
<div style="margin-left:40px"><div>@@ -139,7 +138,7 @@ static int \
autocreate_sieve(const char *userid, const char *source_script)<br></div> <div>       \
}<br></div> <div>  </div>
<div>         /* Check if sievedir is defined in imapd.conf */<br></div>
<div>-       if(!(sieve_dir = config_getstring(IMAPOPT_SIEVEDIR))) {<br></div>
<div>+       if(config_getstring(IMAPOPT_SIEVEDIR)) {<br></div>
</div>
<div>And second creating are failing with follow logs (yes I use &#39;root&#39; user \
for testing)<br></div> <div>  </div>
<div style="margin-left:40px"><div>Oct   7 16:54:10 imapsync cyrus/imap[4062]: User \
root, Inbox subfolders, created 4, subscribed 4<br></div> <div>Oct   7 16:54:10 \
imapsync cyrus/imap[4062]: autocreate_sieve: Unable to create \
/var/spool/sieve/r/root/default.script.bc.NEW. Unknown error<br></div> <div>Oct   7 \
16:54:10 imapsync cyrus/imap[4062]: autocreate_sieve: User root, default sieve script \
creation failed<br></div> </div>
</div>
<div>No one files/folders are creating.<br></div>
</div>
<div><div>  </div>
<div><div>On Tue, Oct 6, 2015 at 3:51 AM, ellie timoney <span dir="ltr">&lt;<a \
href="mailto:ellie@fastmail.com" target="_blank">ellie@fastmail.com</a>&gt;</span> \
wrote:<br></div> <blockquote \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left \
-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><u></u><br></div>
 <div><div>Hi Artyom,<br></div>
<div>  </div>
<div>Yeah wow, this is really gross.<br></div>
<div>  </div>
<div>I&#39;m pretty sure the gibberish in those &quot;??????Default.script.bc&quot; \
filenames is just whatever junk was in the (uninitialised) sieve_script_dir \
variable.<br></div> <div>  </div>
<div>I&#39;ve had a rummage around, and there&#39;s a user_sieve_path() function in \
imap/user.c that does the heavy lifting of finding a user&#39;s sieve script \
directory.   Looks like sieve_script_dir wanted to be the result of that.   Your fix \
is on the right track. :)<br></div> <div>  </div>
<div>I&#39;ve attached a patch for 2.5.x that fixes these paths using \
user_sieve_path().   It also fixes the assumption that the sievedir value will end in \
a &quot;/&quot;, which it doesn&#39;t by default, and shouldn&#39;t need to.   Can \
you try it out and see how it goes?   (The patch should apply cleanly on any version \
of 2.5, this file has barely changed since it was created.)<br></div> <div>  </div>
<div>The rest of the autocreate_sieve() function is pretty awful too -- there&#39;s \
almost certainly more bugs in there, and fixing the paths might just shake them out.  \
I&#39;d like to tidy this up significantly (and make some test cases for it), but in \
the meantime hopefully this will get you moving forward.<br></div> <div>  </div>
<div>Cheers,<span><span style="color:rgb(136,136,136)"></span></span><br></div>
<div>  </div>
<div>  </div>
<div><span><span style="color:rgb(136,136,136)">ellie</span></span><br></div>
<div>  </div>
<div><div><div>  </div>
<div>On Tue, Oct 6, 2015, at 12:56 AM, Artyom Aleksandrov wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div><div>Guys I don&#39;t understand hot it \
can work.<br></div> <div>  </div>
<div>I added additional logging and found that sieve_script_dir is not \
defined.<br></div> </div>
<div>After adding this definition the problem gone.<br></div>
<div>  </div>
<div>  </div>
<div>147         /* Check if autocreate_sieve_compiledscript is defined in imapd.conf \
*/<br></div> <div>148         if(!(compiled_source_script = \
config_getstring(IMAPOPT_AUTOCREATE_SIEVE_SCRIPT_COMPILED))) {<br></div> <div>149     \
syslog(LOG_WARNING, &quot;autocreate_sieve: autocreate_sieve_compiledscript option is \
not defined. Compiling it&quot;);<br></div> <div>150                 do_compile = \
1;<br></div> <div>151         }<br></div>
<div>152 <br></div>
<div>153      char userletter[1];<br></div>
<div>154      userletter[0]=userid[0];<br></div>
<div>155      snprintf(sieve_script_dir, MAX_FILENAME, \
&quot;%s%s/%s/&quot;,sieve_dir,userletter,userid);<br></div> <div>  </div>
<div>  </div>
</div>
<div><div>  </div>
<div><div>On Thu, Oct 1, 2015 at 8:49 PM, Artyom Aleksandrov <span dir="ltr">&lt;<a \
href="mailto:mailing.list@tem4uk.ru" \
target="_blank">mailing.list@tem4uk.ru</a>&gt;</span> wrote:<br></div> <blockquote \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left \
-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div \
dir="ltr"><div><div><div>Is it works? Which version do you use?<br></div> </div>
<div>Could you guest the reason of the problem? How I can troubleshoot it? <br></div>
<div>  </div>
<div style="margin-left:40px"><div>:/var/lib/cyrus# ls -la<br></div>
<div>total 2176<br></div>
<div>-rw-------   1 cyrus mail         124 Sep 25 16:04 \
??????Default.script.bc<br></div> <div>-rw-------   1 cyrus mail         231 Sep 25 \
16:04 ??????Default.script.script<br></div> <div>lrwxrwxrwx   1 cyrus mail           \
17 Sep 25 16:04 ??????defaultbc -&gt; Default.script.bc<br></div> <div>-rw-------   1 \
cyrus mail         124 Jul   2 12:38 ??N???Default.script.bc<br></div> \
<div>-rw-------   1 cyrus mail         231 Jul   2 12:38 \
??N???Default.script.script<br></div> <div>lrwxrwxrwx   1 cyrus mail           17 Jul \
2 12:38 ??N???defaultbc -&gt; Default.script.bc<br></div> <div>-rw-------   1 cyrus \
mail         124 Sep 22 15:10 0#?&gt;??Default.script.bc<br></div> <div>-rw-------   \
1 cyrus mail         231 Sep 22 15:10 0#?&gt;??Default.script.script<br></div> \
<div>lrwxrwxrwx   1 cyrus mail           17 Sep 22 15:10 0#?&gt;??defaultbc -&gt; \
Default.script.bc<br></div> </div>
</div>
<div><div>  </div>
</div>
</div>
<div><div><div><div>  </div>
<div><div>On Thu, Oct 1, 2015 at 7:55 PM, Alvin Starr <span dir="ltr">&lt;<a \
href="mailto:alvin@netvel.net" target="_blank">alvin@netvel.net</a>&gt;</span> \
wrote:<br></div> <blockquote \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left \
-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div \
bgcolor="#FFFFFF"><div><div>I use autocreate.<br></div> <div>  </div>
<div>So there is at least one.<br></div>
<div><div><div>  </div>
<div>  </div>
<div>On 10/01/2015 12:18 PM, Artyom Aleksandrov wrote:<br></div>
</div>
</div>
</div>
<blockquote type="cite"><div><div><div dir="ltr">Does anybody use \
autocreate_sieve?<br></div> <div><div>  </div>
<div><div>On Sat, Sep 26, 2015 at 1:30 AM, Artyom
          Aleksandrov <span dir="ltr">&lt;<a href="mailto:mailing.list@tem4uk.ru" \
target="_blank">mailing.list@tem4uk.ru</a>&gt;</span>  wrote:<br></div>
<blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex \
;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div \
dir="ltr"><div>  </div> <div><div><span>Hello,I want to create default sieve scipt \
for  all my users but I stuck with strange problem that
                    looks like the bug. Unfortunately I&#39;ve never wrote
                    on C so it&#39;s difficult for me to find it.<br>
                    When Cyrus (2.5.3 or 2.5.6) create default sieve
                    script it doesn&#39;t put file in sieve_dir/?/user
                    folder. It jist creates tmp files in configdirectory
                    with names like this</span></div>
<div style="margin-left:40px"><span>-rw-------   1 cyrus
                    mail     124 Sep 26 00:41 ?&amp;?P??default.script.bc<br>
                    -rw-------   1 cyrus mail     231 Sep 26 00:41
                    ?&amp;?P??default.script.script<br>
                    lrwxrwxrwx   1 cyrus mail       17 Sep 26 00:41
                    ?&amp;?P??defaultbc -&gt; default.script.bc</span></div>
<div>  </div>
</div>
<div><span>There are not checks in this stage so my syslog is
                  clean of error.</span><br></div>
<div><div><span>Everything seems fine.</span><br></div>
<div style="margin-left:40px"><span>Sep 26 00:41:34 imapsync
                    cyrus/imap[26117]: autocreate_sieve: Problem opening
                    compiled script file: default.script.bc. Compiling
                    it<br>
                    Sep 26 00:41:34 imapsync cyrus/imap[26117]:
                    autocreate_sieve: Compiled sieve script was
                    successfully saved in default.script.bc<br>
                    Sep 26 00:41:34 imapsync cyrus/imap[26117]:
                    autocreate_sieve: User XXXX, default sieve script
                    creation succeeded </span></div>
<div>  </div>
</div>
<div><div><span>My setting:</span><br></div>
<div style="margin-left:40px"><span>autocreate_sieve_script:
                    /var/spool/sieve/global/default.script<br>
                    autocreate_sieve_script_compile: yes<br>
                    autocreate_sieve_script_compiled: default.script.bc<br>
                    sievedir: /var/spool/sieve/</span></div>
<div><span>
                  Distributive: Ubuntu 14.04.3</span><br></div>
</div>
<div>  </div>
<div>  </div>
<div>I&#39;ll be glad for any help. )<br></div>
<div>  </div>
<div>Best regards, Artyom<br></div>
</div>
</blockquote></div>
<div>  </div>
</div>
<div>  </div>
<div>  </div>
</div>
</div>
<pre>----
Cyrus Home Page: <a href="http://www.cyrusimap.org/" \
target="_blank">http://www.cyrusimap.org/</a> List Archives/Info: <a \
href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" \
target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a> To Unsubscribe:
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" \
target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></pre><div> \
</div> </blockquote><div>  </div>
<pre><span><span style="color:rgb(136,136,136)">-- 
Alvin Starr                   ||   voice: <a href="tel:%28905%29513-7688" \
target="_blank">(905)513-7688</a> Netvel Inc.                   ||   Cell:  <a \
href="tel:%28416%29806-0133" target="_blank">(416)806-0133</a> <a \
href="mailto:alvin@netvel.net" target="_blank">alvin@netvel.net</a>              || \
</span></span><br></pre><div>  </div> </div>
<div>  </div>
<div>----<br></div>
<div>Cyrus Home Page: <a href="http://www.cyrusimap.org/" \
target="_blank">http://www.cyrusimap.org/</a><br></div> <div>List Archives/Info: <a \
href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" \
target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br></div> \
<div>To Unsubscribe:<br></div> <div><a \
href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" \
target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></div>
 </blockquote></div>
</div>
</div>
</div>
</blockquote></div>
</div>
<div>----<br></div>
<div>Cyrus Home Page: <a href="http://www.cyrusimap.org/" \
target="_blank">http://www.cyrusimap.org/</a><br></div> <div>List Archives/Info: <a \
href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" \
target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br></div> \
<div>To Unsubscribe:<br></div> <div><a \
href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" \
target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></div>
 </blockquote><div>  </div>
</div>
</div>
</div>
<div>  </div>
<div>----<br></div>
<div>Cyrus Home Page: <a href="http://www.cyrusimap.org/" \
target="_blank">http://www.cyrusimap.org/</a><br></div> <div>List Archives/Info: <a \
href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" \
target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br></div> \
<div>To Unsubscribe:<br></div> <div><a \
href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" \
target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></div>
 </blockquote></div>
</div>
</blockquote><div>  </div>
<div>----<br></div>
<div>Cyrus Home Page: <a href="http://www.cyrusimap.org/" \
target="_blank">http://www.cyrusimap.org/</a><br></div> <div>List Archives/Info: <a \
href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" \
target="_blank">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br></div> \
<div>To Unsubscribe:<br></div> <div><a \
href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" \
target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></div>
 </blockquote><div>  </div>
</div>
</div>
</div>
</blockquote></div>
</div>
</blockquote><div>  </div>
</div></div></div>

</blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic