WordPress.org

Forums

Postie
[resolved] Signature removal is killing postie email import. (2 posts)

  1. dannyjimmy
    Member
    Posted 1 year ago #

    When a signature is present, 'post sig' and 'post excerpt' are being returned as null/nothing. (I'm assuming that 'post content' is also being returned null by this.) No warnings appear in my php error log when this occurs; only the normal postie log messages appear.

    When no signature is present, 'post sig' and 'post excerpt' are being returned as the full post content, so I must assume the same is true of 'post content'. (It's actually a bit weird that 'post sig' has a value when no signature is found... unless i'm assuming wrongly that 'post sig' means 'post signature'.)

    My fix at this time is simply to disable the signature removal, and as needed, code my own removal of signatures using a postie_post filter.

    My debug log is below.

    Any plans to fix this? If needed I could get my hands dirty but would want some pointing in the right direction first.

    ||||||||||||||||||||||||| WHEN A SIGNATURE IS PRESENT |||||||||||||||||||||||||
    
    ====
    the content is <div dir="ltr">conaadsfasd<br clear="all"><div><br></div>-- <br>
    <div><div><div><span style="border-collapse:separate;font-family:Georgia;text-align:-webkit-auto;font-size:medium">Daniel Schulz-Jackson</span></div><div><br></div>952.540.7777</div><div><br><a href="http://wordwideweb.co/" target="_blank">WORDwideweb.co</a></div>
    
    <div><a href="http://thesjs.com/" target="_blank">thesjs.com</a></div></div><div><br></div>
    
    <div></div>
    </div>
    
    Predecoded subject: etc etc
    Subject: etc etc
    filter_RemoveSignature: pattern: /^(--\s?[\r\n]?|--\s|--|---)\s?$/mi
    filter_RemoveSignatureWorker: signature found in base, removing
    Array
    (
        [0] => --
        [1] => --
    )
    
    filter_RemoveSignatureWorker sig new text: ''
    post sig:
    post excerpt: 
    
    ||||||||||||||||||||||||| WHEN A SIGNATURE IS _NOT_ PRESENT |||||||||||||||||||||||||
    
    ====
    the content is <div dir="ltr">asddlfalsdkfasd
    
    <div></div>
    <div>fasd</div><div>fa</div><div>sdf</div><div>asdf</div><div>asdf</div><div>asdf</div></div>
    
    Predecoded subject: now without a signature!
    Subject: now without a signature!
    filter_RemoveSignature: pattern: /^(--\s?[\r\n]?|--\s|--|---)\s?$/mi
    post sig: <div dir="ltr">asddlfalsdkfasd
    
    <div></div>
    <div>fasd</div><div>fa</div><div>sdf</div><div>asdf</div><div>asdf</div><div>asdf</div></div>
    
    post excerpt: <div dir="ltr">asddlfalsdkfasd
    
    <div></div>
    <div>fasd</div><div>fa</div><div>sdf</div><div>asdf</div><div>asdf</div><div>asdf</div></div>

    https://wordpress.org/plugins/postie/

  2. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    I have been chasing this since one of the recent upgrades. I'll look into it some more since someone other than me is seeing it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Postie
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.