forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diwaker Gupta <diwakergu...@gmail.com>
Subject Re: forrestbot email notification fails
Date Tue, 27 Jul 2004 20:58:41 GMT
> Looks fine to me.  What version OS and version of Java are you using?

$ uname -a
Linux resolute 2.6.7-1-686-smp #1 SMP Thu Jul 8 06:08:37 EDT 2004 i686 GNU/Linux

Running Debian unstable

$ java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-beta)
Java HotSpot(TM) Client VM (build Blackdown-1.4.1-beta, mixed mode)

> 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?
-- 
Diwaker Gupta
http://resolute.ucsd.edu/diwaker

Mime
View raw message