Zitat von Robin Bankhead <ho...@headbank.co.uk>:

Quoting Michael M Slusarz <slus...@horde.org>:

Quoting Robin Bankhead <ho...@headbank.co.uk>:

Hi,

I was thinking about trying to integrate some IMP actions into our existing intranet app, and have a couple of enquiries as to whether this is feasible.

We already use a full horde-webmail install (using auto-login) under the same server (at /horde/ via an Apache alias) but the two do not currently interact.

What I would like to be able to do would be to generate a message body within our own app and send it to IMP, then opening it in a Compose window. This won't work with a mailto: link because the body is too long for the URI limit in some cases.

So my questions are:

1. Is it actually possible to feed the whole message body (plus recipient header) to IMP via script in this manner?

Not as of now. This is intentional to prevent abuses of the compose sending process.

And I don't really see any need to add this functionality to the compose pages. it might be useful to add an externally-accessible service that allows mail to be sent via the IMP mailer configuration. But this would be an independent action ... and also doesn't currently exist.

michael


Thanks for the reply, Michael. I can understand the anti-abuse concern, but within our internal setup this is not a concern. The goal is just to save some RSI on our users when sending boilerplate replies (templates really, with some variables drawn from an incoming message and from our database, then customised manually as needed).

I tried POSTing a form to /imp/dynamic.php with the "to", "subject" and "body" parameters and this worked for a short body, but not a longer one. Can I ask where in the code the length-limit is applied?

I sense that implementing my own module within horde might be the "proper" approach here, if working at a lower level is required to play in tune with safeguards like the above. Maybe this would also allow me to do more fancy things I had in mind, such as designating the generated message as a reply to a given message. Do you agree, or am I still likely to need to hack IMP core to some degree?

Robin Bankhead

This rather sounds like a helpdesk application, and you might want to look at Whups instead for this.
--
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Reply via email to