Am 08.07.2013 20:13, schrieb Michael Heydekamp:
Am 08.07.2013 08:19, schrieb A.L.E.C:
Maybe a hook for plugin at the end of rcmail_identity_select() function would be the best solution for you. I'd call it 'identity_select' or 'message_compose_identity'.
Sounds like a perfect idea - and a lot better than to patch the existing code in func.inc, as the daily git-pull will then often run into conflicts and abort the merge.
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.
If anyone of the Roundcube and/or plugin developers want to help me, you're welcome. A fair and tax-free ;-) compensation is granted.
To make a bit more clear what such a tiny plugin should do:
If a specific header (say "RC-Identity:") does exist, the current RC logic shall be overridden by this header, and the address specified in this header shall be used as identity (if the address is configured as an identity at all).
If this header does not exist (or if the address specified in this header is not configured as an identity), the current RC logic shall apply.
Probably an easy task for any PHP developer, but not for me.
Michael Heydekamp Co-Admin freexp.de Düsseldorf/Germany