# 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.2 2009/10/02 14:01:31 nagler Exp $ Request('initialize_fully'); req()->set_realm_and_user('fourem'); my($domain) = '@model.realmmail.bunit'; my($fourem) = req()->format_email; [ class() => [ execute_receive => [ [req(), <<"EOF", 'FORUM_MAIL_REFLECTOR'] => [], From: a$domain Message-ID: Date: Sun, 1 May 2005 10:11:41 -0600 To: $fourem Subject: test RealmMail action Message Body EOF ], sub { return req(qw(Model.RealmMail message_id)) eq "a$domain"; } => 1, execute_receive => [ [req(), <<"EOF", 'FORUM_MAIL_REFLECTOR'] => [], From: a$domain Date: Sun, 1 May 2005 12:11:41 -0600 Subject: test RealmMail action To: $fourem Message-Id: Message Body EOF ], ], ];