summaryrefslogtreecommitdiff
path: root/sys/src/cmd/upas/imap4d
AgeCommit message (Collapse)Author
2023-03-12imap4d: add entry to detect file locked errors on hjfsAlex Musolino
Hjfs reports "file locked" whilst cwfs reports "file is locked". This whole approach is a bit crappy, but this change will get us (me) by for now.
2022-12-18upas/fs, imap4d: make setname() use /proc instead of #pcinap_lenrek
2020-11-22upas/*: fix mkfile issues (thanks amavect)Ori Bernstein
Fixes 3 issues in our upas mkfiles: - mk/mkfile and send/mkfile were rebuilding only the rfc822.tab.$O, even though the header also needed to be rebuilt. - CLEANFILES had a pattern that would not get expanded. - Third, ../upas/mkfile was being included in the wrong place and making the wrong rule default.
2020-11-17upas/*: cleanup mkfiles (thanks amavect)Ori Bernstein
Changeset 50ad211fb12f broke the libcommon rule in mkupas. Deleting the 'mk clean' in the recipe fixes this. Cleanup includes deleting UPDATE vars from all mkfiles, reorganization of vars in TARG,LIB,OFILE,HFILE order, and deletion of extra vars used for UPDATE.
2020-11-08imap4d: imap4date should ignore time and timezone (RFC3501, 6.4.4)Ori Bernstein
2020-09-26upas: convert to tmdate, change timezone formatOri Bernstein
Complete the conversion of upas to remove ctime, use the new date library, and print time zones in +hhmm format, instead of NNN format. This may affect code that expects specific names for timezones. Fix that code.
2020-07-05imap4d: fix missing return in %δ format of Dfmt()cinap_lenrek
2020-07-05imap4d: get rid of unixdate/unixfrom handlingcinap_lenrek
all this logic is already done by upas/fs, the unixdate and from fields in the info file will always be correct.
2020-07-05imap4d: fix mkfile to have the correct default targetcinap_lenrek
2020-07-03imap4d: respect errors from read(), remove debug printsOri Bernstein
When read() failed, we were casting the -1 return to unsigned, which would cause us to index out of bounds. found using dovecot imap test suite. While we're here, let's remove the stray debug prints.
2020-05-30imap4d: reject invalid month in date2tm()cinap_lenrek
2020-05-02make bind(2) error handling consistentcinap_lenrek
The mount() and bind() syscalls return -1 on error, and the mountid sequence number on success. The manpage states that the mountid sequence number is a positive integer, but the kernels implementation currently uses a unsigned 32-bit integer and does not guarantee that the mountid will not become negative. Most code just cares about the error, so test for the -1 error value only.
2019-09-21cmd/ip/*: chown the network connection after authenticationcinap_lenrek
for servers that handle incoming network connections and authentication, change the owner of the network connection file to the authenticated user after successfull authentication. note that we set the permissions as well to 0660 because old devip used to unconditionally set the bits.
2018-11-12upa/imap4d: ignore messages without digest infocinap_lenrek
2017-04-22libavl: lookup can return the closest matchspew
2017-03-12imap4d: simplify auth with encodefmt (backport from 9front)cinap_lenrek
2017-03-12merging erik quanstros nupascinap_lenrek