On Fri, 2006-02-17 at 15:09 +0300, Oleg Lapshin wrote:
> > Ok, it's because GStrings don't self-initialize like GLists do. Bah. I'm
> > just going to zap the set/get_envelope functions I wrote last week;
> > get_header("Return-Path") already has exactly the same information.
> 
> OK
> I download revision 1986
> 
> It works!
> And there are no more Glib-CRITICAL errors!!!!!!!!

Heh, I guess they were my fault, from the wrong use of GString :-[

> But, my sieve script:
>    require "subaddress";
>    if envelope :detail "to" "spam1" {
>    fileinto "SPAM";}
> don't work ;(
> 
> As I see in sort_getenvelope function:
>         sieve2_setvalue_string(s, "envelope",
>                 dbmail_message_get_header(m->message, "Return-Path"));
> and think, that "if envelope :detail" try to recognize Return-Path line from 
> header of message - sender address, instead of recipient (in my case)...
> Is it right?
> or I am mistaken at all ...

Umm. *oh* Wow, ok, that's really stupid of me. The "envelope" is this
case is the envelope recipient, not the envelope sender. Duh.

Let's see how it works in SVN now...

Incidentally, I'd do some actual testing myself, but I'm shoehorning the
coding in during study breaks this week ;-)

Aaron


Reply via email to