On Tue, Jun 9, 2009 at 3:04 PM, rohitbrai<rohitb...@gmail.com> wrote: > > Sorry for missing that - I am using the Camel 2.0 snapshot. > > > I am not using HTTPComponent at all. I am using the MailComponent, which is > created by camel. Can I set the HeaderFilterStrategy for the component, or I > need to create my own instance of the component? > > Currently I am using smtp like this - > <camel:to uri="smtp://a...@xyz.com?password=dfetgsdf" /> > > can I make it - > <camel:to > uri="smtp://a...@xyz.com?password=dfetgsdf&headerFilterStrategy=#myStrategy" > /> > > where myStrategy is a bean implementing HeaderFilterStrategy and declared in > the Spring XML as - > <bean id="myStrategy" > class="com.pramati.web122.pigeon.PigeonFilterStrategy"></bean> Actually you cannot do that as it always get it from the component.
But it would make it much easier as yo do not need to declare a custom component to overload the existing default mail component. Do you mind creating a JIRA ticket for it? > > Regards, > Rohit > > > Claus Ibsen-2 wrote: >> >> On Tue, Jun 9, 2009 at 2:38 PM, rohitbrai<rohitb...@gmail.com> wrote: >>> >>> Is this applicable to the Mail component also? >>> >>> http://issues.apache.org/activemq/browse/CAMEL-915 >>> >>> "You can do this in Camel 2.0 in the URI by using the # syntax for lookup >>> in >>> the registry." >> Yes that works for all components where you define an endpoint using >> URI in Camel 2.0. (is in 2.0m1) >> >>> >>> Regards, >>> Rohit >>> >>> >>> rohitbrai wrote: >>>> >>>> How do I use a custom HeaderFilterStrategy on a SMTP endpoint? I saw the >>>> code and I can see that SMTP component honors the HeaderFilterStrategy. >>>> But I am not able to figure out how do I set it for the endpoint? >>>> >>>> Thanks and Regards, >>>> Rohit >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/How-to-use-the-HeaderFilterStrategy-on-SMTP-endpoint--tp23942024p23942065.html >>> Sent from the Camel - Users mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> >> > > -- > View this message in context: > http://www.nabble.com/How-to-use-the-HeaderFilterStrategy-on-SMTP-endpoint--tp23942024p23942422.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus