Compatibility between gmailfs in Ubuntu and gmailfs in Windows

Source: Internet
Author: User
Recently, gmailfs has been installed in Ubuntu (6.10) to verify compatibility with gmailfs in Windows. The conclusion is that it is incompatible.
If you are interested, you can verify it by yourself.
The following is the installation and use of gmailfs in Ubuntu Linux, with a bugfix for gmailfs attached.
1. installation:
Sudo apt-Get install gmailfs
This will install the gmailfs-0.7.2.

2. Configuration and use:
Edit/etc/gmailfs. conf and modify username and password.
Sudo mkdir/mnt/Gmail
Sudo mount. gmailfs NONE/mnt/Gmail
Or specify the user name and password:
Sudo mount. gmailfs NONE/mnt/Gmail-O username = <your Gmail account>, password = <your password>

After the mount is successful, you can use common Linux File Operation commands, such:
Sudo CP hello.txt/mnt/Gmail/
Sudo ls/mnt/Gmail/

3. Problems and Solutions:
1) "HTTP 404 bad request" error
Solution: edit the libgmail. py file and set

Code:
Try:
Link = Re. Search (re_page_redirect, pagedata). Group (1)
Redirecturl = urllib. Unquote (Link)
Add a line of code to become:
Code:
Try:
Link = Re. Search (re_page_redirect, pagedata). Group (1)
Redirecturl = urllib. Unquote (Link)
Redirecturl = redirecturl. Replace ('/x26 ','&')

Reference: http://mail.python.org/pipermail/python-list/2007-August/454440.html
4. End.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.