<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">Hi,</span></span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;"><br>
</span></span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">Im on Manjaro linux fully up to date running</span></span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;"><br>
</span></span></div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">dovecot 2.3.1-2
</span></span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family:monospace">pigeonhole 0.5.1-2</span></div>
</blockquote>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family:monospace"><br>
</span>All is running well except I am having problems with fileinto - it refuses to use variables, and mailboxexists is also failing for me.<br>
<br>
Im just dealing with plus addressing - should be simple but the behaviour Im experiencing isnt right.<br>
<br>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>require ["variables", "envelope", "fileinto", "subaddress", "mailbox"];</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>if envelope :matches :detail "to" "*" {</div>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>    set :lower "name" "${1}";</div>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>}</div>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>fileinto :create "folder3";</div>
</div>
</blockquote>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span></span><br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This works, but changing the last line to:<br>
<br>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">fileinto :create "${name}";</span></div>
</blockquote>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none"><br>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">fails and files into inbox. As does:<br>
<br>
</span></div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none"><span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">fileinto
 :create "${1}";</span></span></div>
</blockquote>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none"><br>
It makes no difference if the fileinto is placed inside the if statement or otherwise. <span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">Using sieve-test suggests the basic script</span><span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none"><span> </span>it
 should work and traces show the right action.</span><br>
<br>
On a related matter the script Im actually trying to get to work is:<br>
<br>
<span></span></span></div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none"><span>require ["variables", "envelope", "fileinto", "subaddress", "mailbox"];</span></span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div><br>
</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>if envelope :matches :detail "to" "*" {</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>    set :lower "name" "${1}";</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>}</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>if mailboxexists "${name}" {</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>        fileinto :create "${name}";</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>}</div>
</span></div>
</blockquote>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div><br>
</div>
<div>But fails and files in the inbox.<br>
</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none"><br>
Modifying the script to:<br>
<br>
</span></div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none"><span>require ["variables", "envelope", "fileinto", "subaddress", "mailbox"];</span></span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div><br>
</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>if envelope :matches :detail "to" "*" {</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>    set :lower "name" "${1}";</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>}</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div><br>
</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>if mailboxexists "${name}" {</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>        fileinto :create "folder7";</div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>} else { </div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">
<div>  fileinto :create "folder8"; </div>
</span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none"><span>}</span></span></div>
</blockquote>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none"><br>
Files into folder8. So the mailboxexists is failing.<br>
<br>
<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">     ## Started executing script 'plus-addressing'
</span><br>
  3: envelope test <br>
  3:   starting `:matches' match with `i;ascii-casemap' comparator: <br>
  3:   getting `to' part from message envelope <br>
  3:   extracting `detail' part from address <test+folder4@test.net> <br>
  3:   matching value `folder4' <br>
  3:     with key `*' => 1 <br>
  3:   finishing match with result: matched <br>
  3: jump if result is false <br>
  3:   not jumping <br>
  4: set command <br>
  7:   modify :lower "folder4" => "folder4" <br>
  7:   assign `name' [0] = "folder4" <br>
  7: mailboxexists test <br>
  7:   mailbox `folder4' cannot be opened <br>
  7:   some mailboxes are unavailable <br>
  7: jump if result is false <br>
  7:   jumping to line 9 <br>
 10: fileinto action <br>
 10:   store message in mailbox `folder8' <br>
     ## Finished executing script 'plus-addressing'<br>
<br>
</span>Here folder4 actually does exist - so the sieve-test confirms that issue. <span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none"> Im at a loss as to whats going on. Im particularly
 perplexed by the difference in behaviour between sieve-test and the result under the live server.</span><br>
<br>
<br>
Any ideas?<br>
<br>
</span></div>
</body>
</html>