james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oki DZ <ok...@pindad.com>
Subject Return to sender, address unknown
Date Thu, 06 Sep 2001 07:04:44 GMT
Hi,

Just in case somebody needs it...

package org.apache.james.transport.mailets;
/**
 * ReturnToSender.java
 *
 *
 * Created: Wed Sep  5 09:47:29 2001
 *
 * @author <a href="mailto:okidz@pindad.com">Oki DZ</a>
 * @version
 */
import java.io.*;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;

import org.apache.james.*;
import org.apache.james.transport.*;
import org.apache.james.transport.mailets.*;
import org.apache.mailet.*;

public class ReturnToSender extends NotifySender {

    public void service(Mail mail) throws MessagingException {
	super.service(mail);
	mail.setState(Mail.GHOST);
    }
    
    public String getMailetInfo() {
	return "ReturnToSender Mailet";
    }
} 

It's "return to sender", nobody served by your email server is supposed to
received it, right?

"She wrote upon it:
Return to sender, address unknown.
No such number, no such zone."

Oki





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


Mime
View raw message