[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tool to store on IMAP server



>>>>> "NG" == Nicolas George <george@nsup.org> writes:

NG> I got curl to work (I did not know that curl could do IMAP):

NG> curl --user george --url imaps://server/Mail/testcurl --upload-file /tmp/mail

NG> Unfortunately, curl hardcodes that mail uploaded that way are seen:

NG>   /* Send the APPEND command */
NG>   result = imap_sendf(data,
NG>                       "APPEND %s (\\Seen) {%" CURL_FORMAT_CURL_OFF_T "}",
NG>                       mailbox, data->state.infilesize);

NG> … and I need them to be new.

How about keeping a locally patched version of curl on hand (you could
call it something like /usr/local/bin/imap-upload) which sets the flags
as you want them to be?

-- 
-JimC
cloos@jhcloos.com


Reply to: