[dovecot-cvs] dovecot/src/lib-storage/index index-mail.c,1.15,1.16

cras at procontrol.fi cras at procontrol.fi
Thu Aug 14 02:24:34 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv14418/lib-storage/index

Modified Files:
	index-mail.c 
Log Message:
Removed get_address() and get_first_mailbox() from mail interface.



Index: index-mail.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-mail.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- index-mail.c	11 Aug 2003 14:11:12 -0000	1.15
+++ index-mail.c	13 Aug 2003 22:24:32 -0000	1.16
@@ -808,35 +808,6 @@
 					 str_len(mail->data.header_data));
 }
 
-static const struct message_address *
-get_address(struct mail *_mail, const char *field)
-{
-	struct index_mail *mail = (struct index_mail *) _mail;
-	const char *str;
-
-	str = get_header(_mail, field);
-	if (str == NULL)
-		return NULL;
-
-	return message_address_parse(mail->pool, (const unsigned char *) str,
-				     (size_t)-1, 1);
-}
-
-static const char *get_first_mailbox(struct mail *_mail, const char *field)
-{
-	struct index_mail *mail = (struct index_mail *) _mail;
-	struct message_address *addr;
-	const char *str;
-
-	str = get_header(_mail, field);
-	if (str == NULL)
-		return NULL;
-
-	addr = message_address_parse(mail->pool, (const unsigned char *) str,
-				     (size_t)-1, 1);
-	return addr != NULL ? addr->mailbox : NULL;
-}
-
 static struct istream *get_stream(struct mail *_mail,
 				  struct message_size *hdr_size,
 				  struct message_size *body_size)
@@ -996,8 +967,6 @@
 	get_size,
 	get_header,
 	get_headers,
-	get_address,
-	get_first_mailbox,
 	get_stream,
 	get_special,
 	index_storage_update_flags,



More information about the dovecot-cvs mailing list