• Resolved teammeta

    (@teammeta)


    I am using Postie to post outage notifications for my company onto our main website. Everyone in our company has an image in their signature in emails so every time a post is sent Postie uploads the image from the signature even if it is after the :end tag. This ends up loading our site’s upload storage with multiple copies of the same image. I have attempted to banning uploading all attachments with *.* but that makes postie ignore the entire message now even if :start and :end are used or not. How can I stop Postie from uploading images and still continue to grab the text?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    You can cause Postie to ignore all images if you turn on “Use custom image field for attachments” in the attachments tab.

    Note that “Preferred Text Type” must be set to plain for this to work.

    Thread Starter teammeta

    (@teammeta)

    I have tried that, This only prevents Postie from DISPLAYING the image on the post. It still attempts to upload an image file to the media folders of the website. I want to STOP all upload of any kind other than the text of the email into the body of the post. Right now I have gotten Postie to stop uploading the image data from the email (I think) but Postie still uploads a “blank” image file named “image001/jpg” to the media files… this is what I need stopped.

    Thread Starter teammeta

    (@teammeta)

    I have figured out how to stop the uploads. You must comment out calls to the postie_media_handle_upload() and postie_handle_upload() function calls in postie-functions.php

    Plugin Author Wayne Allen

    (@wayneallen-1)

    While that will work, it will get undone the next time you update Postie.

    A better way would be to create a simple addon that hooks postie_post_after and deletes all attachments. See https://postieplugin.com/extending/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Postie Ignores entire message if banning all attachments (*.*)’ is closed to new replies.