My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.joe_e.servlet.mail.notjoe_e;

import javax.mail.Transport;
import javax.mail.MessagingException;
import javax.mail.internet.InternetAddress;

public class TransportAgent {

String username;

public TransportAgent() {
username = null;
}

public void send(javax.mail.Message msg) throws MessagingException {
if (username == null) {
throw new MessagingException("No associated username, Someone who isn't logged in is trying to send mail!");
}
msg.setFrom(new InternetAddress(username+"@boink.joe-e.org"));
Transport.send(msg);
}

public void setUsername(String u) {
username = u;
}
}

Change log

r369 by krish.akshay on Jan 30, 2010   Diff
fixed a bunch of minor bugs in the app
that were found during the review,
returning after redirects, checking for
address and subject spoofing, etc.
Go to: 
Project members, sign in to write a code review

Older revisions

r346 by krish.akshay on Jan 26, 2010   Diff
updated taming information and cleaned
up a bunch of source code
r326 by krish.akshay on Nov 2, 2009   Diff
lots of changes at the last minute,
they are not well done... namely
running Caja on all inputs, made a
capability to send mail, to verify
that only compose can do that
All revisions of this file

File info

Size: 649 bytes, 26 lines
Powered by Google Project Hosting