Forums

building user specific apps that require root.

million pardons if this was answered,
Is it possible to install offlineimap into my account?
So I used this method:

$ git clone https://github.com/OfflineIMAP/offlineimap.git
$ cd offlineimap
$ cd make
$ make
$ python setup.py install
     >> error: could not create '/usr/local/lib/python2.7/dist-packages/offlineimap': Permission denied

Using pip with --user option

pip install --user offlineimap
This fails with:
 Traceback (most recent call last):
 File "<string>", line 20, in <module>
 File "/tmp/pip-build-mA8cqg/offlineimap/setup.py", line 28, in <module>
 from test.OLItest import TextTestRunner, TestLoader, OLITestLib
 ImportError: No module named OLItest
  ----------------------------------------
pyhxr ~]$ pip install --user olitest
Collecting olitest
Could not find any downloads that satisfy the requirement olitest
No distributions at all found for olitest
egg_info" failed with error code 1 in /tmp/pip-build-mA8cqg/offlineimap

Thanks
p.s. I did read a similar article in the forum, it was advised to set up a google app for domain. I'd rather not use that method (if it can be helped) for personal reasons, is there another approach? My intentions where to set up Mutt with offline imap support etc. as outlined in this post.

I think the best bet would be to use your git clone, and then follow the instructions for "Single user installation" on this page -- that doesn't require root.

thank you, not sure how I missed that. wish I could report that this fixed everything, but now there is some issues with google. I'll be sure to report back if I get a favorable solution with this method. cheers

OK, good luck!

Update, I got basic gmail working with mutt as a first step and discovered that it was google blocking it, they sent me an email that took me to a settings page that required me to lower my security settings to continue and it is now working. I'm sure that will solve the problem with offlineimap as well.

If anyone was considering this and has not used mutt a nice example muttrc here.

I also noticed that if you have a lot of special characters in your password mutt doesn't like it and it's better to just wait for a password prompt, probably a little more secure as well. (Even with quotes)

Thanks for the update! So it's all working OK now?

Mutt and offlineimap work. and I set up a schedule to run every hour that querries the imap server on my behalf. This requires putting credentials in a file so I chmod 700 on the containing folder, (actually I'm assuming it's recursive but I better go back and check the docs).

**edit: chmod'ing a folder does work recursively on the files but from what I can tell the correct method:
chown username /path/to/folder
chmod go-x /path/to/folder 
I found that I could not even run an ls on the files after that so you might want to just change permissions on that one file.**

So now I have a few implementation details I'm working out. I'm sure they will be answered by reading all the docs.

imap syncs but mutt opens with only new mail, it doesn't sync or 'see' the archived folders which are there. my hunch is that it's a misconfiguration in the rc, maybe path or something.

I was more curious about the implementation of all this, then it being anything mission critical. So I'll poke at it some more next weekend, and get back to my main goals.

Thank you again for checking back and asking.

keep us posted!

This link seem pretty epic.

And this seems like it's very close/similar to your setup

These links look helpful indeed. The screen shot in "the homely mutt" <reading email> looks very cool, can't wait to give it a try

thank you

This highlighting for git diffs also looks cool.

I also tried installing the sidebar patch on my local machine and it works great. However, you will have to wait till our next deploy before we can get that into the PythonAnywhere build.

Fro anyone wondering if it's possible to patch the mutt source code and then build it ourselves, it seems pretty complicated/impossible. Some links:

http://www.bytebucket.org/mutt/mutt/src/09be71b645a7cd022490325d27c09ae6190ba8c8/doc/patch-notes.txt

http://dev.mutt.org/trac/

http://dev.mutt.org/trac/wiki/PatchList

http://www.lunar-linux.org/mutt-sidebar/