Hi all,
I am trying to intergrate rc in a larger suite based on ajax.
It gets loaded into an iframe.
I'd like to pass commands to rc from outside the iframe like "Start composing a mail to xxx@yyy.zz".
I tried the following, but it didn't work:

HTML Code:
<html>
<head>
<script type="text/javascript">
function sendmail(){
	window.frames[0].rcmail.command('compose','test@test.com','');
}
</script>
</head>
<body>
<iframe src="roundcube/" width="800" height="400" frameborder="0"></iframe>
<p><a href="mailto:test@test.com" 
  onclick="sendmail();return false;">test@test.com</a></p>
</body>
</html>
can anyone help?

I'd also like to extend rc to fit my needs.
Therefore I plan to write a plugin for attachment management:
the user should be able to select files on the server and also I'd like to add a Flash Uploader like in Googlemail to make sending more and/or large files more convenient.
Is there some good tutorial except the one on the wiki?

Thanks for any replies!