11 Replies Latest reply on Oct 19, 2010 1:22 PM by TSGal

    SMTP Subject field prepends a space for messages of 37 characters or more

    bbergerman

      Summary

      SMTP Subject field prepends a space for messages of 37 characters or more

      Product

      FileMaker Pro

      Version

      11.0V2

      Operating system version

      Windows 7

      Description of the issue

      When submitting a message using SMTP, if there are more than 37 characters in the message / field / variable, Filemaker seems to be prepending a space character in the subject when it sends the message.

      Steps to reproduce the problem

      Ran a script three times with values (passed by field) below: "123456789012345678901234567890123456"
      "1234567890123456789012345678901234567" "12345678901234567890123456789012345678"

      Expected result

      Subject:123456789012345678901234567890123456
      Subject:1234567890123456789012345678901234567
      Subject:12345678901234567890123456789012345678

      Actual result

      Subject:123456789012345678901234567890123456
      Subject: 1234567890123456789012345678901234567
      Subject: 12345678901234567890123456789012345678

      email_issue.png

        • 1. Re: SMTP Subject field prepends a space for messages of 37 characters or more
          TSGal

          bbergerman:

          Thank you for your post.

          I do not have a Windows email program, so I am unable to test on Windows.  On Mac, this problem does not exist.

          I have sent your post along with my findings to our Development and Software Quality Assurance (Testing) departments for review and confirmation.  When I receive any information from these departments, I will let you know.

          TSGal
          FileMaker, Inc.

          • 2. Re: SMTP Subject field prepends a space for messages of 37 characters or more
            TSGal

            bbergerman:

            I forgot to ask...  What email client are you using?  What version?

            TSGal
            FileMaker, Inc.

            • 3. Re: SMTP Subject field prepends a space for messages of 37 characters or more
              bbergerman

              Microsoft Outlook Professional 2007

              Note that the subject in the message header shows up as:


              Subject:
               =?UTF-8?B?MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nw==?=

              (for the message with the subject  1234567890123456789012345678901234567)

              and

              Subject: =?UTF-8?B?MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2?=

              (for the message with the subject 123456789012345678901234567890123456)

              If you provide me with an email address I can send you the full headers and/or copies of the messages.

              Is there any way to disable UTF-8 encoding and send fields as ASCII text instead?  It seems to me the encoding (or decoding on the part of Outlook) may be part of the problem.

              Best regards,

              Brett Bergerman

              • 4. Re: SMTP Subject field prepends a space for messages of 37 characters or more
                TSGal

                bbergerman:

                Thank you for the additional information.

                Initial results from Testing is that they cannot reproduce the problem using Outlook 2010.

                I'll continue to keep you posted.

                TSGal
                FileMaker, Inc.

                • 5. Re: SMTP Subject field prepends a space for messages of 37 characters or more
                  TSGal

                  bbergerman:

                  One of our testers was able to reproduce the problem with Outlook 2007.  The information has been sent to Development for further review.

                  TSGal
                  FileMaker, Inc.

                  • 6. Re: SMTP Subject field prepends a space for messages of 37 characters or more
                    hschlossberg

                    Well, I have a different experience, in that my subject lines don't freak out until going over 180 characters in length.  

                    I believe it is being sent through Exchange 8.1 and viewed in some flavor of Outlook (in this case via Outlook Web Access 8.1)

                    The emails were sent from FM11v2 (Windows 7 machine) via FileMaker's SMTP.

                    • 7. Re: SMTP Subject field prepends a space for messages of 37 characters or more
                      TSGal

                      howards:

                      Thank you for your post.

                      Could you be a little more specific when you say "... my subject lines don't freak out until going over 180 characters in length."  Specifically, are you getting the extra space?  Or, do you get something totally different?  If so, what is the manifestation?  I'd like to make sure this gets documented correctly.

                      TSGal
                      FileMaker, Inc.

                      • 8. Re: SMTP Subject field prepends a space for messages of 37 characters or more
                        hschlossberg

                        The subject lines come through correctly as long as they are under or equal to 180 characters in length.  Over 180, they come through in a format similar to the original poster, something like:  

                        =?UTF-8?B?MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nw==?=

                        I unfortunately only have access to my test emails via the Outlook web interface, which may be hiding the extra spaces from me...but I am not seeing any extra spaces.

                        What I am seeing by looking at "Message Detail" (email header source code) is that for a 180-character subject, it looks like this:

                        =?UTF-8?B?TU9NIEpvYiAjIDQ2Mzc2LUEtMTogIFBOXFBMUiAtIFZTQiBDb25zaWRlcmF0aW9ucyBSZWdhcmRpbmcgQmlvbG9naWMgVHJlYXRtZW50IGluIEVsZGVybHkgUGF0aWVudHMgV2l0aCBNb2RlcmF0ZSB0byBTZXZlcmUgUmhldW1hdG9pZCBBcnRocml0aXMgKFJBKTogQSBIeXBvdGhldGljYWwgQ2FzZSBTdHVkeSAoRWxk?=

                        And for a 181-character subject, it looks like this:

                        =?UTF-8?B?TU9NIEpvYiAjIDQ2Mzc2LUEtMTogIFBOXFBMUiAtIFZTQiBDb25zaWRlcmF0aW9ucyBSZWdhcmRpbmcgQmlvbG9naWMgVHJlYXRtZW50IGluIEVsZGVybHkgUGF0aWVudHMgV2l0aCBNb2RlcmF0ZSB0byBTZXZlcmUgUmhldW1hdG9pZCBBcnRocml0aXMgKFJBKTogQSBIeXBvdGhldGljYWwgQ2FzZSBTdHVkeSAoRWxkZQ==?=

                        They both look pretty much the same to me, so I'm not sure why the difference in how they display in the subject (unless there are/were extra spaces that Outlook just isn't showing me in the source code).

                        • 9. Re: SMTP Subject field prepends a space for messages of 37 characters or more
                          TSGal

                          howards:

                          Thank you for the additional information.

                          In bbergerman's original screen shot, you can see the Subject has a space indent when the Subject is more than 36 characters in length, and one of our testers was able to reproduce the issue.  That was the information I was trying to obtain from you.

                          Although I do have a good idea of what you see in the header/detail, I am still not certain what you see in the Subject of your email client for those messages longer than 181 characters?  You don't have to show all 180 or 181 characters, but just the beginning and ending characters (unless the header replaces the Subject).

                          Sorry for being dense, but I want to make sure I understand exactly what you are seeing so I can forward the information to Development and Testing.

                          TSGal
                          FileMaker, Inc.

                          • 10. Re: SMTP Subject field prepends a space for messages of 37 characters or more
                            hschlossberg

                            For the subject in the email client, I see a normal subject line if it is less than 181 characters, or I see the encoded line of jibberish if it is 181 or more characters.

                            Some further testing shows this may be somewhat an issue between Outlook and FMP's SMTP client.  I sent the same (181+ character) email to my own Thunderbird client and the subject appears properly.

                            On the other hand, I send an email with a 181 character subject from Thunderbird to Outlook and it appeared properly in Outlook.

                            What's the difference? FMP's SMTP engine sends the subject as encoded, with charset=UTF-8 and content-transfer-encoding:8bit.

                            Thunderbird sends it as charset=ISO-8859-1 and content-transfer-encoding:7bit

                            I can send from Thunderbird as UTF-8 and it still comes through fine in Outlook, though it was still sent as 7bit and I don't know how to change that.

                            I barely understand character encoding, so I'm not really sure what to deduce from all of this.  Just that FMP is somehow sending the email differently then a regular mail client would, and Outlook doesn't like it.

                            • 11. Re: SMTP Subject field prepends a space for messages of 37 characters or more
                              TSGal

                              howards:

                              Thank you for the additional information.

                              I have forwarded the entire post to our Development and Testing teams for further review.

                              TSGal
                              FileMaker, Inc.