summaryrefslogtreecommitdiffstats
path: root/account.h
AgeCommit message (Collapse)Author
2020-06-13Add basic XOAUTH2 support.Kevin McCarthy
This still relies on an external script to obtain the resource access token. Since XOAUTH2 should be slowly going away, use the same refresh_commands as with OAUTHBEARER. Unlike OAUTHBEARER, XOAUTH2 must be explicitly added to the $imap/smtp/pop_authenticators list. To keep the shared functions simpler, convert them to use buffers. RFC 7628 indicates that upon authentication failure the clients should be sending an BASE 64 encoded '^a' ("AQ=="), to terminate the SASL session, so change all the handlers to do that and read the following response. The RFC doesn't comment about a line terminator being required, but I assume it is, so add that too.
2018-12-31Remove trailing whitespace.Kevin McCarthy
The result of find . -name "*.[ch]" -exec emacs -batch {} \ --eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
2018-07-16Improve OAUTHBEARER support.Brandon Long
Move token refresh commands to their own config variables. Consolidate code for refreshing tokens and generating the SASL OAUTHBEARER argument in account.c. Add support for OAUTHBEARER to pop. Fix pop_auth_oauth() mutt_from_base64() call from 1.10.1 release.
2018-03-24Increase account.user/login size to 128.Kevin McCarthy
Like the pass field in commit 52949004, the existing size was insufficient for the reporter of issue #18. For now, just bump up the size, but I'll move up looking into making these dynamically sized.
2017-03-05Increase ACCOUNT.pass field size. (closes #3921)Kevin McCarthy
#3921 reported his password token used for Google XOAUTH2 is size 129. The ACCOUNT structure currently uses a size 128 buffer. Who knew a password field would ever be bigger than that? Since the ACCOUNT structure has no allocation/dellocation routines, the easiest fix is to increase the size. Bump the size up to 256.
2016-05-09Change M_* symbols to MUTT_*Derek Martin
Changeset 23334e967dd7 created a workaround for a namespace conflict with Solaris and derivatives. After some discussion, the team decided it would be best to move away from using the "M_" prefix for macros. This patch was automatically generated by running: perl -wpi -e 's/\bM_(\w+)\b/MUTT_$1/g' `find . -name '*.[ch]' -print` with the exception that sys_socket.h was exempted. (That file will be backed out subsequent to this commit.) Thanks to Andras Salamon for supplying the perl script used to make this change.
2016-01-01Convert copyright years to all use 4 digit years.Kevin McCarthy
Vincent Lefèvre pointed out the common shortcut, e.g 1996-9, is actually not allowed for copyright years. Convert all the copyright years (for mutt files) to use 4 digits.
2016-01-01Update copyright notices.Kevin McCarthy
This patch only updates existing copyright notices in the source files, using commit dates since the last copyright update in commits e3af935cdb1a and f8fd60d8d3f2. Add a notice to the COPYRIGHT file to refer to our mercurial repository for the full commit history. Add myself to the COPYRIGHT file and smime_keys.pl file.
2012-05-23Support passwords of up to 127 characters.Brendan Cully
I received a report on IRC of a failure due to a 64-byte password.
2007-02-25Update copyrights.Brendan Cully
2007-02-24This patch adds ESMTP relay support to mutt.Brendan Cully
To use, set $smtp_url to the address of your smtp relay, in the form: smtp[s]://[user[:password]@]host[:port]/ where port defaults to 25 for smtp and 465 for smtps. You can also set $smtp_authenticators to control which methods mutt will attempt to use during authentication. See $imap_authenticators for details.
2005-09-17Gah, forgot the zip code when updating the FSF address...Brendan Cully
2005-09-17Update FSF address (via sed, I hope nothing got mangled). Closes: #2071.Brendan Cully
2005-06-28Add $imap_login variable to specify which user to authenticate asBrendan Cully
($imap_user controls which user's mail gets accessed). Currently this can't be specified interactively, since I can't think of a way to do it that wouldn't annoy users where login == user (the default value of $imap_login).
2003-07-16I noticed that my mutt hung when I tried SASL DIGEST-MD5Brendan Cully
authentication (I'm not sure when this started). I believe this patch should solve that problem in a reliable way. This patch also attempts to reuse connections even when authentication fails, instead of just throwing away a perfectly good socket.
2001-01-02Fix password input. From Vsevolod Volkov.Thomas Roessler
2000-09-04patch-bac.imapurl-4Thomas Roessler
2000-08-25patch-bac.imapurl-2, with small modifications.Thomas Roessler
2000-07-31Brendan Cully's SASL patch. I hope I didn't miss any files.Thomas Roessler
2000-07-19IMAP socket moves by Brendan Cully, with a fix from TommiThomas Roessler
Komulainen, and most likely based on input from Vsevolod Voykov (sp?).