RE: [PEAR-DEV] Mail/mime.php changes
| From: | Richard Heyes | Date: | Sun, 16 Sep 2001 21:55:29 +0000 |
| Subject: | RE: [PEAR-DEV] Mail/mime.php changes | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1964@lists.php.net to get a copy of this message | ||
> 2) In _buildHtml():
>
> if (!isset($this->_txtbody))
> $this->_txtbody = 'No text version was supplied';
>
> Is this message really clear for "normal" people? I'll prefer not to
> show any message (or even don't parse this part as many clients do) or
> perhaps give a message like "This is an HTML e-mail with no text
> version" (if there is HTML version).
I've updated the class with all of the style modifications, and in the above
case, opted for making the text version blank. Source files and diff updated
on my website, and I'll do incremental commits as Jon requested.
However, I'm not entirely happy with the class as it is at the moment, since
it's fairly rigid in the structure that it produces (_buildHtml() in
particular), which without providing an option for each possibility is going
to be tricky to resolve. What I'd like to come up with is some sort of mime
creation engine, with a nice interface to present to the user.
What springs to mind is something like the mimeDecode::_decode() method,
which decodes the entire message by calling itself recursively. For mime
creation though I think this would be quite tricky to produce.
Thoughts?
--
Richard Heyes
"I know not with what weapons World War III will be fought, but World War IV
will be fought with sticks and stones." - Albert Einstein