• Resolved zorba256

    (@zorba256)


    I have to say that I’ve been very impressed with this plug-in which has enabled me to set up a blog for my (wife’s) local WI so that members can keep in touch during the current crisis.
    Everything has worked as it should – after a few adjustments to the various settings over the past few days, except for the one feature which should allow “Replies” to be picked up and treated as “Comments”.
    Once new posts have been received and processed by Postie, new posts to the blog are approved and then automatically sent out via the “Notifications” plug-in. At the moment I’m just using {post-title} in the subject line of such new post emails and hence in the subject line of the Reply. Replies to such emails do get picked up successfully by Postie but then get treated as new posts with the same post title. To be fair I struggled to find much if any documentation on the “Reply/Comment” feature, so it may well be me who has not set things up correctly.
    Here’s the extract from the log that seems relevant to me but I can supply further details of necessary:

    GetParentPostForReply: Looking for parent 'Re: Castle Green WI - Test of new format'
    GetParentPostForReply: Re: detected
    GetParentPostForReply: tmpSubject: Castle Green WI - Test of new format
    GetParentPostForReply: After postie_parent_post: 
    Not a reply
    filter_Start: no start filter
    post filter_Start: <div dir="auto">Some comments on this posting</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 27 Mar 2020, 18:15 , <<a href="mailto:[email protected]"><a href="mailto:[email protected]" >[email protected]</a></a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>Julie has just sent a new post &quot;Test of new format&quot; to the Castle Green WI Blog.</p> <p>To read the post click on this link <a href="https://tithepit.me.uk/castlegreenwi/test-of-new-format/" target="_blank" rel="noreferrer">https://tithepit.me.uk/castlegreenwi/test-of-new-format/</a>.</p> <p>Comments are not supported at this time.</p> <p>Do not reply to this email as no one will be able to read your response.</p> </blockquote></div>
    filter_End: no end filter

    Hope you can help me to sort this out…

    Regards,
    Richard

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

    (@wayneallen-1)

    Reply detection in Postie is very basic. It removes the “Re:” and tries to find a post that matches the subject line. So in your example it looked for a post titled Castle Green WI - Test of new format and didn’t find it.

    There is also a setting Treat Replies As but that doesn’t come into play if a reply isn’t detected.

    Thread Starter zorba256

    (@zorba256)

    Wayne,

    Thanks for your reply which corresponds with my earlier understanding. But checking your code I see that not only does the reply have to match the post in type and subject (post title) but also that the post status must be set as “open” to comments. See line 1402 in postie-message.php.

    Strangely though, even when I did not have the post open to comments, I did not receive the error message from line 1412 “No parent found” but only the “Not a Reply” – presumably from the calling code. I did not open replies to comments because I did not want users to be confused by the “Leave a Reply” link on screen. Users would then have found they couldn’t login because I had not distributed access details – which are unnecessary since I’m using Postie!

    This restriction on comment status seems perfectly reasonable but might I suggest that error messages are put out to the log (when no matching post meeting these conditions is found) to distinguish between “No parent found” and “Parent not open for comments” or any other required conditions. The existing message “Not a reply” implies that there is something wrong with the reply email itself rather than with the original post that you are trying to match, which is why I was looking in the wrong place for the root cause of the problem.

    I’m still struggling despite trying a whole raft of options in the Settings “Discussion” page – but to no avail. Reply posts still get treated as ordinary original posts and not as Comments.

    Any other suggestions?
    Regards,
    Richard

    Plugin Author Wayne Allen

    (@wayneallen-1)

    I’d suggest enabling comments then change your theme to not show the “Leave a Reply” link.

    I’ll update the log message as you suggest.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not Treating Repies as Comments’ is closed to new replies.