# Copyright (c) 2006 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: RealmMail.bunit,v 1.7 2011/03/15 17:43:35 nagler Exp $ PropertyModel(); my($root, $parent); my($domain) = '@model.realmmail.bunit'; my($subject) = 'Model.RealmMail.bunit subject:'; my($subject_lc) = lc($subject); $subject_lc =~ s/://; req()->set_realm('fourem-sub1'); [ create_from_rfc822 => [ [\(<<"EOF")] From: a$domain Message-ID: Date: Sun, 1 May 2005 10:11:41 -0600 Subject: $subject Body EOF => [{ message_id => "a$domain", 'Model.RealmFile' => { modified_date_time => '2453492 58301', }, thread_root_id => sub {shift->get('object')->get('realm_file_id')}, thread_parent_id => undef, from_email => "a$domain", subject => $subject, subject_lc => $subject_lc, }], sub {$root = shift->get('object')->get('realm_file_id'); [\(<<"EOF")]} From: b$domain Message-ID: In-Reply-To: Date: Sun, 1 May 2005 10:11:42 -0600 Subject: Re: $subject Body EOF => [{ message_id => "b$domain", 'Model.RealmFile' => { modified_date_time => '2453492 58302', }, thread_root_id => sub {$root}, thread_parent_id => sub {$root}, from_email => "b$domain", subject => $subject, }], sub {$parent = shift->get('object')->get('realm_file_id'); [\(<<"EOF")]} From: c$domain Message-ID: References: Date: Sun, 1 May 2005 10:11:43 -0600 Subject: [joe] Re: $subject Body EOF => [{ message_id => "c$domain", 'Model.RealmFile' => { modified_date_time => '2453492 58303', }, thread_root_id => sub {$root}, thread_parent_id => sub {$parent}, from_email => "c$domain", subject => $subject, }], [\(<<"EOF")] From: d$domain Message-ID: References: Date: Sun, 1 May 2005 10:11:43 -0600 Subject: [joe] Re: $subject Body EOF => [{ message_id => "d$domain", 'Model.RealmFile' => { modified_date_time => '2453492 58303', }, thread_root_id => sub {$root}, thread_parent_id => sub {$parent}, from_email => "d$domain", subject => $subject, }], ], load => [ [{message_id => "b$domain"}] => not_die(), ], create_from_rfc822 => [ [\(<<'EOF')] => qr{no-message-id}i, From: d@d.d Message-ID: Date: Sun, 1 May 2005 10:11:44 -0600 Subject: [joe] Re: any subject Body EOF ], ];