summaryrefslogtreecommitdiffstats
path: root/account.c
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.
2019-01-04Clean up code indentation.Kevin McCarthy
These are mostly automated changes corresponding to the emacs settings: (c-set-style "linux") (setq c-basic-offset 2) (c-set-offset 'case-label '+) Most of the code follows the convention: (add-to-list 'c-cleanup-list 'space-before-funcall) but this is not enforced by this indentation cleanup. Also, I personally dislike tabs, so I have: (setq-default indent-tabs-mode nil) in my own configuration. However I have no desire to change every line just for that effect. So this cleanup does nothing about the mix issue. Some of the secondary files (e.g. regex.c) have been skipped. I've also skipped crypt-gpgme.c, because I need to think about that file. Werner Koch and the GnuPG team contributed most it, and it follows the Gnu indentation settings. It should probably be made uniform with Mutt, but I don't want to discourage future GnuPG contribution to the file. I manually reverted a few unsightly cleanups, and added a few tweeks when I saw things that could be improved.
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-11-18Add L10N comments to several unclear messages.TAKAHASHI Tamotsu
Updating Japanese translation, I found that some of the updated messages were a little hard to understand without reading the code. Add comments to some messages I nearly translated in a wrong way.
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.
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.
2009-07-01Make getuser/pass abort if input is required in batch mode.Rocco Rutte
Replaces [0a3de4d9a009]. See #3289.
2008-10-30Remove unused variable in mutt_account_match and fix comment.Emanuele Giaquinta
2007-04-11Add $smtp_pass (closes #2116)Brendan Cully
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.
2006-12-03Fix logic error; debian#400831.Thomas Roessler
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-08-07Reuse mutt_get_field for mutt_get_field_unbuffered.Brendan Cully
2005-08-07Make username prompts unbuffered like password prompts are (no moreBrendan Cully
folder-hook push garbage)
2005-08-03Fix C precedence buglet in getlogin preventing it from actually callingBrendan Cully
getuser.
2005-08-02Fix password prompt for POP (more authentication ID fallout).Brendan Cully
2005-07-17Don't dereference null ImapUser in new getlogin function.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).
2005-02-03Add config.h to the top of every C file that could possibly want it.Brendan Cully
Remove it from mutt.h
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.
2003-07-14The attached patch prevents mutt from reading the push buffer whenBrendan Cully
asking for passwords. This is a proper fix for bug 1312. I think it's uncontroversial.
2001-04-26Add ascii_strcasecmp() and ascii_strncasecmp() functions which doThomas Roessler
locale-independent and case-insensitive string comparisons. Needed for mutt to work in iso-8859-9 environments, where tolower('I') != 'i'.
2000-09-04patch-bac.imapurl-4Thomas Roessler
2000-08-25patch-bac.imapurl-2, with small modifications.Thomas Roessler
2000-08-04SASL patch from Brendan Cully.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?).