I will take a look at this later. Knee deep in search changes.

--
 http://alan.blog-city.com/

-----Original Message-----
From: Alex Skinner <[email protected]>
Sender: [email protected]
Date: Tue, 26 Jul 2011 14:26:14 
To: Open BlueDragon<[email protected]>
Reply-To: [email protected]
Subject: [OpenBD] Re: CFSMTP multi instance

Any joy with this one Alan ?

I also have a question with regard to filtering i can't for the life
of me get the filter to do anything

given the following

<cfsmtp action="start" port="8025"
cfcmail="services.smtplistener.service"
cfcfilter="services.smtplistener.service">

My service has two functions as follows

        <cffunction name="acceptmailfrom">
                <cfargument name="email">
                <cfset oMailHandler=CreateObject("component","mailHandler")>
                <cfreturn oMailHandler.acceptmailfrom(arguments.email)>
        </cffunction>

        <cffunction name="acceptmailto">
                <cfargument name="email">
                <cfset oMailHandler=CreateObject("component","mailHandler")>
                <cfreturn oMailHandler.acceptmailto(arguments.email)>
        </cffunction>

And then the corresponding CFC has the functions as follows

<cffunction name="acceptmailfrom" access="public"
returntype="boolean">
        <cfargument name="email" type="string" required="yes">
        <!--- for now accept mail from everyone --->
        <cfreturn true>
</cffunction>

<cffunction name="acceptmailto" access="public" returntype="boolean">
        <cfargument name="email" type="string" required="yes">
        <!--- for now accept mail only to one address --->
        <cfif arguments.email eq "[email protected]">
                <cfreturn true>
        <cfelse>
                <cfreturn false>
        </cfif>
</cffunction>

Currently I'm expecting emails sent to an address other than the one
specified to just be disregarded but actually they get processed ?

Any ideas.

Thanks

Alex

On Jul 22, 9:14 pm, "Alan Williamson" <[email protected]> wrote:
> I'll take a look
> --
>  http://alan.blog-city.com/
>
>
>
> -----Original Message-----
> From: Alex Skinner <[email protected]>
>
> Sender: [email protected]
> Date: Fri, 22 Jul 2011 21:12:27
> To: <[email protected]>
> Reply-To: [email protected]
> Subject: Re: [OpenBD] CFSMTP multi instance
>
> Hi Alan,
>
> This looks awesome, just about to plumb in the new functions into my app and
> give them a try
>
> In testing for backwards compatibilty of  CFSMTP (so my app as it currently
> exists)
>
>    - <cfsmtp action="status" port="8025"
>    cfcmail="services.smtplistener.service"> previously when not running the
>    structure would exist and a key called *running* would exist with a value
>    of *no* as well as the other keys in the struct, now the struct is empty
>    - Calling the stop action seems to have no affect <cfsmtp action="stop"
>    port="8025" cfcmail="services.smtplistener.service"> calling status shows 
> it
>    as still running
>
> Many thanks
>
> Alex
> On 22 July 2011 09:53, Alan Williamson <[email protected]> wrote:
>
> > **
> > Alex, i updated this last night:
>
> >    - Support for multiple servers
> >    - Functions in addition to tag
> >    - Updated the manual page
>
> >http://www.openbd.org/manual/?/plugin_cfsmtp
>
> > The <CFSMTP> tag is for backward compatibility and can only be used to
> > create a single server (name: default).   The functions will let you startup
> > multiple servers.
>
> > Available now from the download site.  You only need to update your plugin
> > jar.
>
> > Alan Williamson wrote:
>
> > It_should_ be able to start ... but looks like it can't.
>
> > I will take a look at this later on this evening and see if there is
> > anything obvious.
>
> >   --
> > official tag/function reference:http://openbd.org/manual/
> > mailing list -http://groups.google.com/group/openbd?hl=en
>
> --
> Alex Skinner
> Managing Director
> Pixl8 Interactive
>
> Tel: +448452600726
> Email: [email protected]
> Web: pixl8.co.uk
>
> --
> official tag/function reference:http://openbd.org/manual/
>  mailing list -http://groups.google.com/group/openbd?hl=en

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to