On Tue, Jun 28, 2005 at 07:17:25PM +0300, Kostas Zorbadelos wrote:
> I think it is best to start a new thread about this one.
> 
> Using the program illustrated in the thread
> http://lists.gnu.org/archive/html/bug-mailutils/2005-06/msg00034.html
> (read a mailbox and for each message execute a sieve script) with the
> alpha sources of mailutils (mailutils-20050623.tar.gz) I get the
> following error in the redirect action:
> 
> Sergey Poznyakoff <[EMAIL PROTECTED]>     Re: [bug-mailutils] [Error] 
> fileinto: cannot save to mailbox: Function not implemented
> redirect: 1: cannot get envelope sender: Requested item not found
> 

I traced the issue a bit further and I can see that the failing
function is envelope_sender() in sieve_get_message_sender(). The stack
trace is:

(gdb) bt
#0  sieve_get_message_sender (msg=0x805ba58, ptext=0xbffff830)
    at actions.c:116
#1  0x4008101c in sieve_action_redirect (mach=0x804b0d8, args=0x8050110, 
    tags=0x0) at actions.c:386
#2  0x40083e9e in instr_run (mach=0x804b0d8) at runtime.c:85
#3  0x40083f33 in instr_action (mach=0x804b0d8) at runtime.c:98
#4  0x40084565 in sieve_run (mach=0x804b0d8) at runtime.c:283
#5  0x40084828 in sieve_message (mach=0x804b0d8, msg=0x805ba58)
    at runtime.c:362
#6  0x08048f05 in main (argc=3, argv=0xbffff9c4) at testsieve.c:100
(gdb) n

My sieve script is shown below:

> require ["fileinto","redirect"];
> 
> if header :contains "from" "Sergey"
>  {
>   redirect "[EMAIL PROTECTED]"; 
>  }

Is this a bug or I am missing something?


-- 
  Kostas Zorbadelos
  Systems Designer/Developer, Otenet SA 
  [EMAIL PROTECTED] contact: kzorba (at) otenet.gr
  
  Out there in the darkness, out there in the night
  out there in the starlight, one soul burns brighter
  than a thousand suns.



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

Reply via email to