forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Brondsema <d...@brondsema.net>
Subject Re: forrestbot email notification fails
Date Wed, 28 Jul 2004 11:05:35 GMT
Diwaker Gupta wrote:
> 
>>Can you create an ant buildfile that just does a <mail> (with attachment)
>>and try running that with the ant that forrest includes?  Run with -v and
>>-d parameters to give extra debugging output.
> 
> 
> Apparently this seems to work:
> <?xml version="1.0" encoding="UTF-8"?>
> <project basedir="." default="all" name="try">
>     <target name="mail">
>         <mail from="diwaker@ucsd.edu"
>             tolist="dgupta@cs.ucsd.edu"
>             subject="Results of nightly build"
>             files="build.xml"/>
>     </target>
> </project>
> 
> mail:
>      [mail] Failed to initialise MIME mail: javax/mail/MessagingException
>      [mail] Using UU mail
>      [mail] Sending email: Results of nightly build
>      [mail] From diwaker@ucsd.edu
>      [mail] ReplyTo []
>      [mail] To [dgupta@cs.ucsd.edu]
>      [mail] Cc []
>      [mail] Bcc []
>      [mail] Sent email with 1 attachment
> 
> BUILD SUCCESSFUL
> 
> After this, I ran forrestbot with -v and -d flags, and here's what I got:
> notify.email:
> Setting project property: NOW -> 27 July 01:57 PM
> Override ignored for property DSTAMP
> Override ignored for property TSTAMP
> Override ignored for property TODAY
> Property ${ant.project.name} has not been set
> Failed to initialise MIME mail: org.apache.tools.ant.taskdefs.email.MimeMailer
> Using UU mail
> Sending email: ForrestBot build for ${ant.project.name} succeeded
> From Forrestbot
> ReplyTo []
> To [dgupta@cs.ucsd.edu]
> Cc []
> Bcc []
> Failed to send email
> 
> So it seems that it IS trying to use UU mail, however, it fails
> because of some other reason -- in this case, I think its because the
> From address is not set properly. It should be a well formed email
> address right?

Good thought!  The mail daemon probably rejects the email because of a 
bad 'from' address.  Some mail daemons might even restrict based on 
domain.  Another thing to make configurable I guess.

-- 
Dave Brondsema : dave@brondsema.net
http://www.splike.com : programming
http://csx.calvin.edu : student org
http://www.brondsema.net : personal

Mime
View raw message