WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Essential code stripped from emailed posts (Postie plugin) (4 posts)

  1. stephennewton
    Member
    Posted 6 years ago #

    Postie no longer embeds QuickTime for video emailed to my blog. Error noticed after upgrading WP to 2.3.2, but may have been present earlier as I only email video very occasionally.

    Something is stripping essential code from the posts. For example:

    $attachments["html"][] = '<!--Mime Type of File is '.$part->ctype_primary."/".$part->ctype_secondary.' -->' .
    '<center>'.
    '<object '.
    'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" '.
    'codebase="http://www.apple.com/qtactivex/qtplugin.cab" '.
    'width="300" '.
    'height="256"> '.
    '<param name="src" VALUE="'. $config["URLFILESDIR"] . $filename .'"> '.
    '<param name="autoplay" VALUE="false"> '.
    '<param name="controller" VALUE="true"> '.
    '<param name="scale" VALUE="aspect"> '.
    '<embed '.
    'src="'. $config["URLFILESDIR"] . $filename .'" '.
    'width="320" '.
    'height="250" '.
    'autoplay="true" '.
    'controller="true" '.
    'type="video/quicktime" '.
    'pluginspage="http://www.apple.com/quicktime/download/" '.
    'width="300" '.
    'height="263"></embed> '.
    '</object><br><font size=-1>YouTube-podcast</font></center>';

    Arrives in the post as:

    <!--Mime Type of File is video/mp4 --> <br><font size="-1">YouTube-podcast</font>

  2. stephennewton
    Member
    Posted 6 years ago #

    The problem was related to the cookie behind the cron job that calls postie somehow being corrupted.

  3. ktai
    Member
    Posted 5 years ago #

    How did you fix this exactly? I am having the same problem, but get_mail is called by user http requests instead of cron here.

  4. stephennewton
    Member
    Posted 5 years ago #

    Sorry I'm late getting back. I've been abroad.

    I have two cron jobs running that look like this:

    curl -c cookie.txt -d log=user -d pwd=password http://www.stephennewton.com/wp-login.php

    curl -b cookie.txt http://www.stephennewton.com/wp-content/plugins/postie/get_mail.php

    The first creates a cookie, the second logs on with that cookie and calls get_mail.php

    Both run every minute. You'd have thought the cron job that creates the cookie would only have to run once, but for some reason it only works if run as frequently as the cron hob that calls get_mail.php.

    Stephen

Topic Closed

This topic has been closed to new replies.

About this Topic