aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas
AgeCommit message (Collapse)AuthorFilesLines
2020-12-30libthread: add threadmaybackgroundRuss Cox2-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.
2020-01-10Trivial changes: whitespace and modes.Dan Cross54-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>
2019-09-19upas/nfs: fix null date when message is sent to plumber (#263)telephil1-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.
2018-11-14upas/smtp: fix TLS connections (#163)Zach Scott2-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.
2018-10-05upas/nfs: correctly quote IMAP LOGIN argumentsCharles Collicutt1-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.
2017-10-13upas/nfs: fix warningsDavid du Colombier3-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.
2015-06-29upas/nfs: search for stunnele3 in $PATHGleydson Soares1-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>
2014-06-05upas: fix nil pointer dereferenceDavid du Colombier1-2/+2
R=rsc https://codereview.appspot.com/92650043
2014-06-03upas/common: rename aux to auxxRuss Cox2-1/+1
TBR=rsc https://codereview.appspot.com/107760043
2014-05-15upas: fix warningsDavid du Colombier2-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
2013-09-06mailfs: support for UTF-8 searchesAkshat Kumar1-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
2011-11-28mailfs: add -u user argumentDavid du Colombier3-6/+16
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5435052
2011-11-22mailfs: small fixes and plan 9 supportDavid du Colombier6-5/+35
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5429044
2011-11-21upas: fix segfault when host not foundDavid du Colombier1-1/+4
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5370105
2011-08-31upas/smtp: fixes for authenticated connectionsRichard Miller2-2/+3
R=rsc CC=plan9port.codebot http://codereview.appspot.com/4967049
2011-08-16mailfs: try to use the right version of stunnelFazlul Shahriar1-0/+2
R=rsc http://codereview.appspot.com/4876044
2011-06-02upas/smtp: remove reference to /net in mxdialDavid du Colombier1-1/+1
R=rsc CC=plan9port.codebot http://codereview.appspot.com/4535108
2010-05-11mailfs: try tlsclient program before stunnelRuss Cox1-1/+2
R=rsc http://codereview.appspot.com/1169043
2008-12-06mailfs: plumb messages correctly even if body comes before headerRuss Cox1-1/+1
2008-07-14mailfs: correct use of tcs for large inputsRuss Cox1-9/+40
2008-07-10upas: add misc to mkfileRuss Cox1-1/+1
2008-07-10nedmail: add -S parameter for alternate mail serviceRuss Cox1-3/+7
2008-05-10upas/fs: accomodate new post9pserviceRuss Cox1-1/+1
2008-05-10mailfs: add -m optionRuss Cox1-2/+7
2008-05-06mailfs: handle windows-1251 correctlyRuss Cox1-1/+9
now my cyrillic spam displays right!
2007-11-27mergeRuss Cox2-3/+9
2007-11-27upas/smtp: remove intermediate filesRuss Cox2-1285/+0
2007-11-05mailfs: add -r flag to specify mail root (Richard Bilson)Russ Cox3-13/+38
2007-11-05mailfs: handle NIL bodyRuss Cox1-0/+2
2007-08-22mailfs: fix handling of FLAGS response (Robert Vollmert)Russ Cox1-2/+6
2007-06-25mailfs: fix subject formattingrsc1-1/+1
2007-06-23silencersc1-0/+2
2007-06-23refresh on i, y commandsrsc1-0/+8
2007-06-23bug fixes:rsc2-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*.
2007-06-18remove debugging printrsc1-1/+0
2006-07-23clean temporary filesrsc1-0/+1
2006-06-30use file names for attachmentsrsc3-4/+5
2006-05-24fix commentsrsc1-3/+3
2006-05-21better spam (Lou Kamenov)rsc3-3/+10
2006-05-21useless warningrsc1-2/+0
2006-05-21better lockingrsc1-0/+1
2006-04-09newrsc3-11/+175
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc33-537/+537
2006-03-31utf in subjectrsc1-1/+53
2006-03-20update lucidarsc1-2/+3
2006-03-03+ is not a valid tag (Lou Kamenov)rsc1-1/+1
2006-03-03cleanuprsc3-6/+1
2006-02-28cannot say isnumberrsc2-6/+10
2006-02-26various fixesrsc1-9/+17
2006-02-25oopsrsc1-1/+5