Sylpheed_portable 3.1.3

I posted yesterday about compiling Cryptofs:
http://bkhome.org/blog/?viewDetailed=02734

And the day before that about the need for a "portable" email client:
http://bkhome.org/blog/?viewDetailed=02732

Well, I was up to 3am working on it, but the sylpheed_portable PET has arrived (1MB):
http://distro.ibiblio.org/quirky/pet_packages-wary5/sylpheed_portable-3.1.3-cryptofs0.6.0-bogofilter1.2.2-w5c.pet

To make it completely self-sufficient, requiring no dependencies, it has Cryptofs and Bogofilter inside it. The only deps are 'fuse' and 'sqlite3', that all puppies have. I haven't tested Bogofilter.

When you install this PET, it installs to /usr/local/sylpheed_portable, but doesn't actually run from there. When you run it, it asks to be copied to a partition, from whence it can be run into the future. Any partition, USB Flash drives also.

The reason that it installs first into /usr/local/sylpheed_portable is so that Woof-built-puppies can have it in their package list. It will be there, looking like any normal Sylpheed, runnable via the menu or the 'email' desktop icon, but the first time you run it, it gets relocated wherever you want it.

When it is finally installed in a mounted partition, it is just a RoxApp that you click to run. All configuration files and downloaded email are encrypted, and when you run Sylpheed you are asked for a password. Everything gets decrypted for the duration that you are using Sylpheed, then locked up again when you quit Sylpheed.

I'm using it with all the emails that I downloaded from Gmail, all 6,500 of them. Strangely, it seems faster accessing them via cryptofs than before.

Can we give the same "portable" treatment to Thunderbird/SeaMonkey-Mail? I don't know, will have to experiment -- sometime, don't know when.

Today will take some time off for family stuff -- someone's birthday, plus the old folks like to be visited.


Posted on 6 Mar 2012, 8:18


Comments:

Posted on 6 Mar 2012, 8:26 by BarryK
Sylpheed English only
Note that I have not internationalized the /usr/local/sylpheed_portable/run installation/wrapper script. I wanted to make sure that testers like how it works first, and of course be sure that it has no bugs.



Posted on 6 Mar 2012, 8:45 by BarryK
GnuPG plugin
Regarding the GnuPG plugin for Sylpheed, my understanding is that this is different from what I have done. GnuPG is used to encrypt emails when they are posted, for security enroute.

My implementation is a generic technique that makes all files secure when Sylpheed is not in use. That is, if your Flash pen drive is stolen, no problem.

You can also make backup copies of the 'sylpheed_portable' directory and they will also be secure (and each of them independently runnable, as long as you know the password).



Posted on 6 Mar 2012, 8:53 by BarryK
Correction
You can also make backup copies of the 'sylpheed_portable' directory and they will also be secure (and each of them independently runnable, as long as you know the password)

...er, I might have hard-coded the folder name to be 'sylpheed_portable'. Might have to modify the 'run' script to handle other names, like a backup folder named 'sylpheed_portable-20120309'.



Posted on 6 Mar 2012, 20:28 by esmourguit
my experience
I tested sylpheed_portable on Racy 5.2.2.8. I followed the installation process and everything went well. I downloaded my emails (160) very quickly.
I closed and opened several times the sylpheed_portable directory cliking on it and every time I entered the password (twice) and Sylpheed opened without problem. It took less than an hour.
But unfortunately after the sixth or seventh time he has not accepted the password (bad password,) although I typed the correct twice each time.


Posted on 7 Mar 2012, 8:57 by BarryK
Re bad password
esmourguit,
You can test it on the commandline.

Open a terminal inside folder 'sylpheed_portable' on your mounted partition.

You will see two folders Mail.encrypted and sylpheed-config.encrypted -- these have the encrypted files.

You will also see two folders Mail and sylpheed-config -- these will have normal unencrypted files when cryptofs is mounted.

To mount:

# export PATH=`pwd`/bin:$PATH
# cryptofs --root=sylpheed-config.encrypted sylpheed-config


...it will ask for password. If you have entered correct password, then you will see unencrypted files inside folder sylpheed-config.

The 'run' script checks that the correct password was used by looking for a file named sylpheed-config/sanity -- if it exists, then the correct password was used.

When finished, unmount:

# fusermount -u sylpheed-config



Posted on 9 Mar 2012, 17:09 by esmourguit
my experience
Thank you Barry

I followed your instructions, I entered the password and actually, I was able to access the emails.
But in this case, when I type the same password, why I can not enter directly in Sylpheed?


Posted on 9 Mar 2012, 18:07 by BarryK
Re cryptofs
esmourguit,
I presume that you are asking me about running Sylpheed directly from the terminal.

There are two folders that have to be decrypted:

# export PATH=`pwd`/bin:$PATH
# cryptofs --root=sylpheed-config.encrypted sylpheed-config
# cryptofs --root=Mail.encrypted Mail
# sylpheed


Then afterward:
# fusermount -u sylpheed-config
# fusermount -u Mail


That should work. I am puzzled that the 'run' script has gone wrong for you. I will need to do some more testing of it.



Posted on 9 Mar 2012, 18:10 by BarryK
Sylpheed correction
esmourguit,
Oops, the line to run Sylpheed should have been:

sylpheed --configdir `pwd`/sylpheed-config



Posted on 9 Mar 2012, 18:32 by esmourguit
run in terminal
Thanks Barry, but here are the results :
# export PATH=`pwd`/bin:$PATH
# cryptofs --root=sylpheed-config.encrypted sylpheed-config
Enter password:
# cryptofs --root=Mail.encrypted Mail
Enter password:
# sylpheed --configdir `pwd`/sylpheed-config
bash: sylpheed: command not found

However sylpheed-config and Mail are populated.


Posted on 10 Mar 2012, 4:19 by tkc47
Got Sylpheed working on Racy
Having read esmourguit's problem, when I installed sylpheed, I made sure I had a backup of my files. Sure enough I had the same problem. Got the same code, etc.

I deleted the sylpheed, both the download and the file I created on harddrive. Then re-installed with a different password and all is working well now. That is on Racy5.2.2.8, won't run on Lucid 528.004. Will try again today on Lucid 528.004

Thanks Barry!


Posted on 11 Mar 2012, 17:51 by Jan
Sylpheed
@esmourguit,

I think Barry forgot the ./ for executing from the current Directory.
Try #./sylpheed --configdir `pwd`/sylpheed-config

@BarryK
Took a first look at it in wary verry nice thanks.
Tryed in pup420 too and got it running, one extra dependary for Sylpheed is a more resent glibc i think v 2.7.
And cryptofs needs to compiled on that system and update fuse.

How do you get the lib files linked in the bin file ?

The update of glibc is verry tricky , i took the files out akita(same kerneland pupderivate) and made a pet.


Posted on 11 Mar 2012, 20:09 by BarryK
Re sylpheed
No, what I did is correct.

The PATH variable is modified, the Sylpheed executable is in bin/sylpheed in the package.



Posted on 12 Mar 2012, 20:46 by esmourguit
my emails back
I got my emails back.
It seems I had a session of Sylpheed_portable that ran in the background. I noticed that, when i want to kill a process.
After killing the session in ran background, I could enter my password which was accepted without problem so I could access Sylpheed.
Thanks.