You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Kenny Smith <ja...@journalscape.com> on 2003/08/24 08:53:04 UTC

[PATCH] JDBCVirtualUserTable - One-to-Many Mapping, Flexible SQL

Hello all,

I made this change sometime late last year but never submitted it. :/ 
Any suggestions or design considerations are welcome. I focused on a 
working solution as opposed to the most efficient, elegant solution so 
it probably could be better.

The two major features included in the patch are:

1) One to Many Mapping - I've changed the destination address field to 
be a TEXT field instead of a VARCHAR so that it can contain multiple 
addresses (separated by \n). The payload of the TEXT field is split on 
\n, each element is trimmed and then the mail is delivered to the 
resulting address.

2) Flexible SQL - Previously, the parameters bound into the query were 
hardcoded so the possibilities for what kind of query to use were 
highly limited. This change allows the mailet configuration to declare 
what params are bound in what order (user and host parameters only).  
Obviously, the possible queries are still limited because you can only 
bind user and host, but this improves the flexibility a great deal.

Again, any suggestions, criticism, questions are all welcome.

Thanks,
Kenny Smith
JournalScape.com



RE: [PATCH] JDBCVirtualUserTable - One-to-Many Mapping, Flexible SQL

Posted by "Noel J. Bergman" <no...@devtech.com>.
The jar file got through.  Don't know what was wrong with the .patch file.

	--- Noel

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [PATCH] JDBCVirtualUserTable - One-to-Many Mapping, Flexible SQL

Posted by Kenny Smith <ja...@journalscape.com>.
The first mail had "JDBCVirtualUserTable.java.patch" and the second had 
JDBCVirtualUserTablePatch.jar

:/

Kenny

> What was the original attachment name?  There is some filtering on the 
> list
> server.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


RE: [PATCH] JDBCVirtualUserTable - One-to-Many Mapping, Flexible SQL

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I've checked my sent mail 3 or 4 times now and I did attach the patch
> to both of my messages. Is the list software stripping out the
> attachment?

What was the original attachment name?  There is some filtering on the list
server.

	--- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [PATCH] JDBCVirtualUserTable - One-to-Many Mapping, Flexible SQL

Posted by Kenny Smith <ja...@journalscape.com>.
Hi Noel,

I've checked my sent mail 3 or 4 times now and I did attach the patch 
to both of my messages. Is the list software stripping out the 
attachment?

Kenny

> We received no such attachment.  Please resend, with the attachment in 
> a
> .ZIP/.JAR or other.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [PATCH] JDBCVirtualUserTable - One-to-Many Mapping, Flexible SQL

Posted by Kenny Smith <ja...@journalscape.com>.
Sorry, I could have sworn I attached it. Here it is in a jar.


RE: [PATCH] JDBCVirtualUserTable - One-to-Many Mapping, Flexible SQL

Posted by "Noel J. Bergman" <no...@devtech.com>.
Kenny,

We received no such attachment.  Please resend, with the attachment in a
.ZIP/.JAR or other.

	--- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org