Skip to main content

Whitespace breaking multipart emails

Comments

7 comments

  • cPRex Jurassic Moderator
    Hey there! It sounds like the homework you've done would show 100% the issue is with the software. I'm not sure how they could deny that with what you've shown. There are some details in the Exim docs about spaces with line endings, but I didn't find much for extra spaces at the beginning of a line. See section 2 here:
    0
  • Krydos
    Thanks cPRex! Invision just keeps saying that their software sends emails just fine for thousands of other customers so it's got to be something wrong with my server. I'm obviously hesitant to try to fix their code for them because even if I managed to fix it it would probably just get overwritten each time I upgraded. The custom exim filters are a bit of a stretch. It would be much better to fix this at the source rather than writing some dirty hack to try to work around it. Also, it's kind of funny that a moderator edited my post and removed the single spaces at the beginning of the headers...
    0
  • cPRex Jurassic Moderator
    I'm the only moderator around, and I didn't edit the post. Maybe it's just showing up differently now? I definitely see the spaces on my end.
    0
  • cPRex Jurassic Moderator
    Ha! I refreshed on my end and now the spaces are gone... Oh, and the "edited by a moderator" is to change the "New Thread" banner after I've replied once.
    0
  • cPRex Jurassic Moderator
    I'm not sure why adjusting the thread banner would have changed the spacing, but I made the changes in a different way on my end and now they are appearing to stick properly, and so are the spaces.
    0
  • Krydos
    Thanks cPRex for the reassurance that the issue was with Invision's code. I spent way too much time digging through their code over the last few days, and I'm proud to announce that I fixed their code! I changed one occurrence of PHP_EOL to "\r\n" and now it works. Since Invision is so adamant that their code is perfect I guess I'll just have to make this edit every time I do a software upgrade. I'm so relieved to have this fixed though. It was driving me nuts. Just wanted to give this thread some closure in case anyone searches and finds it.
    0
  • cPRex Jurassic Moderator
    That's great work!
    0

Please sign in to leave a comment.