aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-charset-map.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-09-28 19:31:29 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-09-28 19:31:29 +0800
commite71de4c02186efe577412709346154df96e35054 (patch)
tree125ad7e9d02cf42bf8acebefed08c39b8df675e5 /camel/camel-charset-map.h
parent18579aa7e01b4d313d2cf05f355aa4698b99cf7d (diff)
downloadgsoc2013-evolution-e71de4c02186efe577412709346154df96e35054.tar
gsoc2013-evolution-e71de4c02186efe577412709346154df96e35054.tar.gz
gsoc2013-evolution-e71de4c02186efe577412709346154df96e35054.tar.bz2
gsoc2013-evolution-e71de4c02186efe577412709346154df96e35054.tar.lz
gsoc2013-evolution-e71de4c02186efe577412709346154df96e35054.tar.xz
gsoc2013-evolution-e71de4c02186efe577412709346154df96e35054.tar.zst
gsoc2013-evolution-e71de4c02186efe577412709346154df96e35054.zip
New function to fold headers.
2000-09-28 Not Zed <NotZed@HelixCode.com> * camel-mime-utils.c (header_fold): New function to fold headers. 2000-09-27 Not Zed <NotZed@HelixCode.com> * camel-mime-parser.c (folder_scan_header): If we had an empty header, then it must be end of the headers too. (folder_scan_init): No we dont need to init the outbuf with a nul terminator. * camel-folder-summary.c (camel_folder_summary_set_uid): New function to reset the uid to a higher value. * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_sync): "something failed (yo!)" what sort of crap is this? Fixed all the indenting again, what wanker keeps running stuff through indent? (message_info_new): Check the uid we loaded off the disk, if it existed already, assign a new one. If it didn't then make sure the nextuid is higher. * camel-charset-map.c: New file, used to build a large unicode decoding mapping table, and use it to determine what is the lowest charset a given word can be encoded with. Uses tables from libunicode's source. * camel-internet-address.c (internet_encode): Use header_phrase_encode to properly encode the fullname, as required. refixed indenting. Who keeps doing that? (camel_internet_address_find_address): Changed fatal return/warnings into assertions. * camel-mime-utils.c (header_raw_append_parse): Check : explicitly (removed from is_fieldname() macro). (camel_mime_special_table): Changed to short, so we can represent more bit types. (quoted_encode): Take a mask of the safe chars for this encoding. (header_address_decode): Removed a #warning that makes no sense anymore. (header_decode_date): Fixed the 'broken date' parser code, if it ever decoded it it just threw away the result. (header_encode_string): Use better charset matching for encoding strings as well. 2000-08-31 Not Zed <NotZed@HelixCode.com> * providers/mh/camel-mh-summary.c (camel_mh_summary_sync): Save the index if we do a sync. (camel_mh_summary_check): Save the index here too. Probably. svn path=/trunk/; revision=5615
Diffstat (limited to 'camel/camel-charset-map.h')
-rw-r--r--camel/camel-charset-map.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/camel/camel-charset-map.h b/camel/camel-charset-map.h
new file mode 100644
index 0000000000..d5ce0799b8
--- /dev/null
+++ b/camel/camel-charset-map.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2000 Helix Code Inc.
+ *
+ * Authors: Michael Zucchi <notzed@helixcode.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public License
+ * as published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef _CAMEL_CHARSET_MAP_H
+#define _CAMEL_CHARSET_MAP_H
+
+unsigned int camel_charset_mask(unsigned int c);
+const char *camel_charset_best(const char *in, int len);
+const char *camel_charset_best_mask(unsigned int mask);
+
+#endif /* ! _CAMEL_CHARSET_MAP_H */