From 7fc592861825abf6bf91a324d636ef433f8100b8 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 13 Feb 2001 00:30:45 +0000 Subject: Add address headers to list that we dont fold when writing. The are 2001-02-12 Not Zed * camel-mime-part.c (init_header_name_table): Add address headers to list that we dont fold when writing. The are properly formatted as we build them. (write_to_stream): DOH, lookup the header name in the formatted hash table, not the value, that would never have worked. * camel-internet-address.c (camel_internet_address_encode_address): Changed to take a parameter saying how much we've printed so far. We now fold the header as we format it. We dont fold addresses, even if they are too long, we simply put them on another line by themselves: this should make the result more parsable by mailers that can't handle split up addresses (which are legal). (internet_encode): Fix for changes to above. svn path=/trunk/; revision=8198 --- camel/camel-internet-address.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/camel-internet-address.h') diff --git a/camel/camel-internet-address.h b/camel/camel-internet-address.h index 879514c158..7afd74fad9 100644 --- a/camel/camel-internet-address.h +++ b/camel/camel-internet-address.h @@ -49,7 +49,7 @@ int camel_internet_address_find_name(CamelInternetAddress *, const char *, con int camel_internet_address_find_address(CamelInternetAddress *, const char *, const char **); /* utility functions, for network/display formatting */ -char * camel_internet_address_encode_address(const char *name, const char *addr); +char * camel_internet_address_encode_address(int *len, const char *name, const char *addr); char * camel_internet_address_format_address(const char *real, const char *addr); #endif /* ! _CAMEL_INTERNET_ADDRESS_H */ -- cgit