Am 08.07.2013 20:56, schrieb Michael Heydekamp:
Am 08.07.2013 20:28, schrieb Rosali:
Am 08.07.2013 20:13, schrieb Michael Heydekamp:
The problem just is: As I said, I'm a PHP noob and have no clue what I have to do to create/use such a hook with a plugin. I may probably be able to patch the existing code in func.inc, but that's it. Even though the plugin code will most likely be pretty similar to the code in func.inc.
Contact me once the hook is present (myroundcube [at] mail4us [dot] net). Such a plugin isn't a big thing.
Uh, THAT was quick... :-)
I'll be more than happy to do that, but: How do we make this hook being present? Can anyone do that, or just @alec and/or @thomas?
I don't think we need the hook. If I understand you right you need the identity selection when replying to a message. We have 'storage_init' and 'message_compose' hooks. 'storage_init' hook allows us to fetch any custom header from the IMAP server. 'message_compose' hook can be used to create a Roundcube message object ...
$MESSAGE = new rcube_message($args['param']['reply_uid']);
The object contains in 'others' the custom header field (added by 'storage_init'). Now we can query the database for an existing identity and add some javascript stuff to the client to select the according identity.
Of course a hook would be more elegant. If you are interested, then send me a message which contains your custom header field and lets talk about details.
Sorry if this question does sound silly to you dev folks...
@alec and @thomas: Besides this hook, I don't want to miss to remind you that besides "Delivered-To:" and "Envelope-To:", the pretty common header "X-Envelope-To:" should be supported as a last resort for identity selection as well (see http://trac.roundcube.net/ticket/1488553). This patch is so trivial that even I could do it myself. I'm aware that Justin van Beusekom pointed me to https://github.com/roundcube/roundcubemail/pulls, but either I or my IE8 (or we both) are too dumb to use this facility. :(
Cheers,