summaryrefslogtreecommitdiff
path: root/pith/folder.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2014-02-15 22:27:58 -0700
committerEduardo Chappa <chappa@washington.edu>2014-02-15 22:27:58 -0700
commitaa7d9f18ca61e2fb1998bcaedee9ecdfa93a0728 (patch)
tree72bee5a33580c59500d71f0fd324a0523deea4a0 /pith/folder.c
parent4a1cb9fd5554ef858945894a4dbe36e55f965934 (diff)
downloadalpine-aa7d9f18ca61e2fb1998bcaedee9ecdfa93a0728.tar.xz
* Fixes to documentation to update old washington.edu/alpine site
for patches.freeiz.com/alpine/. Work in progress. * prototype function tigetstr in pico/osdep/terminal.c * folders encoded in modified utf7 are transformed their names to a human readable utf8. * New attempt to fix smime support in Alpine. Messages sent by alpine with or without attachments should validate in all servers and in all folder formats.
Diffstat (limited to 'pith/folder.c')
-rw-r--r--pith/folder.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pith/folder.c b/pith/folder.c
index 037bf1ba..da0ea6d5 100644
--- a/pith/folder.c
+++ b/pith/folder.c
@@ -1410,6 +1410,17 @@ unsigned char *folder_name_decoded(unsigned char *mailbox)
return s;
}
+/* mutf7 encoded name of a folder, from its name in utf8.
+ * memory freed by caller.
+ */
+unsigned char *folder_name_encoded(unsigned char *mailbox)
+{
+ unsigned char *s;
+ s = (char *) utf8_to_mutf7(mailbox);
+ if (s == NULL) s = cpystr(mailbox);
+ return s;
+}
+
int
mail_list_in_collection(char **mailbox, char *ref, char *name, char *tail)
{