Package mireka.address

Examples of mireka.address.Recipient


            new ArrayList<RemotePartSpecification>();

    @Override
    public FilterReply verifyRecipient(RecipientContext recipientContext)
            throws RejectException {
        Recipient recipient = recipientContext.recipient;
        if (recipient instanceof GlobalPostmaster)
            return FilterReply.NEUTRAL;
        else if (recipient instanceof RemotePartContainingRecipient)
            return verifyRemotePartContainingRecipient((RemotePartContainingRecipient) recipient);
        else
View Full Code Here


        }

        private Destination lookupDestinationByResolvingAliases(
                Recipient recipient) {
            Destination destination;
            Recipient canonicalRecipient = recipient;
            int lookups = 0;
            while (true) {
                if (lookups > 10) {
                    throw new ConfigurationException(
                            "Recipient aliases may created a loop for "
View Full Code Here

    }

    @Override
    public void recipient(String recipientString) throws RejectException {
        try {
            Recipient recipient = convertToRecipient(recipientString);
            RecipientContext recipientContext =
                    new RecipientContext(mailTransaction, recipient);
            FilterReply filterReply =
                    filterChain.getHead().verifyRecipient(recipientContext);
            if (filterReply == FilterReply.NEUTRAL) {
View Full Code Here

        private void setupEnvelope() {
            resultMail.arrivalDate = new Date();
            resultMail.scheduleDate = resultMail.arrivalDate;
            resultMail.from = new NullReversePath();
            Recipient recipient;
            recipient =
                    new MailAddressFactory()
                            .reversePath2Recipient(originalMail.from);
            resultMail.recipients.add(recipient);
        }
View Full Code Here

        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);
View Full Code Here

        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);
View Full Code Here

        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);
View Full Code Here

    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);
View Full Code Here

        return newReversePath.getSmtpText();
    }

    private String reverse(Srs srs, String srsRecipient)
            throws InvalidSrsException {
        Recipient recipient =
                new MailAddressFactory()
                        .createRecipientAlreadyVerified(srsRecipient);
        Recipient newRecipient = srs.reverse(recipient);
        return ((RemotePartContainingRecipient) newRecipient).getMailbox()
                .getSmtpText();
    }
View Full Code Here

        @Override
        public void recipient(RecipientContext recipientContext)
                throws RejectExceptionExt {
            try {
                Recipient originalSource =
                        srs.reverse(recipientContext.recipient);
                sourceMailboxes.add(originalSource);
            } catch (InvalidSrsException e) {
                logger.debug("SRS reverse expansion failed. " + e.getMessage());
                throw new RejectExceptionExt(e.getStatus());
View Full Code Here

TOP

Related Classes of mireka.address.Recipient

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.