Re: Upload of new mail via IMAP
Nicolas George via curl-users <[email protected]> Fri, 13 Sep 2024 13:54:07 +0200
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <[email protected]> |
Daniel Stenberg (12024-09-09):
> What would you say the ideal way would be to set such an option on the
> command line? Assuming we keep the current way the default for backwards
> compatibility.
Hi.
It seems to me the source code contains already quite a few
protocol-specific options:
https://github.com/curl/curl/blob/master/src/tool_getparam.c
{"$q", "ftp-skip-pasv-ip", ARG_BOOL},
{"*V", "aws-sigv4", ARG_STRING},
{"$G", "delegation", ARG_STRING},
{"*e", "disable-epsv", ARG_BOOL},
Adding an extra option, maybe "mail-seen" would not be a betrayal.
Other possibilities would be to use the URL query string or fragment
string:
imaps://$server/$folder?seen=false
imaps://$server/$folder#seen=false
Regards,
--
Nicolas George
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette: https://curl.se/mail/etiquette.html