Here is a Zimlet that is supposed to do a Yahoo search on the From: address of an email that is dragged onto it:
Code:
<zimlet name="com_mydomain_test" version="1.0" description="Our Test Zimlet">
<zimletPanelItem label="Yahoo Lookup Zimlet">
<toolTipText>
This Zimlet does a Yahoo lookup on an email address.
</toolTipText>
<dragSource type="ZmMailMsg">
<canvas type="window" width="400" height="400" />
<actionUrl method="get" target="http://search.yahoo.com/search">
<param name="p">${obj.from}</param>
</actionUrl>
</dragSource>
</zimletPanelItem>
</zimlet> It does not work: the search that results is for the string "undefined". If I change "{$obj.from}" to "{$obj.subject}" I get a search on the email's subject; if I use ${obj.convId}" I get the correct conversation id. It only seems to fail with the from. The "to" attribute also fails.
I checked the emails and they have From: headers of the form "From: John Public <jqpublic@mydomain.com>".
Of the ones I tried, here are the ones that work
- subject
- date
- id
- convId
- size
and the ones that do not work (return "undefined"):