473,796 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3295
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".encod e('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".encod e('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
3142
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, which my IMAP server doesn't support. Is there a way to make PHP IMAP use just plain login authentication? Thanks, Ian (ian@onepost.net)
4
5039
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 php is not an option (I'm not the server owner). Any suggestions/links are appreciated. Thanks, Marko
0
1522
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 support... no" I've followed the instructions on the PHP website to the letter and don't see how i've gone wrong. Using php 4.3.4 and imap-2002e.
3
4394
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 a possiblity to use imap_body and give the name of the file as a parameter. Thanks in advance.
1
3027
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 Development by Luke Welling and Laura Thomson", I can get the Windows build of the imap libraries from http://www.php4win.de. But in going to the website, the title bar says "php4win suspended" with an empty page. The creators of IMAP,...
1
1584
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 fine. For the second part ..I m unable to access the imap_* functions to retreive mails from my mailbox. I read somewhere to recompile PHP using the --with-imap prefix... The phpmaual says to install the IMAP package from UW and recompile PHP...
1
1614
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 underlying >c-client library also supports NNTP, POP3 and local mailbox access methods. Can someone tell me where to go to find out how these functions work in relation to POP3?
0
1154
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 search parameters on line 55 from 'unread' (UNSEEN) to 'read' (SEEN), the tkinter window doesn't even pop up anymore. Any idea how to change the parameters of this program and yet still keep it functional?
0
1128
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 window using Tkinter. However, when I try to change the search parameters on line 55 from 'unread' (UNSEEN) to 'read' (SEEN), the tkinter window doesn't even pop up anymore. Any idea how to change the parameters of this program and yet still keep...
2
7579
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. Any help appreciated! The ordeal is a follows I am using Solaris 10 with php5.1.1. GCC:
0
9529
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10231
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10013
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.