You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Marco Tedone <mt...@jemos.org> on 2003/05/08 23:31:50 UTC

Mailet question

Hi, I'm writing a Mailet to manage the maxSize per user. It should have a structure like the following:

<mailet match="foo" class="bar">
  
   <user>Alfa</user>
   <maxSize>10000</maxSize>

   <user>Beta</user>
   <maxSize>15000</maxSize>

   <user>...</user>
   <maxSize>...</maxSize>

</mailet>

As you can see the mailet can contain any pair of <user>/<maxSize> elements; is it possible to implement it following the Mailet standards? the GenericMailet.getInitParameter(String) accepts obviously only one string parameter, while the getInitParameters() method returns an Iterator. Now, I'm wondering shall I have an iterator showing <user><maxSize><user><maxSize>... what the getInitParameter(String) method would return; would it be the case to implement a getInitParameter(getInitParameters()) which returns an array of values?

Regards,

Marco