About this topic

  • Posted by creep66 6 months ago. There are 11 posts. The latest reply is from creep66.
  1. Hi Rob,

    I have been using Postie for ages on my site and recently upgraded to version 1.3.4 . In my email parsing I have areas for 3 images, named #img1#, #img2#, #img3# with captions. (I cant get the captions to work either but thats another topic).

    Currently only #img1# and #img2# are replaced with the correct image codes, #img3# is ignored completely, and simply printed back to the post as #img3#.

    I have looked at the code in postie-functions.php but don't see anything immediately wrong there. Am I missing something?

    Thanks

    Dave

  2. Dave,

    Are you actually attaching three images?

    Rob

  3. Thanks for responding Rob, yes I verified the email had 3 attachments in the mail box before running postie. Postie processes the first 2 correctly but somehow the third is not processed. I used the same syntax in my email in each instance for each of the three images (#img1#, #img2#, #img3#).

  4. Dave,

    Hmm. Try the development version. Seems to work fine for me on my test site.
    http://robfelty/test28/admin-2-2/testing-3-images

    What image template are you using? Are you using html or plaintext e-mail. Are all three images being uploaded to the server? What e-mail provider are you using. Some e-mail providers limit the size of messages. How big are your images? Does your server have a max upload file size?

    Rob

  5. Hi Rob,

    In answer to your questions. I downloaded and installed the latest dev release and it did not fix the error. I have set postie to look for html emails and the formatting output looks fine. However I am still missing the third image. In answer:

    1. My image template is as follows:

    <a href="http://www.domain.com/?p={ID}"><img src="{FULL}" alt="{CAPTION}" title="{CAPTION}" class="attachment" /></a>

    2. I am using 'html' processing of my emails.

    3. The third image does not make it to my webserver in wp-content/uploads which is where the other 2 images are being stored.

    4. I am using my CFORMSII to capture user input and send email to my mailserver. I configured Postie to access this via POP3. I have verified that all 3 images are on the mailserver and attached to the email in the inbox.

    5. The images are all on my mailserver which has a large capacity for accepting image emails (up to 10mb per email).

    6. The image sizes are: 24kb, 92kb, and 240kb.

    I am at a loss as to what it is. It appears to cycle through processing the first 2 images fine but stops at the third? I have tried the following:

    #img%#

    and

    #img% caption='Text 1'#

    In both cases the first 2 images are processed fine, the third is missed. Any suggestions or instructions will be greatly appreciated and followed.

    In summary: The images make it to the mailserver fine, but the third image does not show up in my webserver file storage or the body of the post.

    Thanks Rob,

    Dave

  6. Amendment to point 3.

    The images being stored in /wp-content/uploads are being placed there I suspect by CFORMSII or the default behaviour of wordpress.

    Postie appears to be storing images in /wp-photos - although I can't find a configuration for this anywhere.

    Upon further investigation I see that in wp-content/uploads only the first 2 images are present (the third is missing here also), and each is in 3 versions of 150x150, 225x300 and 600x800 which all correspond to the default settings of wordpress media.

    However, the email in my mailserver does have all 3 images.

    Hope this helps.

    DJ

  7. DJ,

    Very strange. Postie version 1.2.3-- uses wp-photos. Version 1.3.+ uses whatever wordpress does (which is /wp-content/uploads by default).

    Could you send me an example e-mail with three images that isn't working to robfelty at the gmail? Please include "postie" in the subject of the e-mail.

  8. OK, email sent. I will continue to investigate from my end also.

  9. Creep66,

    I think the issue was with using html e-mail. I think I have fixed this now in the development version. Please try re-downloading.

    Rob

  10. Tried the new dev version and no luck. I also tried to post the output of Postie to the forum here but it didn't post successfully so I am emailing it to you at the above address. It seems to end before it completes it's second cycle at 'read image metadata'. The first time the cycle Array goes through it outputs at line 39:

    read image meta dataprimary= image, secondary = jpeg

    (I also note, no space between 'data' and 'primary'). However, the second time the Array cycles (for the second image) it returns:

    read image meta data

    and does not complete. Please reference the email for the full output I get.

    Thanks for your patience with this one Rob!!

  11. Just updating this for the record. I had a programmer look at the process my site was going through with Postie and why it was not completing the array and the following is the fix applied:

    mimedecode.php line 535:

    for ($i = 1; $i < count($tmp) -1 ; $i++) {

    change to:

    for ($i = 1; $i < count($tmp) ; $i++) {

    essentially remove the -1 from the line. Save and upload and it should fix it. Works for me.

    DJ

RSS feed for this topic

Have you read the FAQ?
Have you tried the latest development version (at the bottom)?

Reply

You must log in to post.