Summary | Unable to get message content on pre_sent hook |
Queue | IMP |
Queue Version | Git master |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | rui.carneiro (at) portugalmail (dot) net |
Created | 07/04/2011 (5156 days ago) |
Due | |
Updated | 07/21/2011 (5139 days ago) |
Assigned | 07/05/2011 (5155 days ago) |
Resolved | 07/13/2011 (5147 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
16d7d4e08bc47cc43f70958ad2c0faeca5cbbe40. That is also needed.
Thank you Michael :)
16d7d4e08bc47cc43f70958ad2c0faeca5cbbe40. That is also needed.
before testing a bug. Tomorrow I will recheck that.
Revert "
Ticket #10306: Build MIME IDs when building message from contents"This reverts commit a997228094366e783f8ce0f9dcdf963e2dda0c43.
1 files changed, 1 insertions(+), 2 deletions(-)
http://git.horde.org/horde-git/-/commit/a4d7baf4cfaa663aa5635ef59171bb41beee7135
internally called somewhere so this should not be an issue.
Ahhh... you probably did not patch the Mime package with commit
16d7d4e08bc47cc43f70958ad2c0faeca5cbbe40. That is also needed.
So I am going to revert what I just added - since it should not be
needed and is unnecessary overhead.
Ticket #10306: Build MIME IDs when building message from contents1 files changed, 2 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/a997228094366e783f8ce0f9dcdf963e2dda0c43
New Attachment: 0001-Build-mime-ids-before-using-IMP_Contents.patch
After some debug I found the problem. The Horde_Mime_Part received on
pre_sent hook do not have any mimeid set so the contentTypeMap method
always returns the first part only (multipart/alternative).
I fixed this using $message->buildMimeIds() just before using IMP_Contents.
I have no idea why this is happening.
State ⇒ Not A Bug
Ticket #10306: Correct way to search for compose message contents inHTML message
1 files changed, 3 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/b0ba72085c12702e4eac6cb93496c01f90e5a407
text/html messages? Please? :)
Sorry my English :\
contained in the base part. If sending text/html messages, this
will always be empty (since it is a multipart/related part, which
has not text of its own).
Mime_Part is not that much :X
Can you update hooks.php.dist with an example of how to do it with
text/html messages? Please? :)
to use this hook.
$message->getContents() always return empty :\
in the base part. If sending text/html messages, this will always be
empty (since it is a multipart/related part, which has not text of its
own).
to use this hook.
$message->getContents() always return empty :\
https://github.com/horde/horde/blob/master/imp/config/hooks.php.dist#L208
State ⇒ Feedback
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Summary ⇒ Unable to get message content on pre_sent hook
Type ⇒ Bug
Queue ⇒ IMP
returning an empty string.
I was using your Example
#2from hooks.php.dist