i would Looooooove to help..im doing a listserv for my school project.
Im planning to use ejb instead of town to store and retrieve email.
I probably could offer some help on the mailet/matcher stuff
.z00t
Serge Knystautas wrote:
> ----- Original Message -----
> From: "Rafizan Baharum" <[EMAIL PROTECTED]>
> > any idea on how to do maximum size limit on attachment?
>
> Well, there's numbers of places and ways you could do this.
>
> 1. You can set a maximum message size within SMTP. This could be a
> configuration setting in the SMTP handler, and in an EHLO request from the
> remote client, you can indicate the largest message you accept. Then we'd
> have to write a simple little inputstream to count the number of bytes and
> throw an exception if you hit a size limit (when trying to read the
> message). I'd think you'd want to do it this way so you would prevent
> yourself from receiving a large message before you got too large a message
> (rather than receiving the complete message and checking the size of it
> using the MimeMessage.size()).
>
> I think this feature would be nice to have at some point.
>
> 2. You can set a cap on the mailboxes, like a quota, e.g., so your mailbox
> can only be 2 megs large. This would be something set in the local delivery
> code (or perhaps in the mail repository... I'm not sure what's best). Then
> if you tried to add a message that would make your mailbox exceed your
> quota, reject the message (and give the reason why).
>
> I think this is also a nice feature to add.
>
> 3. You could write a little matcher that checks the size of the message and
> does something if it's a certain. This is the least optimized, but most
> flexible way to do things (you could use it however you want).
>
> This might be nice to have.
>
> So many things to do, so little time. :)
>
> Serge Knystautas
> Loki Technologies
> http://www.lokitech.com/
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]