473,386 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

IMAP UTF-7, any codec for that anywhere?

Is there any codec available for handling The special UTF-7 codec for IMAP?

I have searched the web for info, but there only seem to be discussions
about it. Not actual implementations.

This is what I am talking about:

http://www.faqs.org/rfcs/rfc2060.html
5.1.3. Mailbox International Naming Convention

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science
Jul 18 '05 #1
2 3276
Max M wrote:
Is there any codec available for handling The special UTF-7 codec for IMAP?

I have searched the web for info, but there only seem to be discussions
about it. Not actual implementations.


Is there something special do you need or is recipe OK?
u"\u00ff".encode('utf-7')

'+AP8-'
Cheers,
Brian
Jul 18 '05 #2
Brian Quinlan wrote:
Max M wrote:
Is there any codec available for handling The special UTF-7 codec for
IMAP?
Is there something special do you need or is recipe OK?
>>> u"\u00ff".encode('utf-7') '+AP8-'

A recipe would be excellent. Unfortunately yours is no right. It should
have looke like:
imapUTF7Encode(u"\u00ff")

'&AP8-'

I believe you missed the 'special' in "The special UTF-7 codec for IMAP?"

Imap folders use a non-standard version of utf-7, where some characters
are different.

I found som messages from 2001 on the net between a few Python unicode
developers, where they discuss implementing it. But I cannot find an
implementation anywhere.

I found a perl module that converts to/from the codec, but as usual that
is regex hell. Well ok its not that difficult, but I still need to think
to hard to parse Perl regex'

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ian Marlier | last post by:
I'm trying to get a PHP-based webmail setup going, but I'm running into a problem with IMAP authentication. Specifically, the PHP IMAP extension is trying to log in using CRAM-MD5 authentication,...
4
by: Marko | last post by:
Hi, I was just wondering if there is a way to connect to the secure imap server (port 993) without having --with-imap-ssl option turned on. I have --with-imap and --with-openssl and recompiling...
0
by: Hardeep Rakhra | last post by:
Heya, I'm trying to compile php with imap support on solaris 9, however when i run ./configure with all the relevant options it doesn't pick up the extensions and reports "checking for IMAP...
3
by: Joachim Smit | last post by:
Is it possible to extract the email-body from a IMAP-mail-file ? The function 'imap_body()' expects that I'm connected to an IMAP-server, but I'm not. I just have the file. So I'm looking for...
1
by: William Holroyd | last post by:
I have a computer I've set up as a testing server at home and I'm having a problem trying to locate the pre-compiled IMAP libraries for PHP on Windows. According to the book "PHP & MySQL Web...
1
by: vardhansasi | last post by:
hai...I m a newbie to linux... and i m working on a module where i have to 1. Install a MTA 2. Send and access received mails using PHP The first part is over...Installed QMail and its working...
1
by: Trevor | last post by:
In the PHP manual (http://us3.php.net/imap) it reads: >LIX. IMAP, POP3 and NNTP Functions >Introduction > >These functions are not limited to the IMAP protocol, despite their name. The...
0
by: Kevin F | last post by:
I've been trying to implement this script, it polls an IMAP inbox for unread messages and displays the sender and subject in a scrollable window using Tkinter. However, when I try to change the...
0
by: Kevin F | last post by:
Sorry to repost... but 4am didn't get much responses. I've been trying to implement this script, it polls an IMAP inbox for unread messages and displays the sender and subject in a scrollable...
2
by: J Huntley Palmer | last post by:
I am having a horrific time integrating uw-imap's c-client for imap support in php. The problem is a whole bunch of "Text relocation remains referenced against symbol" errors during linking....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.