Christian Schuhegger <[EMAIL PROTECTED]> wrote:

> require ["fileinto"];
> if header :contains "Subject" "Some text" {
>       fileinto "imap://user:[EMAIL PROTECTED]/foldername";
>       discard;
> }

Could you give some more info, please? What is the type of the input
mailbox (is it imap:// as well)? How exactly do you invoke sieve? 

> As a result the mails are really copied into the new folder, but the
> mails are not deleted in the original folder. If I use the verbose and
> debug options I see something like:
> 
> ... FILEINTO on msg uid 0: ...
> ... DISCARD on msg uid 0: marking as deleted ...
> 
> The strange thing is that uid is ALWAYS for every message which is
> matched by the condition 0.

I'm not sure what you mean by "condition 0". 0 here means the message
UID number. Actually, 0 is used as a replacement when Mailutils was
unable to retrieve the uid. 
 
> I think the problem is that all messages seem to have the same "uid"
> equal to 0 and therefore the message is not really deleted.

Although it is indeed strange that messages don't have uids, this cannot
be the reason for them not being deleted.

> Did anybody try to do something similar already with the GNU Mailutils
> with success?

Yes, it is how my mailsystem works.

Regards,
Sergey


_______________________________________________
Bug-mailutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Reply via email to