summaryrefslogtreecommitdiffstats
path: root/account.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-09-07 12:55:23 -0700
committerKevin McCarthy <kevin@8t8.us>2021-09-16 14:24:18 -0700
commit960afab461d1f72f64f322fe42738a91a066cc38 (patch)
tree14af33486aaf49d5380515df9b8d2e72ece78418 /account.h
parent8bb11afe4094d7f87267d7823b399c2f828034e4 (diff)
Generate URLs with user/password as parsed.
This helps ensure they match for browser sticky-cursor, sidebar, and a few other places where a path is compared against something (e.g. $trash). Add two flags that track if the user/password came from the parsed URL. If they were instead added to the account via $imap_user or $imap_pass, don't include those when generating a URL string as output. Change LSUB to also include the password, if present in the original connection URL.
Diffstat (limited to 'account.h')
-rw-r--r--account.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/account.h b/account.h
index 9f485cfd..73f6e9d6 100644
--- a/account.h
+++ b/account.h
@@ -38,6 +38,9 @@ enum
#define MUTT_ACCT_LOGIN (1<<2)
#define MUTT_ACCT_PASS (1<<3)
#define MUTT_ACCT_SSL (1<<4)
+/* these are used to regenerate a URL in same form it was parsed */
+#define MUTT_ACCT_USER_FROM_URL (1<<5)
+#define MUTT_ACCT_PASS_FROM_URL (1<<6)
typedef struct
{