"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libs/sqwebmail/maildir.c" between
sqwebmail-5.9.3.tar.bz2 and sqwebmail-6.0.0.tar.bz2

About: SqWebMail is a CGI Webmail client for Maildir mailboxes (module of the Courier mail server).

maildir.c  (sqwebmail-5.9.3.tar.bz2):maildir.c  (sqwebmail-6.0.0.tar.bz2)
skipping to change at line 3898 skipping to change at line 3898
free(p[i]); free(p[i]);
} }
if (p) if (p)
free(p); free(p);
} }
/* /*
** Convert folder names to modified-UTF7 encoding. ** Convert folder names to modified-UTF7 encoding.
*/ */
char *folder_toutf7(const char *foldername) char *folder_toutf8(const char *foldername)
{ {
char *p; char *p;
int converr; int converr;
p=unicode_convert_tobuf(foldername, sqwebmail_content_charset, p=unicode_convert_tobuf(foldername, sqwebmail_content_charset,
unicode_x_imap_modutf7, &converr); unicode_x_smap_modutf8, &converr);
if (p && converr) if (p && converr)
{ {
free(p); free(p);
p=NULL; p=NULL;
} }
if (p) if (p)
return (p); return (p);
p=strdup(foldername); p=strdup(foldername);
if (!p) if (!p)
enomem(); enomem();
return (p); return (p);
} }
char *folder_fromutf7(const char *foldername) char *folder_fromutf8(const char *foldername)
{ {
char *p; char *p;
int converr; int converr;
p=unicode_convert_tobuf(foldername, p=unicode_convert_tobuf(foldername,
unicode_x_imap_modutf7, unicode_x_smap_modutf8,
sqwebmail_content_charset, sqwebmail_content_charset,
&converr); &converr);
if (p && converr) if (p && converr)
{ {
free(p); free(p);
p=NULL; p=NULL;
} }
if (p) if (p)
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)