commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Quinton McCombs" <qmcco...@nequalsone.com>
Subject RE: [email] email bounce address?
Date Sun, 13 Apr 2003 23:15:33 GMT
I would rather not have subclasses depending upon that method unless
there is a compelling reason to do so.

> -----Original Message-----
> From: Joe Germuska [mailto:Joe@Germuska.com] 
> Sent: Friday, April 11, 2003 1:54 PM
> To: Jakarta Commons Developers List
> Subject: RE: [email] email bounce address?
> 
> 
> Patch submitted: see 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18968
> 
> Would it be worth making getMailSession() protected instead of 
> private?  I don't have a strong argument for it, but since Email is 
> an abstract class, it seems like something which subclasses might 
> reasonably want some control over.
> 
> I could totally understand the "wait until someone needs it" 
> argument; just curious.
> 
> Joe
> 
> 
> >  > Sometimes my system needs to send an email from a 
> certain user, but
> >>  if the message bounces, I need the bounce to go to 
> another address  
> >> instead of to the sender.  It turns out that the way to do 
> this is to  
> >> set the "mail.smtp.from" property in the Session object before
> >  > sending a message.
> ...
> >  > Which brings up just one other thing: in getMailSession(), there 
> > are
> >>  calls to System.setProperty().  This makes me a little 
> >> uncomfortable;  is there any reason not to make a new Properties 
> >> based off of  System.getProperties, and then to set the 
> values on a 
> >> more transient  object?
> >>
> >>  Opinions?
> >
> >All of this sounds good to me.
> 
> 
> -- 
> --
> Joe Germuska            
> Joe@Germuska.com  
> http://blog.germuska.com    
> "If nature worked that way, the universe would crash all the time." 
> 	--Jaron Lanier
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
> 
> 


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


Mime
View raw message