tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/1743-possible-bug-with-uninstalled-gpgtoolsGPGTools: Discussion 2017-09-14T11:56:36Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T17:08:06Z2012-08-18T17:08:06Zpossible bug with uninstalled GPGTools<div><p>Hi TJ,</p>
<p>that's in fact interesting.</p>
<p>Could you please try the following:</p>
<p>1.) Close Mail.app<br>
2.) Move /Library/Mail/Bundles/GPGMail.mailbundle to another
destination<br>
3.) Restart Mail.app</p>
<p>Check if the messages now show the expected icons again.</p>
<p>This will help determine if GPGMail is at fault or Mail.app
itself is buggy.<br>
I've encountered a lot of very strange things in Mail.app with
S/MIME certificates.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T17:11:42Z2012-08-18T17:11:42Zpossible bug with uninstalled GPGTools<div><p>Luke!</p>
<p>:) ok yes... I will try that right now and report.</p>
<p>I wouldn't be surprised if its just mail.app being buggy... but
just wanted to be sure that you guys aren't in that mix for your
own sake.</p>
<p>be back in a moment with report.</p>
<p>cheers</p>
<p>Tj</p></div>TJ Marboistag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T17:13:08Z2012-08-18T17:13:08Zpossible bug with uninstalled GPGTools<div><p>There's a good chance for both scenarios. Reverse engineering
everything Mail.app does internally is very tricky, so a buggy
implementation wouldn't be that much of a surprise
unfortunately.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T17:20:21Z2012-08-18T17:20:21Zpossible bug with uninstalled GPGTools<div><p>Luke</p>
<p>ok I dug into that directory --</p>
<p>/Library/Mail/Bundles</p>
<p>and found = NOTHING! so it was clearly removed upon uninstall
which is good...</p>
<p>I also looked in ~/Library/Mail/</p>
<p>just for good measure - and found nothing but the account
stuffs....</p>
<p>and I also just freshly rebooted because I probably did NOT
reboot after uninstalling...</p>
<p>and re-verified the outbox... once again -- the emails that are
supposedly signed and encrypted do NOT show their icons properly in
the outbox...</p>
<p>however those emails DO show signed and encrypted when viewed
from my ipad or iphone after sending from Mail.app....</p>
<p>my other devices show this icon set - properly just after
sending... giving me that somewhat safer feeling..haha.</p>
<p>Anything else you want me to try?</p>
<p>I wonder how those icons get set in the first place...hmm.</p>
<p>maybe I will try rebuilding my mailbox?</p>
<p>let me try that...</p></div>TJ Marboistag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T17:22:07Z2012-08-18T17:22:29Zpossible bug with uninstalled GPGTools<div><p>Yeah, you can try that.<br>
But basically what you're saying is, that GPGMail is not installed
at the moment?<br>
Please verify that by checking if you find GPGMail in Mail.app
-> Preferences.</p>
<p>If it's not installed, it can't be GPGMail's fault nor GPGTools,
actually.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T17:25:34Z2012-08-18T17:25:34Zpossible bug with uninstalled GPGTools<div><p>Luke</p>
<p>yes - in my final step - before reporting this...</p>
<p>I completely un-installed all GPGTools...and checked everything
again.</p>
<p>because I wasn't sure what was causing that issue... alas the
uninstall did not change anything.</p>
<p>So heres my report:</p>
<p>I THINK it was working properly before all this.<br>
I KNOW it was NOT working while GPGTools was installed.<br>
I KNOW that its also still not working after GPGTools are
uninstalled...</p>
<p>and now Im rebuilding mailbox to see if its just some internal
db corruption or something... theres probably some flag on those
emails that lets Mail.app know to mark them as such - no?</p></div>TJ Marboistag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T17:27:50Z2012-08-18T17:27:50Zpossible bug with uninstalled GPGTools<div><p>If it was only that easy.<br>
There's some kind of flag, but it's sometimes only set when a new
message arrives, sometimes it's not set entirely.<br>
I've had one occurrence where S/MIME completely stopped working
even though I hadn't changed my certificates.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T17:28:23Z2012-08-18T17:28:23Zpossible bug with uninstalled GPGTools<div><p>Rebuilding the index might indeed help though</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:19:52Z2012-08-18T20:19:52Zpossible bug with uninstalled GPGTools<div><p>aha!</p>
<p>now its working again! ( partially ).... strange strange.? The
rebuild took a looong time... ( too much junk ).</p>
<ul>
<li>it now shows NEW emails going out after rebuild and reboot -
with the proper check-and lock... encrypted AND signed - yes?</li>
</ul>
<p>but previous emails still don't show it...</p>
<p>other strange thing I saw --</p>
<p>an OLD certificate that I generated for trying to do SMIME --
re-appeared in my keychain... this after I threw it away more than
once...and even marked it do NOT trust - and then tossed it
again...</p>
<p>Im betting that when rebuilding the emails - it also READS the
emails a bit and old certificates attached to those emails must be
getting re-shoved back into the keychain...</p>
<p>perhaps there is some keychain certificate collision on some of
these emails and that causes the lock and check to fail to
appear...</p>
<p>or perhaps my mail box was just needing a rebuild from being so
crappy and that certificate issue means nothing...?</p>
<p>hope this is helping. doh.</p>
<p>let me know if you want me to try anything else -- its
apparently fixed now - so Im not sure....I will let you know if it
breaks again and I discover what I did.</p>
<p>:)</p></div>TJ Marboistag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:25:58Z2012-08-18T20:25:58Zpossible bug with uninstalled GPGTools<div><p>If i remember correctly there was a bug in an old version of
GPGMail which caused the flags to be changed incorrectly.<br>
I very much doubt, that the flags are set in a persistent way from
what I've seen in the Mail.app internals, but that's the only
explanation I have that could be causing this for old emails.</p>
<p>As you see though, there are some strange things going on with
S/MIME in Mail.app, but I think most of the problems are not
related to GPGMail.<br>
It's interesting however what happens when you rebuild your
index.</p>
<p>Once the GPGMail 2.0 is out it would be interesting to see, if
you're seeing the problem again with new emails.</p>
<p>Glad you're problem is partly fixed at least :)</p>
<p>I'll close this discussion, but let us know if it happens again
and thanks for all the tests!</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:28:52Z2012-08-18T20:28:52Zpossible bug with uninstalled GPGTools<div><p>WAIT!</p>
<p>:) haha.. doh.</p>
<p>for some strange reason -- the FIRST email test I sent out...
had the lock and check...</p>
<p>now subsequent emails going out to the same person... do NOT
show the lock and check...???</p>
<p>Im expecting to see that little lock and check...</p>
<p>why would the first email after a rebuild be as expected...and
then all subsequent NOT?</p>
<p>???</p></div>TJ Marboistag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:30:14Z2012-08-18T20:30:14Zpossible bug with uninstalled GPGTools<div><p>Oh freaking el, their S/MIME implementation is seriously messed
up.</p>
<p>So to recap, GPGMail is no longer installed, right?</p>
<p>Could you check the raw source of your outgoing emails and
verify that content-type is indeed multipart/encrypted?</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:33:39Z2012-08-18T20:33:39Zpossible bug with uninstalled GPGTools<div><p>haha.. sorry.</p>
<p>you are right their S/MIME has some issues..</p>
<p>the RAW email looks very much encrypted and signed to me...
gobledy gook that I cannot read.</p>
<p>So its not a problem of the email format... but the stupid
little checkbox and lock it was bothers me...its just not flagging
properly...</p>
<p>and why would it only do it ONCE at the start?</p>
<p>yes - triple check - no GPGMail installed... no plug in
additions showing - nada.</p>
<p>?</p></div>TJ Marboistag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:35:56Z2012-08-18T20:35:56Zpossible bug with uninstalled GPGTools<div><p>It's really really strange. But I've seen this stuff before. At
least similar while developing the GPGMail plugin.<br>
What you can try is create a new S/MIME certificate.<br>
That solved stuff for me a few times, but of course it should
definitely not be the solution.<br>
Try sending some encrypted and signed mails to yourself and check
if the lock and sign icon appear in the inbox.</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:48:35Z2012-08-18T20:48:35Zpossible bug with uninstalled GPGTools<div><p>Ok</p>
<p>it definitely arrives with security and lock showing in
INBOX....</p>
<p>but outbox - nada... the raw headers show the .p7 file and when
i go to read the raw source its definitely crypt!</p>
<p>I will try making a new certificate soon and report on that
one... I screwed that one up anyhow because I self signed as a CA -
and then used the root...</p>
<p>I think you are supposed to only use the root to sign another
certificate and THEN use that... I'm obviously not a very qualified
CA to be tinkering with this! ha.. but maybe I will learn enough
one day to be James Bond... who knows...one can only dream.</p>
<p>Ill let you know what happens after a new certificate is done -
its late here so ill report back later when i have time!</p>
<p>if you think of anything in the meantime you want me to try let
me know... this may well be a damn Apple bug...and then them not
letting us really post bugs to radar....agh!</p>
<p>I used to be able to call friends and ask them to post - but
that don't fly anymore!</p></div>TJ Marboistag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:52:02Z2012-08-18T20:52:02Zpossible bug with uninstalled GPGTools<div><p>If we can somehow recreate the scenario I'll file a bug. It's
possible for developers with an Apple Mac|iOS Developer
account.</p>
<p>Yeah, the root CA should only be used to sign other
certificates, or to create other signing entities, but I know from
experience that it's not super easy to set one up correctly.</p>
<p>It's getting late here as well, think our time difference might
only be 1 hour or so. Based on your last name, are you french?</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:57:28Z2012-08-18T20:57:28Zpossible bug with uninstalled GPGTools<div><p>Luke!</p>
<p>Im half-French.... but Im not in France right now! are you
French? haha.</p>
<p>:)</p>
<p>Im in Russia! Where the hell are you? one hour different? Im in
the middle of Russia about 15 hours due east from moscow!!</p>
<p>I assumed you were in the bay area or something?</p>
<p>TJ</p></div>TJ Marboistag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:59:11Z2012-08-18T20:59:11Zpossible bug with uninstalled GPGTools<div><p>Aaah ok, but so at least I got the origin right :D</p>
<p>Our entire team is from Europe. Austria and Germany
basically.<br>
But the time difference is +2 :)</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T20:59:23Z2012-08-18T20:59:23Zpossible bug with uninstalled GPGTools<div><p>btw</p>
<p>I compared the header files of the two emails.... one that
showed locked and one that did not...</p>
<p>they looked nearly identical... only change were:</p>
<p>Subject:<br>
X-Universally-Unique-Identifier:<br>
Date:<br>
Message-Id:</p>
<p>which Im assuming is expected... the rest was perfectly the
same.. had the .p7 stuff attached and mail was scrambly.</p>
<p>have a good night.</p></div>TJ Marboistag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T21:00:20Z2012-08-18T21:00:20Zpossible bug with uninstalled GPGTools<div><p>Yeah, that shouldn't make a difference.<br>
It really looks like a bug in Mail.app</p>
<p>Wish you a good night too!</p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T21:06:19Z2012-08-18T21:06:19Zpossible bug with uninstalled GPGTools<div><p>:)</p>
<p>nice to meet you guys... awesome that you are nearby!</p>
<p>Im originally from SF - bay area... I guess I just stupidly
assume all coders are from or near SF. ha!</p>
<p>what a dumb American I can be.... Im in Russia because my wifes
family is here and I work with some great developers out here
too.</p>
<p>I'll have to come buy you guys some beer sometime!</p>
<p>cheers</p>
<p>Tj</p></div>TJ Marboistag:gpgtools.tenderapp.com,2011-11-04:Comment/181180582012-08-18T21:10:31Z2012-08-18T21:10:31Zpossible bug with uninstalled GPGTools<div><p>Nice to meet you!</p>
<p>Well, most developers are indeed from SF :D</p>
<p>It must be a big difference in temperature in Russia :D</p></div>Luke Le