diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-10-03 13:43:35 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-10-03 13:43:35 -0600 |
commit | 9064dd878d981f06e15278605ba34a299eba375f (patch) | |
tree | e85fe2dc77658427d6a013d6a5b39b1028d987c2 /imap/src/c-client/mail.c | |
parent | 2f6e4c8855e3ea23cbbfcb1a91ea10abbda29d85 (diff) | |
download | alpine-9064dd878d981f06e15278605ba34a299eba375f.tar.xz |
* Set up the IMAP ID at the moment of loging in to the server, rather than
as a one time option, in case we need to use a special IMAP ID.
Diffstat (limited to 'imap/src/c-client/mail.c')
-rw-r--r-- | imap/src/c-client/mail.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/imap/src/c-client/mail.c b/imap/src/c-client/mail.c index b52d0626..981025c1 100644 --- a/imap/src/c-client/mail.c +++ b/imap/src/c-client/mail.c @@ -326,6 +326,16 @@ void mail_link (DRIVER *driver) driver->next = NIL; /* this driver is the end of the list */ } +void free_id(IDLIST **idp) +{ + if(!idp || !*idp) return; + + if((*idp)->name) fs_give((void **) &(*idp)->name); + if((*idp)->value) fs_give((void **) &(*idp)->value); + if((*idp)->next) free_id (&(*idp)->next); + fs_give((void **)idp); +} + /* Mail manipulate driver parameters * Accepts: mail stream * function code |