bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] Error in redirect sieve action


From: Kostas Zorbadelos
Subject: [bug-mailutils] Error in redirect sieve action
Date: Tue, 28 Jun 2005 19:17:25 +0300
User-agent: Mutt/1.5.9i

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 <address@hidden>     Re: [bug-mailutils] [Error] fileinto: 
cannot save to mailbox: Function not implemented
redirect: 1: cannot get envelope sender: Requested item not found

By tracing the issue with gdb (again it would be great if I could
produce a statically linked version of my program) I can see an issue
in envelope_sender(). I will try to investigate further but any
recommendations are highly welcome

Attached is my filter sieve script

=============== GDB output ====================================================

address@hidden(1)[07:06 PM]~/WorkingArea/trunk/mda>gdb testsieve
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library 
"/lib/tls/libthread_db.so.1".

(gdb) break sieve_action_redirect
Function "sieve_action_redirect" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (sieve_action_redirect) pending.
(gdb) run file://home/kzorba/Maildir/ filters.sieve
Starting program: /home/kzorba/WorkingArea/trunk/mda/testsieve 
file://home/kzorba/Maildir/ filters.sieve
[Thread debugging using libthread_db enabled]
[New Thread 1076033504 (LWP 29898)]
Breakpoint 2 at 0x40080e89: file actions.c, line 350.
Pending breakpoint "sieve_action_redirect" resolved
Giannakis Eleftherios <address@hidden>        google search tips
Christos KK Loverdos <address@hidden>       MIT OpenCourseWare
Dimitris Paouris <address@hidden>      yphresia relay.otenet.gr
"Papanikolaou Pandelis" <address@hidden>    Weekly Meeting
"HR Bulletin" <address@hidden> =?iso-8859-7?B?yeH08fzyIMXx4+Hz3+Hy?=
Kostas Zorbadelos <address@hidden>    Interesting link
Costas Tavernarakis <address@hidden>   Re: Sendmail configs centralized...
Vassilis Boulogiorgos <address@hidden>   Calendar + Access Manager Servers 
issues
Sergey Poznyakoff <address@hidden>     Re: [bug-mailutils] [Error] fileinto: 
cannot save to mailbox: Function not implemented
[Switching to Thread 1076033504 (LWP 29898)]

Breakpoint 2, sieve_action_redirect (mach=0x804b0d8, args=0x8050108, tags=0x0) 
at actions.c:350
350       message_t msg, newmsg = NULL;
(gdb) s
351       address_t addr = NULL, from = NULL;
(gdb) s
352       header_t hdr = NULL;
(gdb) n
355       mailer_t mailer = sieve_get_mailer (mach);
(gdb) n
357       sieve_value_t *val = sieve_value_get (args, 0);
(gdb) n
358       if (!val)
(gdb) n
364       rc = address_create (&addr, val->v.string);
(gdb) n
365       if (rc)
(gdb) n
374       sieve_log_action (mach, "REDIRECT", _("to %s"), val->v.string);
(gdb) n
375       if (sieve_is_dry_run (mach))
(gdb) n
378       msg = sieve_get_message (mach);
(gdb) n
379       if (check_redirect_loop (msg))
(gdb) n
386       rc = sieve_get_message_sender (msg, &fromaddr);
(gdb) s
sieve_get_message_sender (msg=0x8055340, ptext=0xbffff840) at actions.c:111
111       rc = message_get_envelope (msg, &envelope);
(gdb) n
112       if (rc)
(gdb) n
115       rc = envelope_sender (envelope, NULL, 0, &size);
(gdb) n
116       if (rc)
(gdb) n
117         return rc;
(gdb) n
124     }
(gdb) bt
#0  sieve_get_message_sender (msg=0x8055340, ptext=0xbffff840) at actions.c:124
#1  0x4008101c in sieve_action_redirect (mach=0x804b0d8, args=0x8050108, 
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=0x8055340) at runtime.c:362
#6  0x08048f05 in main (argc=3, argv=0xbffff9d4) at testsieve.c:100
(gdb)                                                                 

-- 
  Kostas Zorbadelos
  Systems Designer/Developer, Otenet SA 
  address@hidden 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.

Attachment: filters.sieve
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]