curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: Upload of new mail via IMAP

From: Nicolas George via curl-users <curl-users_at_lists.haxx.se>
Date: Fri, 13 Sep 2024 13:54:07 +0200

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
Received on 2024-09-13