Package mireka.address

Examples of mireka.address.ReversePath


    }

    @Override
    public void from(String from) throws RejectException {
        try {
            ReversePath reversePath = convertToReversePath(from);
            filterChain.getHead().from(reversePath);
            mailTransaction.from = from;
        } catch (RejectExceptionExt e) {
            throw e.toRejectException();
        }
View Full Code Here


        Srs srs = new Srs();
        srs.setDefaultRemotePart(new DomainPart("example.net"));
        srs.setLocalDomains(localDomains);
        srs.setSecretKey("19AF");

        ReversePath originalReversePath =
                new MailAddressFactory()
                        .createReversePathAlreadyVerified("john@third-party.example.org");
        Recipient originalRecipient =
                new MailAddressFactory()
                        .createRecipientAlreadyVerified("jane@example.com");

        ReversePath newReversePath =
                srs.forward(originalReversePath, originalRecipient);

        assertEquals("SRS0=NKFJ=2I=third-party.example.org=john@example.com",
                newReversePath.getSmtpText());
    }
View Full Code Here

        Srs srs = new Srs();
        srs.setDefaultRemotePart(new DomainPart("we.example.net"));
        srs.setLocalDomains(localDomains);
        srs.setSecretKey("19AF");

        ReversePath originalReversePath =
                new MailAddressFactory()
                        .createReversePathAlreadyVerified("SRS0=uwWh=2I=source.example.com=john@forwarder.example.com");
        Recipient originalRecipient =
                new MailAddressFactory()
                        .createRecipientAlreadyVerified("jane@we.example.net");

        ReversePath newReversePath =
                srs.forward(originalReversePath, originalRecipient);

        assertEquals(
                "SRS1=jdhx=forwarder.example.com==uwWh=2I=source.example.com=john@we.example.net",
                newReversePath.getSmtpText());
    }
View Full Code Here

        Srs srs = new Srs();
        srs.setDefaultRemotePart(new DomainPart("we.example.net"));
        srs.setLocalDomains(localDomains);
        srs.setSecretKey("19AF");

        ReversePath originalReversePath =
                new MailAddressFactory()
                        .createReversePathAlreadyVerified("SRS1=AAAA=forwarder.example.com==uwWh=2I=source.example.com=john@bouncer.example.net");
        Recipient originalRecipient =
                new MailAddressFactory()
                        .createRecipientAlreadyVerified("jane@we.example.net");

        ReversePath newReversePath =
                srs.forward(originalReversePath, originalRecipient);

        assertEquals(
                "SRS1=jdhx=forwarder.example.com==uwWh=2I=source.example.com=john@we.example.net",
                newReversePath.getSmtpText());
    }
View Full Code Here

        assertEquals(rp0, reverse(srs, rp2));
    }

    private String forward(Srs srs, String originalReversePath,
            String originalRecipient) {
        ReversePath originalReversePathObject =
                new MailAddressFactory()
                        .createReversePathAlreadyVerified(originalReversePath);
        Recipient originalRecipientObject =
                new MailAddressFactory()
                        .createRecipientAlreadyVerified(originalRecipient);

        ReversePath newReversePath =
                srs.forward(originalReversePathObject, originalRecipientObject);
        return newReversePath.getSmtpText();
    }
View Full Code Here

TOP

Related Classes of mireka.address.ReversePath

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.