Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/mail-user.h @ 8137:b2a258213ee0 HEAD
Created mail_user_[try_]home_expand(). Used them for expanding mail directories.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 31 Aug 2008 12:23:43 +0300 |
parents | f12f8c1da0bf |
children | 6dd0c6755afe |
line wrap: on
line diff
--- a/src/lib-storage/mail-user.h Sun Aug 31 11:50:27 2008 +0300 +++ b/src/lib-storage/mail-user.h Sun Aug 31 12:23:43 2008 +0300 @@ -36,4 +36,9 @@ struct mail_user *mail_user_init(const char *username, const char *home); void mail_user_deinit(struct mail_user **user); +/* Replace ~/ at the beginning of the path with the user's home directory. */ +const char *mail_user_home_expand(struct mail_user *user, const char *path); +/* Returns 0 if ok, -1 if home directory isn't set. */ +int mail_user_try_home_expand(struct mail_user *user, const char **path); + #endif