• Resolved kashmiri

    (@kashmiri)


    Having contact form messages threaded in a Gmail or Workspace inbox is a nightmare. I suggest adding an option to prevent it through inserting a random References header in class.cscf_contact.php, line 166:

    "References: <" . uniqid() . "@" . $_SERVER['HTTP_HOST'] . ">\r\n"

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Alan Fuller

    (@alanfuller)

    Thanks I was not really aware of the threading issue with contact forms, of course, you can turn that off in gmail.

    But I can see, if the reply-to is the same it will thread.

    I did some quick Google research and thee seems to be various solutions.

    X-Entity-Ref-ID: null looks more promising than random strings and hard coding gmail

    https://stackoverflow.com/questions/23434110/force-emails-not-to-be-grouped-into-conversations

    If you are interested in helping test solutions I can quickly add a filter before calling wp_mail so you can try different headers?

    Thread Starter kashmiri

    (@kashmiri)

    I’ve tested with X-Entity-Ref-ID: null and it didn’t work for me: messages still were threaded. Will test again.

    Thread Starter kashmiri

    (@kashmiri)

    OK, seems X-Entity-Ref-ID works. Thanks!

    Just to be compliant (no empty/null headers), I used X-Entity-Ref-ID: " . uniqid() . "\r\n

    Normally threading is a boon, but is a nightmare in case of form responses – all the different people appear to be writing in the same thread where the form doesn’t include/require a subject field. This solves the problem.

    Plugin Author Alan Fuller

    (@alanfuller)

    Thanks – I assume you dropped that in the code.

    I’ll incorporate that in the next version.

    If you want to do a pull request -> https://github.com/alanef/clean-and-simple-contact-form-by-meg-nicholas

    Do you think there is any reason to make it an option i.e. turn on / off?

    ( I’ll definitely add a filter for the header anyway )

    Plugin Author Alan Fuller

    (@alanfuller)

    Your pull released in 4.8.0 thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add option to prevent inbox threading’ is closed to new replies.