From 593d23d0b5dc24cce8882aee0e28d4af37b5069c Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 20 Jul 2004 09:45:28 +0000 Subject: [PATCH] correct exchange of from and to darcs-hash:20040720094528-5007d-94cea28707285b00d43a4538c6655d6b2f320e85.gz --- src/org/ibex/mail/Message.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/ibex/mail/Message.java b/src/org/ibex/mail/Message.java index 66c4188..c9fc2ae 100644 --- a/src/org/ibex/mail/Message.java +++ b/src/org/ibex/mail/Message.java @@ -31,8 +31,8 @@ public class Message extends MIME.Part { // Envelope ////////////////////////////////////////////////////////////////////////////// public final Envelope envelope; - public static class Envelope { - public Envelope(Address to, Address from, Date arrival) { this.to = to; this.from = from; this.arrival = arrival; } + public static class Envelope extends org.ibex.js.JSReflection { + public Envelope(Address from, Address to, Date arrival) { this.to = to; this.from = from; this.arrival = arrival; } public final Date arrival; public final Address to; public final Address from; @@ -40,7 +40,7 @@ public class Message extends MIME.Part { if (e.from != null && e.to != null) return e; Address to = e.to == null ? Address.parse(h.get("X-org.ibex.mail.headers.envelope.To")) : e.to; Address from = e.from == null ? Address.parse(h.get("X-org.ibex.mail.headers.envelope.From")) : e.from; - return new Envelope(to, from, e.arrival); + return new Envelope(from, to, e.arrival); } } -- 1.7.10.4