This one has been bugging me for a long time, and sorry to bother you here, but I have rummaged around through the code quite a bit already.

The reason I'm posting here is to ask for tips, potential functions, places to look..

Because when the subject line [when sent through SMTP]  is being concatenated back together, (over or at 70 chars), IF that happens to be a space, a space should be left as is, but it isn't. 

Somewhere there is a trim going on that shouldn't be, or that needs a minor adjustment.  I am hoping to get some comments and suggestions as where to find it.

Here is a subject line I send myself.

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9

Here is what I get in return.

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 45 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 34 5 6 7 8 9

This doesn't happen if there happens to NOT be a space at 70, ti's only when the char at that position is a space. The 147th position is interesting also.  -1 for the other trim, so technically it's happening between 148-149. 

That information should help find the problem.  Wherever the Subject it is in more than one piece, it's being trimmed twice..

It might not appear to be a big deal for most use cases, but I send out long bibliographic citations to my mailing list, and then later iterate through those subject lines for indexing.

I've had to do all kinds of work arounds to accommodate this for long subject lines, and I'm ready to stop fooling around and fix the problem.

I have dev environment set up and can compile.

Any suggestions are greatly appreciated!

Thanks!





Reply via email to