summaryrefslogtreecommitdiff
path: root/libmailutils/wicket/noauth.c
AgeCommit message (Collapse)AuthorFiles
2024-01-06Update copyright yearsSergey Poznyakoff1
2023-01-22Update copyright yearsSergey Poznyakoff1
2022-01-02Update copyright yearSergey Poznyakoff1
2021-01-05Update copyright yearsSergey Poznyakoff1
2020-02-08Update copyright yearsSergey Poznyakoff1
2019-01-23mail: new notation @, for the mailbox given with the -f optionSergey Poznyakoff1
* doc/texinfo/programs/mail.texi: Document the @ notation. * NEWS: Likewise. * mail/copy.c (mail_copy0): Rewrite. Use mailbox URLs instead of filenames. * mail/file.c (mail_expand_name): Return integer code. On success, convert the expanded name to URL and return it in the memory location supplied by the second argument. Use new shorthand notation @, for the name of the file given with the -f option. All uses changed. * mail/mail.c (secondary_url): New global. (main): Save the URL of the file given with the -f option in secondary_url. Use it, instead of the file variable, to decide what kind of summary message to display for empty mailbox (see commit 99b6b6f02c3cf94ebe1daf7233a702c743d6a2b5). * mail/mail.h (secondary_url): New global. (mail_expand_name): Change prototype. * mail/mailline.c: Minor changes. * libmailutils/wicket/noauth.c (noauth_ticket_get_cred): Return MU_ERR_AUTH_NO_CRED.
2019-01-21Improve folder handling and expansion in mail. Add convenience functions to ↵Sergey Poznyakoff1
the library. * configure.ac: Build libmailutils/wicket * libmailutils/Makefile.am: Likewise. * libmailutils/base/wicket.c: Move file wicket stuff to ... * libmailutils/wicket/file.c: ... here * libmailutils/wicket/noauth.c: New file. * libmailutils/wicket/Makefile.am: New file. * include/mailutils/auth.h (mu_noauth_ticket_create) (mu_noauth_wicket_create): New protos. * include/mailutils/folder.h (mu_folder_attach_ticket) (mu_folder_is_local): New protos. * include/mailutils/mailbox.h (mu_mailbox_attach_ticket): New proto. * include/mailutils/sys/folder.h (_mu_folder): Remove flags. Add new member: is_local. * libmailutils/mailbox/folder.c (mu_folder_create_from_record): Set is_local. (mu_folder_attach_ticket): New function. (mu_folder_is_local): New function. * libmailutils/mailbox/mbx_default.c (mu_mailbox_attach_ticket): New function. * libmailutils/url/create.c: Allow for trailing / in url. * libproto/imap/mbox.c (_imap_mbx_open): Do initial scan. (__imap_msg_get_stream): Initialize clos.size. * libproto/imap/tests/imapfolder.c: Attach ticket to the folder. * mail/cd.c (mail_cd): Expand directory name (~, %, + notations) prior to use. * mail/file.c (mail_file): Attach ticket to the mailbox. * mail/copy.c (append_to_mailbox): Likewise. * mail/mailline.c: Rewrite directory expansion. Implement fully functional folder expansion. * mail/util.c (util_folder_path) (util_outfolder_name): Rewrite using mu_mailbox_expand_name.

Return to:

Send suggestions and report system problems to the System administrator.