camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wojciech Durczynski (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-777) Allow '@' in usernames.
Date Fri, 01 Aug 2008 14:55:00 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44686#action_44686
] 

Wojciech Durczynski commented on CAMEL-777:
-------------------------------------------

The problem probably exists because in class MailConfiguration there is a method:

    public void setUsername(String username) {
        this.username = username;
        if (!recipients.containsKey(Message.RecipientType.TO)) {
            // set default destination to username@host for backwards compatibility
            // can be overridden by URI parameters
            String address = username + "@" + host;
            recipients.put(Message.RecipientType.TO, address);
        }
    }

If "To" isn't a parameter in url, broken address is added to recipients map.
And my url doesn't have "To" parameter, because I always provide it as a header in a message.

> Allow '@' in usernames.
> -----------------------
>
>                 Key: CAMEL-777
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-777
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-mail
>            Reporter: Wojciech Durczynski
>
> Many servers use 'username'@'servername' as a login name. Camel-mail doesn't allow this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message