You are here

Enigmail

17 posts / 0 new
Last post
apt105
Offline
Last seen: 16 years 3 months ago
Joined: 2007-03-30 13:58
Enigmail

Hi all

I've been playing around with the thunderbird, enigmail and gnupg
portable setup as described on the thunderbird support page and have
found that the gpg keys are actually being stored in
%APPDATA%\gnupg rather than
..\CommonFiles\gpg\Data. Is there any way to change this?

Cheers

wk
wk's picture
Offline
Last seen: 11 months 4 weeks ago
Joined: 2007-09-05 12:31
You might find something here..

"Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis .." Friday Next -
"May The Schwartz be with You!" Yogurt the Yoda

rab040ma
Offline
Last seen: 2 months 6 days ago
Joined: 2007-08-27 13:35
Another interesting post on

Another interesting post on the subject is https://portableapps.com/node/11070#comment-63281

I think the idea is that GnuPG will get put in CommonFiles eventually, but we may need to wait for a new release.

(Yes I know JTH said "next week", but his weeks seem to be much longer than most of the rest of us.) Smile

MC

mstinaff
Offline
Last seen: 14 years 3 months ago
Joined: 2006-10-01 10:58
1.4.7 or 1.4.8?

Are you using GPG_for_Thunderbird_Portable_1.4.7.paf.exe or GnuPGPortable Dev Test 2.2?

I have included a modified ThunderbirdPortable.nsi to do exactly what you want. (well almost, the data is stored in /CommonFiles/Data/GnuPG so that it gets picked up by the current standard backup scheme) Are you comfortable building this yourself?

To group at large, should I include a compiled version of ThunderbirdPortable.exe with my modifications? I would put in the dev test startup screen to avoid confusion with the official app. Are there other considerations? Or should I just insist that until Mr. Haller and other senior devs approve and bless my changes (pretty pretty please?) that people must compile it themselves if they want it?

Key ID: 0xDAE3095F
Fingerprint: 5D98 65D2 1844 21A5 76C1 F0F6 4BE6 D689 DAE3 095F

apt105
Offline
Last seen: 16 years 3 months ago
Joined: 2007-03-30 13:58
Sorry for the late reply.

Sorry for the late reply. Was initially using the 1.4.7 version which is what was placing the keys in %APPDATA%. Have just been trying your Dev Test 2.2, but couldn't get thunderbird.nsi to compile, it threw up the following:

!include: could not find: "Registry.nsh"
Error in script "E:\PortableApps\ThunderbirdPortable2\Other\Source\ThunderbirdPortable.nsi" on line 69 -- aborting creation process

And I haven't been able to find Registry.nsh either. I've never had the pleasure of using NSIS before, but it seems straight forward enough to use and I've got a seperate fresh thunderbird installation that I'm testing everthing on.

rab040ma
Offline
Last seen: 2 months 6 days ago
Joined: 2007-08-27 13:35
That one is hard to find. I

That one is hard to find. I think it is at

http://forums.winamp.com/showthread.php?threadid=223066

Maybe we should just post the binary somewhere?

MC

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 5 months ago
Developer
Joined: 2006-12-06 18:07
Umm, it's right here

Umm, it's right here http://nsis.sourceforge.net/Registry_plug-in

To get there without following the link

  1. Go to main NSIS page
  2. click Plug-Ins
  3. Click Registry Plugin

The developer formerly known as ZGitRDun8705

apt105
Offline
Last seen: 16 years 3 months ago
Joined: 2007-03-30 13:58
Got it

Well the compilation now gets further, but dies on line 232 with Invalid command: FindProcDLL::FindProc. Maybe a binary would be easier.

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 5 months ago
Developer
Joined: 2006-12-06 18:07
If you plan on doing more

If you plan on doing more with NSIS you will need more of the plugins anyway. Here's a link to the list of .dll and .nsh files needed, it's not complete yet, but has most of them...unfortunately there aren't links to the files either, I plan on fixing that tonight though.

The developer formerly known as ZGitRDun8705

apt105
Offline
Last seen: 16 years 3 months ago
Joined: 2007-03-30 13:58
Cheers!

Got those and the thunderbird compiled properly. However, it was still reading the keys from %APPDATA% so in the end have given up on the commonfiles approach and just placed the gpg apps inside the thunderbird directory structure which is working fine now. I prefer the idea of a commonfiles approach to gpg and other such items, so if you've got any more ideas, I'll keep trying them in my test environment.

mstinaff
Offline
Last seen: 14 years 3 months ago
Joined: 2006-10-01 10:58
step away from the forum for a few days...

Wow, I applaud your tenacity! I apologize for not jumping in sooner, Had to drop everything and learn Perl for work. I'll try to come up with some debug steps tonight when I get home.

Thank you for not giving up!

Key ID: 0xDAE3095F
Fingerprint: 5D98 65D2 1844 21A5 76C1 F0F6 4BE6 D689 DAE3 095F

mstinaff
Offline
Last seen: 14 years 3 months ago
Joined: 2006-10-01 10:58
Some debug to try

Ok, first with ThunderbirdPortable.exe not running, open

\PortableApps\ThunderbirdPortable\Data\Profile\prefs.js

in your favorite text editor. Search for the line

user_pref("extensions.enigmail.agentPath",

What is the path there?
Now run ThunderbirdPortable via the modified launcher and reopen the prefs.js file, now what is the path?

Verify that
\PortableApps\CommonFiles\GnuPG\App\gpg.exe
exists.

Verify that GPGPathDirectory and GPGHomeDirectory are not in the Thunderbirdportable.ini The ini file is given priority over any auto discovered path.

and of course the big doh that got me a few times. Make sure ThunderbirdPortable was not running when you compiled and that you launched with the new version after compile.

If you are not 100% confident with your compiled version I can send you a precompiled exe. Does anyone have an objection to me including the modified exe in the GnuPG Portable distribution?

Key ID: 0xDAE3095F
Fingerprint: 5D98 65D2 1844 21A5 76C1 F0F6 4BE6 D689 DAE3 095F

mstinaff
Offline
Last seen: 14 years 3 months ago
Joined: 2006-10-01 10:58
AH HA!

Found it!

the GnuPG finder code first looks for gpg.exe in the order
commonfiles
thunderbirdportable
local

the first instance is what it returns as the path to gpg.exe
Then it searches for the keyrings in the order
commonfiles
thunderbirdportable
local
by testing for *.gpg! so if there is no keyring in /PortableApps/CommonFiles/Data/GnuPG then it just moves along to thunderbird and then local!

This could be solved a few ways
1. have a dummy keyring created in commonfiles at installation
2. have the test only look for the existence of the directory

either way I could set up to the GnuPG Portable installer copy exsiting Thunderbird Portable Keyrings (if found) over at install. Any reason not to?

Thank you so much for beta testing!

Key ID: 0xDAE3095F
Fingerprint: 5D98 65D2 1844 21A5 76C1 F0F6 4BE6 D689 DAE3 095F

rab040ma
Offline
Last seen: 2 months 6 days ago
Joined: 2007-08-27 13:35
Ah ... If you search Google

Ah ... If you search Google for "registry.nsh" you find a bunch of red herrings. I guess you need to know enough to search for "registry plug-in" or manually go through the plug-ins.

MC

John T. Haller
John T. Haller's picture
Offline
Last seen: 10 hours 48 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Use the official method

If you use the official method of installing GnuPG into Thunderbird Portable, it will work just fine. GnuPG Portable is not supported by Thunderbird Portable at the moment.

Sometimes, the impossible can become possible, if you're awesome!

mstinaff
Offline
Last seen: 14 years 3 months ago
Joined: 2006-10-01 10:58
If you still want

It is Un-Official and as such is supported by no one but myself, but I have posted GnuPG Portable Dev Test 2.3 which includes an updated GnuPGPortable.nsh and a compiled (with Dev Test splash) ThunderbirdPortable.exe

GnuPG Portable and the included ThunderbirdPortable.exe are UNOFFICIAL!
As such there is no guarantee, expressed or implied, that it will be compliant with future official versions. I will however do my best to support this and provide a smooth migration should the official release of GnuPG go a different direction.

Side note, GnuPG Portable Dev Test 2.2 had 70 downloads. For my first open source contribution I feel pretty special about that.

Key ID: 0xDAE3095F
Fingerprint: 5D98 65D2 1844 21A5 76C1 F0F6 4BE6 D689 DAE3 095F

apt105
Offline
Last seen: 16 years 3 months ago
Joined: 2007-03-30 13:58
It works!

I need to check this thread more often. Have installed 2.3 with a fresh install of TBP and Enigmail and can confirm it works straight off. Keys are stored in commonfiles\data\gnupg and a test email was signed without any problems. Thanks for your work!

Log in or register to post comments