Signature is inserted twice
-
benny
- State changed from new to reproduced
-
Rob Miller
Hi Benny, sorry for the delay. I've emailed my signature plist file to the email address on that page; not sure if you still need it but just in case.
-
benny
- State changed from reproduced to fixcommitted
The problem is triggered by the line which only contains a single space:
SW10 0QJ [ ] Office number: +44 (0)20 xxxx xxxxYou can fix the problem by removing the space, but I have also fixed the code to handle this (stripping it automatically).
Thanks for reporting this issue.
-
Rob Miller
Removing the space fixes this for me too, thanks.
Out of interest, from my "curious software developer" perspective, why was it happening? I'm guessing that there's a check for whether the signature is already inserted, and that you're stripping whitespace-only lines at one point already. Then, when you come do do the comparison/substring match to check if the signature is inserted, you're comparing a stripped version to a non-stripped version and so wrongly concluding that the signature hasn't already been inserted. Is that right? It's like a magic trick, ha, I have to know!
-
benny
Yes, you are right. I'm stripping extraneous whitespace when creating signatures, but this code failed for lines with only whitespace, because there was no last character before trailing whitespace. (Stripping it is necessary because emails are quite sensitive with regard to trailing whitespace.)
-
Ingo Lantschner
Seems as if this problem persists. After selecting, adding some recipient, the signature changed from:
-- Ingo Lantschner Marchettigasse 5/10 A-1060 Wien Fon (+43-664) 143 84 18 E-Mail ingo@lantschner.name GPGMail http://ingo.lantschner.name/public\_keyto:
-- Ingo Lantschner Marchettigasse 5/10 A-1060 Wien Fon (+43-664) 143 84 18 E-Mail ingo@lantschner.name GPGMail http://ingo.lantschner.name/public\_key -- Ingo Lantschner Marchettigasse 5/10 A-1060 Wien Fon (+43-664) 143 84 18 E-Mail ingo@lantschner.name GPGMail http://ingo.lantschner.name/public_keyPlease note the difference in the url!
The Signature in the preferences is w/o escaped underscore:
-- Ingo Lantschner Marchettigasse 5/10 A-1060 Wien Fon (+43-664) 143 84 18 E-Mail ingo@lantschner.name GPGMail http://ingo.lantschner.name/public_key -
benny
- State changed from fixreleased to reproduced
This is not the same problem as the original ticket. This problem is triggered by the
_as you noted. I know why it happens, but I'm not sure how to fix it yet. I'll look into it. -
benny
@Ingo: Hold down ⌥ when clicking “Check Now” to fetch the latest test release (r3962). I'm not 100% sure the problem is fixed and I would appreciate some feedback.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
