aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas
Commit message (Collapse)AuthorAgeFilesLines
* upas: don't hardcode path for rc(1)Sören Tempel2022-07-272-1/+4
|
* libthread: add threadmaybackgroundRuss Cox2020-12-302-0/+12
| | | | | | | | Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves.
* Trivial changes: whitespace and modes.Dan Cross2020-01-1054-273/+249
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* upas/nfs: fix null date when message is sent to plumber (#263)telephil2019-09-191-1/+1
| | | | | | | | | When fetching, messages are sent to plumber as soon as the ENVELOPE part is read. The date field of the message is sent when the INTERNALDATE part is read and there is no guarantee that this will be read before the ENVELOPE. This bug can be observed when using faces(1) which will retrieve messages with a null date and then always display a 'Jan 1' date instead of the correct one. The fix is to simply send the message to plumber after having read all parts, thus ensuring the message is complete.
* upas/smtp: fix TLS connections (#163)Zach Scott2018-11-142-0/+49
| | | | | | | | | Both `upas/nfs` and `upas/smtp` call the currently broken `tlsClient()` from libsec. This commit copies a fix from upas/nfs into upas/smtp. In `imapdial()`, upas/nfs replaces a process call for tlsClient with `stunnel3` when not on Plan 9. upas/smtp calls tlsClient directly as a function, so imapdial was copied into mxdial.c as `smtpdial()`, and tlsClient+dial replaced with a call to smtpdial.
* upas/nfs: correctly quote IMAP LOGIN argumentsCharles Collicutt2018-10-051-1/+1
| | | | | | According to RFC 3501 the arguments to the LOGIN command should be quoted strings (or length prefixed string literals). Without quoting, authentication to some IMAP servers (e.g. Dovecot) will fail.
* upas/nfs: fix warningsDavid du Colombier2017-10-133-10/+2
| | | | | | | | decode.c:146:8: warning: variable ‘argv’ set but not used fs.c:953:47: warning: variable ‘reset’ set but not used imap.c:348:6: warning: variable ‘prefix’ set but not used Updates #114.
* upas/nfs: search for stunnele3 in $PATHGleydson Soares2015-06-291-4/+7
| | | | | | | | | | | | | | | Do not hardcode stunnel directory path, just make sure that is installed in user '$PATH'. it is required for 'mailfs -t' TLS support, so printout an error string if it was not found. Tested with latest stunnel version 5.17 on OpenBSD and macosx. % mailfs -t imap.gmail.com ; echo $? 0 Change-Id: Icbd507c7efa81ef2aa7aed37bec5f639b37526cb Reviewed-on: https://plan9port-review.googlesource.com/1280 Reviewed-by: Russ Cox <rsc@swtch.com>
* upas: fix nil pointer dereferenceDavid du Colombier2014-06-051-2/+2
| | | | | R=rsc https://codereview.appspot.com/92650043
* upas/common: rename aux to auxxRuss Cox2014-06-032-1/+1
| | | | | TBR=rsc https://codereview.appspot.com/107760043
* upas: fix warningsDavid du Colombier2014-05-152-3/+3
| | | | | | | | | | smtp.c:232: warning: comparison with string literal results in unspecified behavior smtp.c:244: warning: comparison with string literal results in unspecified behavior marshal.c:1179: warning: variable ‘err’ set but not used LGTM=rsc R=rsc https://codereview.appspot.com/93290043
* mailfs: support for UTF-8 searchesAkshat Kumar2013-09-061-10/+45
| | | | | | | | | | | | | UTF-8 searches with the SEARCH command must be conducted in two steps: the first sends the SEARCH command with the length of the UTF-8 encoded string and the second sends the literal search term. The searches need to not be quoted. R=rsc, david.ducolombier, rsc, 0intro CC=plan9port.codebot https://codereview.appspot.com/13244043
* mailfs: add -u user argumentDavid du Colombier2011-11-283-6/+16
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/5435052
* mailfs: small fixes and plan 9 supportDavid du Colombier2011-11-226-5/+35
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/5429044
* upas: fix segfault when host not foundDavid du Colombier2011-11-211-1/+4
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/5370105
* upas/smtp: fixes for authenticated connectionsRichard Miller2011-08-312-2/+3
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/4967049
* mailfs: try to use the right version of stunnelFazlul Shahriar2011-08-161-0/+2
| | | | | R=rsc http://codereview.appspot.com/4876044
* upas/smtp: remove reference to /net in mxdialDavid du Colombier2011-06-021-1/+1
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/4535108
* mailfs: try tlsclient program before stunnelRuss Cox2010-05-111-1/+2
| | | | | R=rsc http://codereview.appspot.com/1169043
* mailfs: plumb messages correctly even if body comes before headerRuss Cox2008-12-061-1/+1
|
* mailfs: correct use of tcs for large inputsRuss Cox2008-07-141-9/+40
|
* upas: add misc to mkfileRuss Cox2008-07-101-1/+1
|
* nedmail: add -S parameter for alternate mail serviceRuss Cox2008-07-101-3/+7
|
* upas/fs: accomodate new post9pserviceRuss Cox2008-05-101-1/+1
|
* mailfs: add -m optionRuss Cox2008-05-101-2/+7
|
* mailfs: handle windows-1251 correctlyRuss Cox2008-05-061-1/+9
| | | | now my cyrillic spam displays right!
* mergeRuss Cox2007-11-272-3/+9
|
* upas/smtp: remove intermediate filesRuss Cox2007-11-272-1285/+0
|
* mailfs: add -r flag to specify mail root (Richard Bilson)Russ Cox2007-11-053-13/+38
|
* mailfs: handle NIL bodyRuss Cox2007-11-051-0/+2
|
* mailfs: fix handling of FLAGS response (Robert Vollmert)Russ Cox2007-08-221-2/+6
|
* mailfs: fix subject formattingrsc2007-06-251-1/+1
|
* silencersc2007-06-231-0/+2
|
* refresh on i, y commandsrsc2007-06-231-0/+8
|
* bug fixes:rsc2007-06-232-2/+16
| | | | | | | list message 1. give correct contents for raw, rawheader, rawbody. provide filename and charset in mime attachments. only rename mailboxes named mbox* not mbox*.
* remove debugging printrsc2007-06-181-1/+0
|
* clean temporary filesrsc2006-07-231-0/+1
|
* use file names for attachmentsrsc2006-06-303-4/+5
|
* fix commentsrsc2006-05-241-3/+3
|
* better spam (Lou Kamenov)rsc2006-05-213-3/+10
|
* useless warningrsc2006-05-211-2/+0
|
* better lockingrsc2006-05-211-0/+1
|
* newrsc2006-04-093-11/+175
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-0133-537/+537
|
* utf in subjectrsc2006-03-311-1/+53
|
* update lucidarsc2006-03-201-2/+3
|
* + is not a valid tag (Lou Kamenov)rsc2006-03-031-1/+1
|
* cleanuprsc2006-03-033-6/+1
|
* cannot say isnumberrsc2006-02-282-6/+10
|
* various fixesrsc2006-02-261-9/+17
|