On 04/18/2013 03:18 PM, Daniel Böhmer wrote:
> The "when" got me: In the message list view I can use the "init" hook and 
> during the runtime of this function the rcmail.env.messageid is available. 
> The 
> 2nd window opens and displays the message ID. Great!
> 
> Unfortunately the PHP hook isn't called when a message is being replied to. I 

You need to use message_compose hook. There in $args['param'] you'll
have 'draft_uid', 'reply_uid', 'forward_uid' and 'uid' depending on
action used (edit-draft, reply, forward, edit-as-new). The folder will
be in $args['param']['mbox'].
Having this information you'll need to create rcube_message object to
get the message headers (or use rcube_imap methods).
After all you should save your message-id in $args['message-id'] - it
will be stored in session.

-- 
Aleksander 'A.L.E.C' Machniak
LAN Management System Developer [http://lms.org.pl]
Roundcube Webmail Developer  [http://roundcube.net]
---------------------------------------------------
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
_______________________________________________
Roundcube Development discussion mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/dev

Reply via email to