[dovecot-cvs] dovecot/src/lib-index mail-cache.c, 1.67, 1.68 mail-cache.h, 1.22, 1.23 mail-transaction-log.c, 1.92, 1.93

cras at dovecot.org cras at dovecot.org
Sat Apr 23 11:45:26 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv20332

Modified Files:
	mail-cache.c mail-cache.h mail-transaction-log.c 
Log Message:
s/PREFIX/SUFFIX/ for .cache and .log filename suffixes..



Index: mail-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- mail-cache.c	7 Apr 2005 23:29:22 -0000	1.67
+++ mail-cache.c	23 Apr 2005 08:45:24 -0000	1.68
@@ -256,7 +256,7 @@
 	cache->index = index;
 	cache->fd = -1;
 	cache->filepath =
-		i_strconcat(index->filepath, MAIL_CACHE_FILE_PREFIX, NULL);
+		i_strconcat(index->filepath, MAIL_CACHE_FILE_SUFFIX, NULL);
 	cache->field_pool = pool_alloconly_create("Cache fields", 1024);
 	cache->field_name_hash =
 		hash_create(default_pool, cache->field_pool, 0,

Index: mail-cache.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- mail-cache.h	8 Apr 2005 12:14:42 -0000	1.22
+++ mail-cache.h	23 Apr 2005 08:45:24 -0000	1.23
@@ -3,7 +3,7 @@
 
 #include "mail-index.h"
 
-#define MAIL_CACHE_FILE_PREFIX ".cache"
+#define MAIL_CACHE_FILE_SUFFIX ".cache"
 
 struct mail_cache;
 struct mail_cache_view;

Index: mail-transaction-log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- mail-transaction-log.c	29 Mar 2005 12:18:49 -0000	1.92
+++ mail-transaction-log.c	23 Apr 2005 08:45:24 -0000	1.93
@@ -23,7 +23,7 @@
 #define LOG_DOTLOCK_STALE_TIMEOUT 0
 #define LOG_DOTLOCK_IMMEDIATE_STALE_TIMEOUT 300
 
-#define MAIL_TRANSACTION_LOG_PREFIX ".log"
+#define MAIL_TRANSACTION_LOG_SUFFIX ".log"
 #define LOG_NEW_DOTLOCK_SUFFIX ".newlock"
 
 static struct mail_transaction_log_file *
@@ -234,7 +234,7 @@
 	log->new_dotlock_settings.lock_suffix = LOG_NEW_DOTLOCK_SUFFIX;
 
 	path = t_strconcat(log->index->filepath,
-			   MAIL_TRANSACTION_LOG_PREFIX, NULL);
+			   MAIL_TRANSACTION_LOG_SUFFIX, NULL);
 	log->head = mail_transaction_log_file_open_or_create(log, path);
 	if (log->head == NULL) {
 		mail_transaction_log_close(log);
@@ -709,7 +709,7 @@
 		return 0;
 
 	path = t_strconcat(log->index->filepath,
-			   MAIL_TRANSACTION_LOG_PREFIX, NULL);
+			   MAIL_TRANSACTION_LOG_SUFFIX, NULL);
 	if (stat(path, &st) < 0) {
 		mail_index_file_set_syscall_error(log->index, path, "stat()");
 		return -1;



More information about the dovecot-cvs mailing list