aboutsummaryrefslogtreecommitdiff
path: root/mutt
diff options
context:
space:
mode:
authorKumar Damani <damani.kumar@gmail.com>2019-12-09 00:13:52 +0000
committerKumar Damani <damani.kumar@gmail.com>2019-12-09 00:13:52 +0000
commit63ad7837556192589799261cdccc28ee3002b36e (patch)
tree34523192bcac71533d895653bd413455dbaf7e71 /mutt
parentbad72a6710ac3a8d78c98327d9b9f7e987751862 (diff)
updated mutt and st
Diffstat (limited to 'mutt')
-rw-r--r--mutt/.config/mutt/.gitignore6
-rw-r--r--mutt/.config/mutt/LICENSE674
-rw-r--r--mutt/.config/mutt/LICENSE.md3
-rw-r--r--mutt/.config/mutt/Makefile35
-rw-r--r--mutt/.config/mutt/README.md168
-rw-r--r--mutt/.config/mutt/autoconf/domains.csv122
-rw-r--r--mutt/.config/mutt/autoconf/makedefault.sh10
-rw-r--r--mutt/.config/mutt/autoconf/mutt_profile20
-rw-r--r--mutt/.config/mutt/autoconf/offlineimap_header6
-rw-r--r--mutt/.config/mutt/autoconf/offlineimap_header.macos6
-rw-r--r--mutt/.config/mutt/autoconf/offlineimap_profile18
-rw-r--r--mutt/.config/mutt/autoconf/offlineimap_profile.macos19
-rw-r--r--mutt/.config/mutt/autoconf/services.csv9
-rwxr-xr-xmutt/.config/mutt/bin/mailsync66
-rwxr-xr-xmutt/.config/mutt/bin/muttimage11
-rwxr-xr-xmutt/.config/mutt/bin/mw358
-rwxr-xr-xmutt/.config/mutt/bin/openfile8
-rw-r--r--mutt/.config/mutt/credentials/getmuttpass5
-rw-r--r--mutt/.config/mutt/credentials/imappwd.py11
-rw-r--r--mutt/.config/mutt/etc/aliases13
-rw-r--r--mutt/.config/mutt/etc/email.gifbin7545 -> 0 bytes
-rw-r--r--mutt/.config/mutt/etc/mailcap13
-rw-r--r--mutt/.config/mutt/etc/mailsync.sh40
-rw-r--r--mutt/.config/mutt/etc/muttcol71
-rw-r--r--mutt/.config/mutt/etc/muttimage.sh8
-rw-r--r--mutt/.config/mutt/etc/mw.pngbin24980 -> 0 bytes
-rw-r--r--mutt/.config/mutt/etc/notify.opusbin28900 -> 0 bytes
-rw-r--r--mutt/.config/mutt/etc/view_attachment.sh127
-rwxr-xr-xmutt/.config/mutt/mutt-wizard.sh264
-rw-r--r--mutt/.config/mutt/muttrc88
-rw-r--r--mutt/.config/mutt/mw.1231
-rw-r--r--mutt/.config/mutt/share/domains.csv281
-rw-r--r--mutt/.config/mutt/share/mailcap7
-rw-r--r--mutt/.config/mutt/share/mutt-wizard.muttrc148
-rw-r--r--mutt/.offlineimaprc62
35 files changed, 1937 insertions, 971 deletions
diff --git a/mutt/.config/mutt/.gitignore b/mutt/.config/mutt/.gitignore
index 4aec69b..8573c25 100644
--- a/mutt/.config/mutt/.gitignore
+++ b/mutt/.config/mutt/.gitignore
@@ -1,6 +1,6 @@
+personal.muttrc
*.swp
*.gpg
-accounts/
*.pyc
-personal.muttrc
-thunderbird/
+accounts/
+*mailsynclastrun
diff --git a/mutt/.config/mutt/LICENSE b/mutt/.config/mutt/LICENSE
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/mutt/.config/mutt/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/mutt/.config/mutt/LICENSE.md b/mutt/.config/mutt/LICENSE.md
deleted file mode 100644
index f49c226..0000000
--- a/mutt/.config/mutt/LICENSE.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# License
-
-GPLv3.
diff --git a/mutt/.config/mutt/Makefile b/mutt/.config/mutt/Makefile
new file mode 100644
index 0000000..20c82d1
--- /dev/null
+++ b/mutt/.config/mutt/Makefile
@@ -0,0 +1,35 @@
+.POSIX:
+
+OS = $(shell uname -s)
+ifeq ($(OS), Darwin)
+ PREFIX = /usr/local
+else
+ PREFIX = /usr
+endif
+MANPREFIX = $(PREFIX)/share/man
+
+install:
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ for script in bin/*; do \
+ cp -f $$script $(DESTDIR)$(PREFIX)/bin/; \
+ chmod 755 $(DESTDIR)$(PREFIX)/$$script; \
+ done
+ mkdir -p $(DESTDIR)$(PREFIX)/share/mutt-wizard
+ for shared in share/*; do \
+ cp -f $$shared $(DESTDIR)$(PREFIX)/share/mutt-wizard; \
+ done
+ if [ "$(OS)" = "Darwin" ]; then \
+ sed -iba 's/\/usr\//\/usr\/local\//' $(DESTDIR)$(PREFIX)/share/mutt-wizard/mutt-wizard.muttrc; \
+ rm $(DESTDIR)$(PREFIX)/share/mutt-wizard/mutt-wizard.muttrcba; \
+ fi
+ mkdir -p $(DESTDIR)$(MANPREFIX)/man1
+ cp -f mw.1 $(DESTDIR)$(MANPREFIX)/man1/mw.1
+
+uninstall:
+ for script in bin/*; do \
+ rm -f $(DESTDIR)$(PREFIX)/bin/$$script; \
+ done
+ rm -rf $(DESTDIR)$(PREFIX)/share/mutt-wizard
+ rm -f $(DESTDIR)$(MANPREFIX)/man1/mw.1
+
+.PHONY: install uninstall
diff --git a/mutt/.config/mutt/README.md b/mutt/.config/mutt/README.md
index 4938f78..a25d70b 100644
--- a/mutt/.config/mutt/README.md
+++ b/mutt/.config/mutt/README.md
@@ -1,69 +1,123 @@
-# Luke's mutt Wizard for automatic Neomutt and OfflineIMAP configuration!
+# mutt-wizard
-![mutt wizard preview](etc/mw.png)
+Get this great stuff without effort:
-Mutt is one of the most rewarding programs one can use, but can be a pain in the ass to configure. Since my job is making power-user tools available for the masses I want to create a tool that automates most of mutt configuration so that users can simply give their email address and get a /comfy/ setup. At that, I don't just want a mutt wizard, but an offlineIMAP wizard, so users can easily access their mail offline as well, and a wizard that makes it easy to store passwords securely using gpg.
+- A full-featured and autoconfigured email client on the terminal with neomutt
+- Mail stored offline so you can view and write email while away from internet and keep backups
-The mutt-wizard is all of this in a simple ncurses menu. It's really just a little bash script, but one that can save countless people thousands of combined manhours of frustratingly trying to get all the moving pieces working together.
+Specifically, this wizard:
-## User interface
+- Determines your email server's IMAP and SMTP servers and ports
+- Creates dotfiles for `neomutt`, `isync`, and `msmtp` appropriate for your email address
+- Encrypts and stores locally your password for easy remote access, accessible only by your GPG key
+- Handles as many as nine separate email accounts automatically
+- Auto-creates bindings to switch between accounts or between mailboxes
+- Can automatically set mail updates as often as you want to sync your mail and update you when new mail arrives
+- Provides sensible defaults and an attractive appearance for the neomutt email client
+- If mutt-wizard doesn't know your server's IMAP/SMTP info by default, it will prompt you for them and will put them in all the right places.
-The system takes an email and autodetect its server settings, generating a muttrc and offlineimaprc profile automatically. If it can't do so, it simply prompts you for these (which you can easily look up) and will put them all in the right places. You get:
-
-+ Automatic configuration of mutt and offlineimap.
-+ Automatic encryption and safe storage of passwords which are used by mutt and offlineimap when necessary.
-+ Multiple account management in mutt: jump from account to account with the `i` prefix in mutt: `i1`: first email account, `i5`: fifth, etc.
-+ Easy movement to mail folders in mutt: `gi`: go to inbox, `gs` to sent mail, `ga` to archive, `gS` to spam, `gd` to drafts, etc.
-+ Some default controls and colors. This system is going to be integrated into my [public auto-rice script](https://larbs.xyz) so I want it to look pretty and be usable out the box.
-+ An optional autosync script that will smartly run offlineimap when connected to the internet at what interval you want and will notify you with a ding when new mail arrives.
-
-### Will it work on my email? (95% yes)
-
-Yes! At this point, the only problems are the unexpected ones. Please try it, and if you do run into problems, email me at [luke@lukesmith.xyz](mailto:luke@lukesmith.xyz)! I've tried the system personally on Gmail, Teknik.io, cock.li and Yandex, while others have tried other providers.
-
-One email provider which I think will *not* work (and will never work) is Proton Mail, but that's only because they require encryption through their web client IIRC.
-
-Note also that Gmail and some providers require you to enable sign-ins from third-party (or as they call it "less secure") applications to be able to load mail with mutt and offlineimap. Be sure to enable that!
-
-## Installation and Dependencies
-
-`dialog`, `neomutt` and `offlineimap` should be installed. You also need to have a GPG public/private key pair for the wizard to automatically store your passwords. The whole repo should be cloned to `~/.config/mutt/`. (If you have a previous mutt folder, you'll want to back it up or delete it first.)
+## Install and Use
```
-git clone https://github.com/LukeSmithxyz/mutt-wizard.git ~/.config/mutt
+git clone https://github.com/LukeSmithxyz/mutt-wizard
+cd mutt-wizard
+sudo make install
```
-You will want to delete or rename your current `~/.offlineimaprc` as well, as although you can later modify the `~/.offlineimaprc` produced by the script, you must have no file there the first time you add your first account or the wizard will assume some settings are already set which aren't.
-
-Just run `mutt-wizard.sh` and choose to add an account. After you do so, you may run `offlineimap` to begin the mailsync, and you will be able to run neomutt and see your mail.
-If mutt doesn't immediately work properly run the `Redetect mailboxes` option, then open mutt. This may be necessary for some accounts.
-
-### Non-essential dependencies
-
-The automatically deployed configs will look for certain programs for certain extra abilities. Consider installing the following for the extra functionality.
+User of Arch-based distros can also install mutt-wizard from the AUR as [mutt-wizard-git](https://aur.archlinux.org/packages/mutt-wizard-git/).
-+ `urlview` -- Detecting and following links with `ctrl-u`
-+ `mupdf` -- for viewing attached pdfs (`v` to view attachments, then select .pdf)
-+ `notmuch` -- for mail searching and indexing set to `ctrl-f`. Be sure to run `notmuch setup`. Remember your mail is in `~/.mail/` when you configure notmuch.
-+ `w3m` and/or `w3mimg` -- for viewing images. Like .pdfs, view in the attachments menu.
-+ A cron manager if you want the autosync feature.
-+ `iproute2mac` for Mac users who want the autosync feature.
-+ `mpv` if you want the autosync feature to notify you with a ding on new mail.
+*NOTE:* If you have used an older version of mutt-wizard, especially when it used to use `offlineimap`, you need to remove your old configs. Back anything up that's important and run:
-### "Wait? The script asks for my passwords?"
-
-Look at the code. The script takes the passwords you give it, encrypts them immediately with your own GPG key, and shreds the leftovers. Nothing malicious; it's all there! If it makes you comfortable you can even run the script offline at first.
-
-## You can help!
-
-If you use mutt with a particular host or domain, put your server information in `domains.csv`! This will make everyone else who uses your email provider's life much easier!
-
-Or you can help monetarily via [Patreon](https://patreon.com/lukesmith) or [Paypal](https://paypal.me/LukeMSmith)!
-
-## Notes
-
-Mail is stored in `~/.mail`. mutt configs and caches for each account are in `~/.config/mutt/accounts/`. Encypted passwords are in `~/.config/mutt/credentials`. A "personal" muttrc, with the macros for switching accounts and the default config is in `~/.config/mutt/personal.muttrc`.
-
-## Todo
+```
+rm -rf ~/.config/mutt ~/.msmtprc ~/.config/msmtp ~/.offlineimap ~/.offlineimaprc ~/.config/offlineimap ~/.mbsyncrc
+```
-* Expand the list of server information in `domains.csv`, possibly porting the Thunderbird autoconfigure settings.
+The mutt-wizard is run with the command `mw`. It also installs the `mailsync` command. Once everything is setup, you'll use `neomutt` to access your mail.
+
+- `mw add` -- add a new email account
+- `mw ls` -- list existing accounts
+- `mw pass` -- revise an account's password
+- `mw delete` -- deleted an added account
+- `mw purge` -- delete all accounts and settings
+- `mw cron` -- toggle/configure a cronjob to sync mail
+
+## Dependencies
+
+- `neomutt` - the email client.
+- `isync` - downloads and syncs the mail. (required at install)
+- `msmtp` - sends the email.
+- `pass` - safely encrypts passwords (required at install)
+
+There's a chance of errors if you use a slow-release distro like Ubuntu, Debian or Mint. If you get errors in `neomutt`, install the most recent version manually or manually remove the offending lines in the config in `/usr/share/mutt-wizard/mutt-wizard.muttrc`.
+
+### Optional
+
+- `lynx` - view HTML email in neomutt.
+- `notmuch` - index and search mail. Install it and run `notmuch setup`, tell it that your mail is in `~/.local/share/mail/` (although `mw` will do this automatically if you haven't set notmuch up before). You can run it in mutt with `ctrl-f`. Run `notmuch new` to process new mail, although the included `mailsync` script does this for you.
+- `libnotify`/`libnotify-bin` - allows notifications when syncthing mail with `mailsync`
+- `abook` - a terminal-based address book. Pressing tab while typing an address to send mail to will suggest contacts that are in your abook.
+- A cron manager - if you want to enable the auto-sync feature.
+- `pam-gnupg` - this is a more general program that I use. It automatically logs you into your GPG key on login so you will never need to input your password once logged on to your system. Check the repo and directions out [here](https://github.com/cruegge/pam-gnupg).
+- `urlview` - outputs urls in mail to browser.
+
+## Neomutt user interface
+
+To give you an example of the interface, here's an idea:
+
+- `m` - send mail (uses your default `$EDITOR` to write)
+- `j`/`k` and `d`/`u` - vim-like bindings to go down and up (or `d`/`u` to go down/up a page).
+- `l` - open mail, or attachment page or attachment
+- `h` - the opposite of `l`
+- `r`/`R` - reply/reply all to highlighted mail
+- `s` - save selected mail or selected attachment
+- `gs`,`gi`,`ga`,`gd`,`gS` - Press `g` followed by another letter to change mailbox: `s`ent, `i`nbox, `a`rchive, `d`rafts, `S`pam, etc.
+- `M` and `C` - For `M`ove and `C`opy: follow them with one of the mailbox letters above, i.e. `MS` means "move to Spam".
+- `i#` - Press `i` followed by a number 1-9 to go to a different account. If you add 9 accounts via mutt-wizard, they will each be assigned a number.
+- `a` to add address/person to abook and `Tab` while typing address to complete one from book.
+- `?` - see all keyboard shortcuts
+- `ctrl-j`/`ctrl-k` - move up and down in sidebar, `ctrl-o` opens mailbox.
+- `ctrl-b` - open a menu to select a url you want to open in you browser.
+## New stuff and improvements since the original release
+
+- `isync`/`mbsync` has replaced `offlineimap` as the backend. Offlineimap was error-prone, bloated, used obsolete Python 2 modules and required separate steps to install the system.
+- `mw` is now an installed program instead of just a script needed to be kept in your mutt folder.
+- `dialog` is no longer used (le bloat) and the interface is simply text commands.
+- More autogenerated shortcuts that allow quickly moving and copying mail between boxes.
+- More elegant attachment handling. Image/video/pdf attachments without relying on the neomutt instance.
+- abook integration by default.
+- The messy template files and other directories have been moved or removed, leaving a clean config folder.
+- msmtp configs moved to `~/.config/` and mail default location moved to `~/.local/share/mail/`, reducing mess in `~`.
+- `pass` is used as a password manager instead of separately saving passwords.
+- Script is POSIX sh compliant.
+- Error handling for the many people who don't read or follow directions. Less errors generally.
+- Addition of a manual `man mw`
+
+## Help the Project!
+
+- Try mutt-wizard out on weird machines and weird email addresses and report any errors.
+- Open a PR to add new server information into `domains.csv` so their users can more easily use mutt-wizard.
+- If nothing else, [Donate!](https://paypal.me/LukeMSmith)
+
+See Luke's website [here](https://lukesmith.xyz). Email him at [luke@lukesmith.xyz](mailto:luke@lukesmith.xyz).
+
+mutt-wizard is free/libre software, licensed under the GPLv3.
+
+## Details for Tinkerers
+
+- The critical `mutt`/`neomutt` files are in `~/.config/mutt/`.
+- Put whatever global settings you want in `muttrc`. mutt-wizard will add some lines to this file which you shouldn't remove unless you know what you're doing, but you can move them up/down over your personal config lines if you need to. If you get binding conflict errors in mutt, you might need to do this.
+- Each of the accounts that mutt-wizard generates will have custom settings set in a separate file in `accounts/`. You can edit these freely if you want to tinker with settings specific to an account.
+- In `/usr/share/mutt-wizard` are several global config files, including `mutt-wizard`'s default settings. You can overwride this in your `muttrc` if you wish.
+
+## Watch out for these things:
+- Gmail accounts can now create 'App Password' to use with """less secure""" applications. This password is single use (ie. for setup) and will be stored and encrypted locally. Enabling third-party applications requires turning off two-factor authentication and this will circumvent that. You might also need to manually "Enable IMAP" in the settings.
+- Protonmail accounts will require you to set up "Protonmail Bridge" to access PM's IMAP and SMTP servers. Configure that before running mutt-wizard.
+- Protonmail bridge is prone to timing out. Watch out for this while adding an account. If the bridge times out, try again.
+- If you have a university email, or enterprise-hosted email for work, there might be other hurdles or two-factor authentication you have to jump through. Some, for example, will want you to create a separate IMAP password, etc.
+ - `isync` is not fully UTF-8 compatible, so non-Latin characters may be garbled (although sync should succeed). `mw` will also not autocreate mailbox shortcuts since it is looking for English mailbox names. I strongly recommend you to set your email language to English on your mail server to avoid these problems.
+
+## To-do
+
+- Add ~~Mac OS~~/BSD compatibility (the script is confired to work for Mac OS now)
+- ~~Out-of-the-box compatibility with Protonmail Bridge~~ (I believe this is done, but more bug-testing is welcome since I don't have PM)
+- Option to keep configuration for accounts that failed to connect (maybe)
diff --git a/mutt/.config/mutt/autoconf/domains.csv b/mutt/.config/mutt/autoconf/domains.csv
deleted file mode 100644
index ac89878..0000000
--- a/mutt/.config/mutt/autoconf/domains.csv
+++ /dev/null
@@ -1,122 +0,0 @@
-ADDRESS,IMAP,imap port,SMTP,smtp port
-420blaze.it,mail.cock.li,993,mail.cock.li,587
-8chan.co,mail.cock.li,993,mail.cock.li,587
-aaathats3as.com,mail.cock.li,993,mail.cock.li,587
-accountant.com,imap.mail.com,995,smtp.mail.com,587
-accountant.com,imap.mail.com,995,smtp.mail.com,587
-activist.com,imap.mail.com,995,smtp.mail.com,587
-adexec.com,imap.mail.com,995,smtp.mail.com,587
-airmail.cc,mail.cock.li,993,mail.cock.li,587
-allergist.com,imap.mail.com,995,smtp.mail.com,587
-alumni.com,imap.mail.com,995,smtp.mail.com,587
-alumnidirector.com,imap.mail.com,995,smtp.mail.com,587
-angelic.com,imap.mail.com,995,smtp.mail.com,587
-aol.com,imap.aol.com,993,smtp.aol.com,465
-appraiser.net,imap.mail.com,995,smtp.mail.com,587
-archaeologist.com,imap.mail.com,995,smtp.mail.com,587
-arcticmail.com,imap.mail.com,995,smtp.mail.com,587
-artlover.com,imap.mail.com,995,smtp.mail.com,587
-asia.com,imap.mail.com,995,smtp.mail.com,587
-asia.com,imap.mail.com,995,smtp.mail.com,587
-auctioneer.net,imap.mail.com,995,smtp.mail.com,587
-bartender.net,imap.mail.com,995,smtp.mail.com,587
-bguth.de,wp300.webpack.hosteurope.de,993,wp300.webpack.hosteurope.de,587
-bikerider.com,imap.mail.com,995,smtp.mail.com,587
-billycarlyle.uk,mail.muny.us,993,mail.muny.us,465
-birdlover.com,imap.mail.com,995,smtp.mail.com,587
-bjoernguthphotography.de,wp300.webpack.hosteurope.de,993,wp300.webpack.hosteurope.de,587
-brew-meister.com,imap.mail.com,995,smtp.mail.com,587
-cash4u.com,imap.mail.com,995,smtp.mail.com,587
-cheerful.com,imap.mail.com,995,smtp.mail.com,587
-chef.net,imap.mail.com,995,smtp.mail.com,587
-chemist.com,imap.mail.com,995,smtp.mail.com,587
-clerk.com,imap.mail.com,995,smtp.mail.com,587
-clubmember.org,imap.mail.com,995,smtp.mail.com,587
-cocaine.ninja,mail.cock.li,993,mail.cock.li,587
-cock.email,mail.cock.li,993,mail.cock.li,587
-cock.li,mail.cock.li,993,mail.cock.li,587
-cock.lu,mail.cock.li,993,mail.cock.li,587
-collector.org,imap.mail.com,995,smtp.mail.com,587
-columnist.com,imap.mail.com,995,smtp.mail.com,587
-comic.com,imap.mail.com,995,smtp.mail.com,587
-computer4u.com,imap.mail.com,995,smtp.mail.com,587
-consultant.com,imap.mail.com,995,smtp.mail.com,587
-consultant.com,imap.mail.com,995,smtp.mail.com,587
-contractor.net,imap.mail.com,995,smtp.mail.com,587
-contractor.net,imap.mail.com,995,smtp.mail.com,587
-coolsite.net,imap.mail.com,995,smtp.mail.com,587
-counsellor.com,imap.mail.com,995,smtp.mail.com,587
-cumallover.me,mail.cock.li,993,mail.cock.li,587
-cyberservices.com,imap.mail.com,995,smtp.mail.com,587
-deliveryman.com,imap.mail.com,995,smtp.mail.com,587
-dicksinhisan.us,mail.cock.li,993,mail.cock.li,587
-dicksinmyan.us,mail.cock.li,993,mail.cock.li,587
-diplomats.com,imap.mail.com,995,smtp.mail.com,587
-disroot.org,disroot.org,993,disroot.org,587
-dr.com,imap.mail.com,995,smtp.mail.com,587
-email.arizona.edu,mail.catnet.arizona.edu,993,smtpgate.email.arizona.edu,587
-email.com,imap.mail.com,995,smtp.mail.com,587
-engineer.com,imap.mail.com,995,smtp.mail.com,587
-europe.com,imap.mail.com,995,smtp.mail.com,587
-fastmail.com,imap.fastmail.com,993,smtp.fastmail.com,465
-firemail.cc,mail.cock.li,993,mail.cock.li,587
-fsmpi.rwth-aachen.de,mail.fsmpi.rwth-aachen.de,993,mail.fsmpi.rwth-aachen.de,465
-getbackinthe.kitchen,mail.cock.li,993,mail.cock.li,587
-gmail.com,imap.google.com,993,smtp.gmail.com,587
-gmx.com,imap.gmx.net,993,mail.gmx.net,587
-gmx.de,imap.gmx.net,993,mail.gmx.net,587
-gmx.eu,imap.gmx.net,993,mail.gmx.net,587
-gmx.info,imap.gmx.net,993,mail.gmx.net,587
-gmx.net,imap.gmx.net,993,mail.gmx.net,587
-gmx.org,imap.gmx.net,993,mail.gmx.net,587
-goat.si,mail.cock.li,993,mail.cock.li,587
-googlemail.com,imap.googlemail.com,993,smtp.googlemail.com,587
-hitler.rocks,mail.cock.li,993,mail.cock.li,587
-horsefucker.org,mail.cock.li,993,mail.cock.li,587
-hostgator,gator4171.hostgator.com,993,gator4171.hostgator.com,587
-hotmail.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
-iname.com,imap.mail.com,995,smtp.mail.com,587
-linuxmail.org,imap.mail.com,995,smtp.mail.com,587
-live.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
-loves.dicksinhisan.us,mail.cock.li,993,mail.cock.li,587
-loves.dicksinmyan.us,mail.cock.li,993,mail.cock.li,587
-lukesmith.xyz,mail.privateemail.com,993,mail.privateemail.com,587
-mail.com,imap.mail.com,995,smtp.mail.com,587
-mailbox.org,imap.mailbox.org,993,smtp.mailbox.org,465
-memeware.net,mail.cock.li,993,mail.cock.li,587
-msn.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
-muny.us,mail.muny.us,993,mail.muny.us,465
-myself.com,imap.mail.com,995,smtp.mail.com,587
-narod.ru,imap.yandex.com,993,smtp.yandex.com,465
-national.shitposting.agency,mail.cock.li,993,mail.cock.li,587
-nigge.rs,mail.cock.li,993,mail.cock.li,587
-nuke.africa,mail.cock.li,993,mail.cock.li,587
-outlook.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
-post.com,imap.mail.com,995,smtp.mail.com,587
-posteo.de,posteo.de,993,posteo.de,587
-rape.lol,mail.cock.li,993,mail.cock.li,587
-redchan.it,mail.cock.li,993,mail.cock.li,587
-runbox.com,mail.runbox.com,993,mail.runbox.com,587
-rwth-aachen.de,mail.rwth-aachen.de,993,mail.rwth-aachen.de,587
-sapo.pt,imap.sapo.pt,993,smtp.sapo.pt,587
-techie.com,imap.mail.com,995,smtp.mail.com,587
-teknik.io,mail.teknik.io,993,mail.teknik.io,587
-tfwno.gf,mail.cock.li,993,mail.cock.li,587
-tu-harburg.de,mail.tu-harburg.de,993,mail.tu-harburg.de,587
-tuhh.de,mail.tu-harburg.de,993,mail.tu-harburg.de,587
-usa.com,imap.mail.com,995,smtp.mail.com,587
-uymail.com,imap.mail.com,995,smtp.mail.com,587
-waifu.club,mail.cock.li,993,mail.cock.li,587
-wants.dicksinhisan.us,mail.cock.li,993,mail.cock.li,587
-wants.dicksinmyan.us,mail.cock.li,993,mail.cock.li,587
-writeme.com,imap.mail.com,995,smtp.mail.com,587
-ya.ru,imap.yandex.com,993,smtp.yandex.com,465
-yahoo.com,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587
-yandex.by,imap.yandex.com,993,smtp.yandex.com,465
-yandex.com,imap.yandex.com,993,smtp.yandex.com,465
-yandex.com,imap.yandex.com,993,smtp.yandex.com,465
-yandex.kz,imap.yandex.com,993,smtp.yandex.com,465
-yandex.net,imap.yandex.com,993,smtp.yandex.com,465
-yandex.ru,imap.yandex.com,993,smtp.yandex.com,465
-yandex.ua,imap.yandex.com,993,smtp.yandex.com,465
-zoho.com,imap.zoho.com,993,smtp.zoho.com,465
diff --git a/mutt/.config/mutt/autoconf/makedefault.sh b/mutt/.config/mutt/autoconf/makedefault.sh
deleted file mode 100644
index e8b1536..0000000
--- a/mutt/.config/mutt/autoconf/makedefault.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-# Give this script the abstract name of an account and it will make it the default.
-
-title=$1
-muttdir="$HOME/.config/mutt/"
-muttdirsed=$(echo $muttdir | sed -e 's/\//\\\//g')
-
-grep "$muttdir"personal.muttrc -e "^source .*accounts.*" >/dev/null && \
- sed -i "s/^source .*accounts.*/source ${muttdirsed}accounts\/$title.muttrc/g" "$muttdir"personal.muttrc
diff --git a/mutt/.config/mutt/autoconf/mutt_profile b/mutt/.config/mutt/autoconf/mutt_profile
deleted file mode 100644
index b34b5f9..0000000
--- a/mutt/.config/mutt/autoconf/mutt_profile
+++ /dev/null
@@ -1,20 +0,0 @@
-# vim: filetype=neomuttrc
-# muttrc file for account $title
-set realname = "$realname"
-set from = "$fulladdr"
-set smtp_url = "smtp://$login@$smtp:$sport/"
-set sendmail = "/usr/bin/msmtp -a $title"
-set folder = "~/.mail/$title"
-set header_cache = ~/.config/mutt/accounts/$title/cache/headers
-set message_cachedir = ~/.config/mutt/accounts/$title/cache/bodies
-set certificate_file = ~/.config/mutt/accounts/$title/certificates
-source "~/.config/mutt/credentials/getmuttpass $title |"
-
-set mbox_type = Maildir
-set ssl_starttls = yes
-set ssl_force_tls = yes
-
-bind index,pager gg noop
-bind index,pager g noop
-bind index gg first-entry
-unmailboxes *
diff --git a/mutt/.config/mutt/autoconf/offlineimap_header b/mutt/.config/mutt/autoconf/offlineimap_header
deleted file mode 100644
index 786f04b..0000000
--- a/mutt/.config/mutt/autoconf/offlineimap_header
+++ /dev/null
@@ -1,6 +0,0 @@
-[general]
-accounts =
-starttls = yes
-ssl = yes
-pythonfile = ~/.config/mutt/credentials/imappwd.py
-
diff --git a/mutt/.config/mutt/autoconf/offlineimap_header.macos b/mutt/.config/mutt/autoconf/offlineimap_header.macos
deleted file mode 100644
index 86d5678..0000000
--- a/mutt/.config/mutt/autoconf/offlineimap_header.macos
+++ /dev/null
@@ -1,6 +0,0 @@
-[general]
-accounts =
-starttls = yes
-ssl = true
-pythonfile = ~/.config/mutt/credentials/imappwd.py
-
diff --git a/mutt/.config/mutt/autoconf/offlineimap_profile b/mutt/.config/mutt/autoconf/offlineimap_profile
deleted file mode 100644
index 2277d6b..0000000
--- a/mutt/.config/mutt/autoconf/offlineimap_profile
+++ /dev/null
@@ -1,18 +0,0 @@
-[Account $title]
-
-localrepository = $title-local
-remoterepository = $title-remote
-
-[Repository $title-remote]
-auth_mechanisms = LOGIN
-type = $type
-remoteuser = $login
-remotepasseval = mailpasswd("$title")
-remotehost = $imap
-remoteport = $iport
-folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail']
-sslcacertfile = /etc/ssl/certs/ca-certificates.crt
-
-[Repository $title-local]
-type = Maildir
-localfolders = ~/.mail/$title
diff --git a/mutt/.config/mutt/autoconf/offlineimap_profile.macos b/mutt/.config/mutt/autoconf/offlineimap_profile.macos
deleted file mode 100644
index e985538..0000000
--- a/mutt/.config/mutt/autoconf/offlineimap_profile.macos
+++ /dev/null
@@ -1,19 +0,0 @@
-[Account $title]
-
-localrepository = $title-local
-remoterepository = $title-remote
-
-[Repository $title-remote]
-auth_mechanisms = LOGIN
-type = $type
-remoteuser = $login
-sslcacertfile = /usr/local/etc/openssl/cert.pem
-remotepasseval = mailpasswd("$title")
-remotehost = $imap
-remoteport = $iport
-folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail']
-sslcacertfile = /usr/local/etc/openssl/cert.pem
-
-[Repository $title-local]
-type = Maildir
-localfolders = ~/.mail/$title
diff --git a/mutt/.config/mutt/autoconf/services.csv b/mutt/.config/mutt/autoconf/services.csv
deleted file mode 100644
index 152be38..0000000
--- a/mutt/.config/mutt/autoconf/services.csv
+++ /dev/null
@@ -1,9 +0,0 @@
-SERVICE,IMAP,imap port,SMTP,smtp port,spoolfile,postponed,record
-"Zoho",imap.zoho.com,993,smtp.zoho.com,465,,,
-"iCloud",imap.mail.me.com,993,smtp.mail.me.com,587,,,
-"Inbox.com",imap.inbox.com,993,smtp.inbox.com,465,,,
-"Office 365",outlook.office365.com,993,smtp.office365.com,587,INBOX,Drafts,Sent Items
-"Host Gator",gator4171.hostgator.com,993,gator4171.hostgator.com,587,INBOX,INBOX.Drafts,INBOX.Sent
-"GoDaddy",imap.secureserver.net,993,smtpout.secureserver.net,465,,,
-"Yandex",imap.yandex.com,993.00,smtp.yandex.com,465.00,,,
-"Muny Mail",mail.muny.us,993,mail.muny.us,465,,,
diff --git a/mutt/.config/mutt/bin/mailsync b/mutt/.config/mutt/bin/mailsync
new file mode 100755
index 0000000..c56ccb2
--- /dev/null
+++ b/mutt/.config/mutt/bin/mailsync
@@ -0,0 +1,66 @@
+#!/usr/bin/env sh
+# Sync mail and give notification if there is new mail.
+
+export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
+export DBUS_SESSION_BUS_ADDRESS
+export DISPLAY=:0.0
+[ -d "$HOME/.local/share/password-store" ] && export PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
+
+# Run only if user logged in (prevent cron errors)
+pgrep -u "${USER:=$LOGNAME}" >/dev/null || { echo "$USER not logged in; sync will not run."; exit ;}
+# Run only if not already running in other instance
+pgrep -x mbsync >/dev/null && { echo "mbsync is already running." ; exit ;}
+
+# Checks for internet connection and set notification script.
+ping -q -c 1 1.1.1.1 > /dev/null || { echo "No internet connection detected."; exit ;}
+command -v notify-send >/dev/null || echo "Note that \`libnotify\` or \`libnotify-send\` should be installed for pop-up mail notifications with this script."
+
+# Settings are different for MacOS (Darwin) systems.
+if [ "$(uname)" = "Darwin" ]; then
+ notify() { osascript -e "display notification \"$2 in $1\" with title \"You've got Mail\" subtitle \"Account: $account\"" && sleep 2 ;}
+else
+ notify() { notify-send "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account." ;}
+fi
+
+# Check account for new mail. Notify if there is new content.
+syncandnotify() {
+ acc="$(echo "$account" | sed "s/.*\///")"
+ mbsync "$acc"
+ new=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "$HOME/.config/mutt/.mailsynclastrun" 2> /dev/null)
+ newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l)
+ if [ "$newcount" -gt "0" ]; then
+ notify "$acc" "$newcount" &
+ for file in $new; do
+ # Extract subject and sender from mail.
+ from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed 's/^[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//')
+ subject=$(awk '/^Subject: / && ++n == 1,/^\<.*\>: / && ++i == 2' "$file" | head -n-1 | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | sed 's/^Subject: //' | sed 's/^{[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//' | tr -d '\n')
+ notify-send "📧$from:" "$subject" &
+ done
+ fi
+}
+
+# Sync accounts passed as argument or all.
+if [ "$#" -eq "0" ]; then
+ accounts="$(awk '/^Channel/ {print $2}' "$HOME/.mbsyncrc")"
+else
+ accounts=$*
+fi
+
+echo " 🔃" > /tmp/imapsyncicon_"$USER"
+pkill -RTMIN+12 i3blocks >/dev/null 2>&1
+
+# Parallelize multiple accounts
+for account in $accounts
+do
+ syncandnotify &
+done
+
+wait
+rm -f /tmp/imapsyncicon_"$USER"
+pkill -RTMIN+12 i3blocks >/dev/null 2>&1
+
+notmuch new 2>/dev/null
+
+#Create a touch file that indicates the time of the last run of mailsync
+touch "$HOME/.config/mutt/.mailsynclastrun"
diff --git a/mutt/.config/mutt/bin/muttimage b/mutt/.config/mutt/bin/muttimage
new file mode 100755
index 0000000..c798293
--- /dev/null
+++ b/mutt/.config/mutt/bin/muttimage
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+#get image resolution
+resolution=$(identify $1 | awk '{print $3}')
+IFS='x' # x is set as delimiter
+read -ra ADDR <<< "$resolution"
+width=${ADDR[0]}
+height=${ADDR[1]}
+
+### Display Image / offset with mutt bar
+echo -e "2;3;\n0;1;0;42;$((width));$((height));0;0;0;0;$1\n4;\n3;" | /usr/lib/w3m/w3mimgdisplay &
diff --git a/mutt/.config/mutt/bin/mw b/mutt/.config/mutt/bin/mw
new file mode 100755
index 0000000..5e03606
--- /dev/null
+++ b/mutt/.config/mutt/bin/mw
@@ -0,0 +1,358 @@
+#!/bin/sh
+command -V gpg >/dev/null 2>&1 && GPG="gpg" || GPG="gpg2"
+[ -z ${PASSWORD_STORE_DIR+x} ] && PASSWORD_STORE_DIR="$HOME/.password-store"
+[ -r "$PASSWORD_STORE_DIR/.gpg-id" ] &&
+ "$GPG" --list-secret-keys $(cat "$PASSWORD_STORE_DIR/.gpg-id") >/dev/null 2>&1 || {
+ printf "\`pass\` must be installed and initialized to encrypt passwords.\\nBe sure it is installed and run \`pass init <yourgpgemail>\`.\\nIf you don't have a GPG public private key pair, run \`$GPG --full-gen-key\` first.\\n"
+ exit
+ }
+! command -v mbsync >/dev/null && printf "\`mbsync\` must be installed to run mutt-wizard.\\n" && exit
+
+case "$(uname)" in
+ Linux) prefix="/usr" ;;
+ *) prefix="/usr/local" ;;
+esac
+
+muttdir="$HOME/.config/mutt" # Main mutt config location
+accdir="$muttdir/accounts" # Directory for account settings
+maildir="$HOME/.local/share/mail" # Location of mail storage
+namere="^[a-z_][a-z0-9_-]*$" # Regex to ensure viable username
+emailre=".\+@.\+\\..\+" # Regex to confirm valid email address
+muttshare="$prefix/share/mutt-wizard"
+mbsyncrc="$HOME/.mbsyncrc"
+mwconfig="$muttshare/mutt-wizard.muttrc"
+cachedir="$HOME/.cache/mutt-wizard"
+muttrc="$muttdir/muttrc"
+msmtprc="$HOME/.config/msmtp/config"
+ssltype="IMAPS" # This is later changed to `None` later in the script if using Protonmail
+
+for x in "/etc/ssl/certs/ca-certificates.crt" "/etc/pki/tls/certs/ca-bundle.crt" "/etc/ssl/ca-bundle.pem" "/etc/pki/tls/cacert.pem" "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" "/etc/ssl/cert.pem" "/usr/local/share/ca-certificates/"
+do
+ [ -f "$x" ] && sslcert="$x" && break
+done || { echo "CA Certificate not found. Please install one or link it to /etc/ssl/certs/ca-certificates.crt" && exit 1 ;}
+
+getaccounts() { accounts="$(find "$accdir" -type f | grep -o "[0-9]-.*.muttrc" | sed "s/-/: /;s/\..*//" | sort -n)" ;}
+list() { getaccounts && [ -n "$accounts" ] && echo "$accounts" ;}
+
+getprofiles() { \
+ unset msmtp_header msmtp_profile mutt_profile mbsync_profile
+ printf "Creating profiles for \`%s\`..." "$title"
+msmtp_header="defaults
+auth on
+tls on
+tls_trust_file $sslcert
+logfile ~/.config/msmtp/msmtp.log
+"
+msmtp_profile="account $title
+host $smtp
+port $sport
+from $fulladdr
+user $login
+passwordeval \"pass mutt-wizard-$title\"
+$starttlsoff
+"
+mbsync_profile="IMAPStore $title-remote
+Host $imap
+Port $iport
+User $login
+PassCmd \"pass mutt-wizard-$title\"
+SSLType $ssltype
+CertificateFile $sslcert
+
+MaildirStore $title-local
+Subfolders Verbatim
+Path ~/.local/share/mail/$title/
+Inbox ~/.local/share/mail/$title/INBOX
+Flatten .
+
+Channel $title
+Expunge Both
+Master :$title-remote:
+Slave :$title-local:
+Patterns * !\"[Gmail]/All Mail\"
+Create Both
+SyncState *
+MaxMessages $maxmes
+# End profile
+"
+
+if [ "$accounttype" = "offline" ]; then
+mutt_profile="# vim: filetype=neomuttrc
+# muttrc file for account $title
+set realname = \"$realname\"
+set from = \"$fulladdr\"
+set sendmail = \"msmtp -a $title\"
+alias me $realname <$fulladdr>
+set folder = \"$maildir/$title\"
+set header_cache = $cachedir/$title/headers
+set message_cachedir = $cachedir/$title/bodies
+set mbox_type = Maildir
+
+bind index,pager gg noop
+bind index,pager g noop
+bind index,pager M noop
+bind index,pager C noop
+bind index gg first-entry
+macro index o \"<shell-escape>mailsync -V $title<enter>\" \"run mbsync to sync $title\"
+unmailboxes *
+"
+else
+mutt_profile="# vim: filetype=neomuttrc
+# muttrc file for account $title
+set realname = \"$realname\"
+set from = \"$fulladdr\"
+set sendmail = \"$prefix/bin/msmtp -a $title\"
+alias me $realname <$fulladdr>
+set folder = \"imaps://$fulladdr@$imap:$iport\"
+set imap_user = \"$login\"
+set header_cache = $cachedir/$title/headers
+set message_cachedir = $cachedir/$title/bodies
+set imap_pass = \"\`pass mutt-wizard-$title\`\"
+
+set mbox_type = Maildir
+set ssl_starttls = yes
+set ssl_force_tls = yes
+
+bind index,pager gg noop
+bind index,pager g noop
+bind index,pager M noop
+bind index,pager C noop
+bind index gg first-entry
+unmailboxes *
+"
+fi
+ printf "DONE.\\n"
+}
+
+askinfo() { \
+ printf "Insert the \033[31memail address\033[0m that you want to autoconfigure for mutt/mbsync\\n\tEmail: \033[36m"
+ read -r fulladdr
+ printf "\033[0m"
+ while ! echo "$fulladdr" | grep "$emailre" >/dev/null; do
+ printf "That is not a valid \033[31memail address\033[0m, please retype the desired email.\\n\\nEmail: \033[36m\t"
+ read -r fulladdr
+ printf "\033[0m"
+ done
+ domain="$(echo "$fulladdr" | sed "s/.*@//")"
+ search_query=$domain
+ case "$domain" in
+ protonmail.com|protonmail.ch|pm.me)
+ search_query='protonmail.com' && break;;
+ *)
+ while : ; do
+ printf "\nIs your email hosted with Protonmail? [yes/no] "
+ read -r is_protonmail
+ case $is_protonmail in
+ [Yy][Ee][Ss]) search_query='protonmail.com' && break;;
+ [Nn][Oo]) break;;
+ *) printf 'Please answer Yes or No'
+ esac; done;
+ esac
+ printf "\\nSearching for \033[32m%s\033[0m in \033[34m\`domains.csv\`\033[0m..." "$domain"
+ serverinfo="$(grep "^$search_query" "$muttshare/domains.csv" 2>/dev/null)"
+ if [ -z "$serverinfo" ]; then
+ printf "Your email domain is not in mutt-wizard's database yet.\\nmutt-wizard will still autoconfigure everything, but you will have to manually type in your service's IMAP and SMTP server information.\\nYou can usually quickly find this by internet searching for it.\\n"
+ printf "Insert the IMAP server for your email provider (excluding the port number)\\n\033[36m\t"
+ read -r imap
+ printf "\033[0mWhat is your server's IMAP port number? (Usually something like 993)\\n\033[36m\t"
+ read -r iport
+ printf "\033[0mInsert the SMTP server for your email provider (excluding the port number)\\n\033[36m\t"
+ read -r smtp
+ printf "\033[0mWhat is your server's SMTP port number? (Usually 587 or 465)\\n\033[36m\t"
+ read -r sport
+ printf "\033[0m\\nGreat! If you want to be helpful, copy the line below and you can add it to the \`domains.csv\` file on Github.\\nThis will make things easier for others who use your email provider.\\n\\n%s,%s,%s,%s,%s\\n\\nAlthough be sure to test to see if these settings work first! ;-)\\n" "$domain" "$imap" "$iport" "$smtp" "$sport"
+ else
+ IFS=, read -r service imap iport smtp sport <<EOF
+$serverinfo
+EOF
+ printf "\\n\033[3;33mCongrats!\033[0m Server info has automatically been found, so you won't have to look anything up!\\n\t\033[1mIMAP server\033[0m: %s\\n\t\033[1mIMAP port\033[0m: %s\\n\t\033[1mSMTP server\033[0m: %s\\n\t\033[1mSMTP port\033[0m: %s\\nThis data will be used by the wizard.\\n" "$imap" "$iport" "$smtp" "$sport"
+ case "$service" in
+ gmail.com) printf "\033[31mREMEMBER: Gmail users must enable \"less secure\" (third-party) applications first for the sync to work:\\nhttps://support.google.com/accounts/answer/6010255\\n\033[0m" ;;
+ protonmail.ch|protonmail.com|pm.me) printf "\033[31mREMEMBER: Protonmail users must install and configure Protonmail Bridge first for the sync to work:\\nhttps://protonmail.com/bridge/\\n\033[0m" && ssltype="None" ;;
+ esac
+ [ "$sport" = 465 ] && starttlsoff="tls_starttls off"
+ fi
+ printf "Enter the \033[35mfull name\033[0m you want to be identified by on this account.\\n\tReal name: "
+ read -r realname
+ printf "Enter a short, \033[36mone-word identifier\033[0m for this email account that will distinguish them from any other accounts you add.\\n\tAccount name: "
+ read -r title
+ while ! echo "$title" | grep "$namere" >/dev/null || ls "$accdir"/[0-9]"-$title.muttrc" >/dev/null 2>&1; do
+ printf "\033[31mTry again\033[0m. Pick a nickname that is one word only including lowercase letters and _ or - and that you have \033[1mnot\033[0m used before.\\n\tAccount name: \033[36m\t"
+ read -r title
+ printf "\033[0m"
+ done
+ printf "If your account has a special username different from your address, insert it now. Otherwise leave this prompt totally blank.\\n\033[34mMost accounts will not have a separate login, so you should probably leave this blank.\033[0m\\n\tLogin(?): \033[36m"
+ read -r login
+ printf "\033[0m"
+ [ -z "$login" ] && login="$fulladdr"
+ [ "$accounttype" = "offline" ] && printf "If you want to limit the number of messages kept offline to a number, enter that number below. If you do not want to limit your mail and would like \`mbsync\` to sync all mail, press enter without typing a number.\\n\t" && read -r maxmes
+ echo "$maxmes" | grep "[1-9]" >/dev/null || maxmes="0"
+ getpass
+ getprofiles
+ mkdir -p "$muttdir" "$accdir" "$cachedir/$title/bodies" "$HOME/.config/msmtp"
+ getaccounts
+ for x in $(seq 1 9); do echo "$accounts" | grep "$x" >/dev/null 2>&1 || { export idnum="$x"; break ;}; done
+ [ ! -f "$msmtprc" ] && echo "$msmtp_header" > "$msmtprc"
+ echo "$msmtp_profile" >> "$msmtprc"
+ command -V apt-get >/dev/null 2>&1 && ln -s "$msmtprc" "$HOME/.msmtprc" 2>/dev/null
+ case "$service" in
+ protonmail.ch|protonmail.com|pm.me) protonfinger || return 1 ;;
+ esac
+ echo "$mutt_profile" > "$accdir/$idnum-$title.muttrc"
+ echo "$mbsync_profile" >> "$mbsyncrc"
+ notmuchauto
+ [ ! -f "$muttrc" ] && echo "# vim: filetype=neomuttrc" > "$muttrc" && echo "muttrc created."
+ ! grep "^source.*mutt-wizard.muttrc" "$muttrc" >/dev/null && echo "source $mwconfig # mw-autogenerated" >> "$muttrc"
+ ! grep "^source.*.muttrc" "$muttrc" | grep -v "$mwconfig" >/dev/null && echo "source $accdir/$idnum-$title.muttrc # mw-autogenerated" >> "$muttrc"
+ echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source $accdir/$idnum-$title.muttrc<enter><change-folder>!<enter>;<check-stats>' \"switch to $fulladdr\" # mw-autogenerated" >> "$muttrc"
+}
+
+protonfinger() { printf "Getting Protonmail bridge fingerprint...\\n"
+ fingerprint="$(msmtp --serverinfo --host=127.0.0.1 --port=1025 --tls --tls-certcheck=off | grep SHA256: | sed 's/^.*: //')"
+ sed -ibu "s/account $title/&\ntls_trust_file\ntls_fingerprint $fingerprint/" "$msmtprc" ; rm -f "$msmtprc"bu
+}
+
+getpass() { while : ; do pass rm -f "mutt-wizard-$title" >/dev/null 2>&1
+ pass insert "mutt-wizard-$title" && break; done ;}
+
+formatShortcut() { \
+ while read -r data; do { echo "macro index,pager g$1 \"<change-folder>$data<enter>\" \"go to $2\" # mw-autogenerated"
+ echo "macro index,pager M$1 \"<save-message>$data<enter>\" \"move mail to $2\" # mw-autogenerated"
+ echo "macro index,pager C$1 \"<copy-message>$data<enter>\" \"copy mail to $2\" # mw-autogenerated"; } >> "$accdir/$idnum-$title.muttrc"
+ done ;}
+
+tryconnect() { mkdir -p "$maildir/$title"
+ if mailboxes="$(mbsync -l "$title" | sed 's/\//./')" >/dev/null 2>&1 && [ -n "$mailboxes" ]; then
+ [ "$accounttype" = "online" ] && sed -ibu "/IMAPStore $title-remote$/,/# End profile/d" "$mbsyncrc" ; rm -f "$mbsyncrc"bu
+ printf "\033[32mMailboxes detected.\033[0m\\n"
+ echo "$mailboxes" | xargs -I {} mkdir -p "$maildir/$title/{}"
+ return 0
+ else
+ printf "\033[31m\033[31mLog-on not successful.\033[0m\\nIt seems that either you inputted the wrong password or server settings, or there are other requirements for your account out of the control of mutt-wizard.\\n"
+ return 1
+ fi ;}
+
+finalize() { \
+ boxes="$(find "$maildir/$title/" -mindepth 1 -maxdepth 1 | sed "s/\ /\\\ /g;s/^.*\//=/")"
+ [ -z "$boxes" ] && printf "\033[31mNo local mailboxes have been detected for %s.\033[0m\\nThis means that mbsync has not been successfully run.\\nRun mbsync, and if it has an error, be sure to check your password and server settings manually if needbe.\\n" "$title" && return
+ printf "Setting default mailboxes for your Inbox, Sent, Drafts and Trash in mutt...\\n"
+ spoolfile=$(echo "$boxes" | grep -i -m 1 inbox | sed 's/=/+/g')
+ record=$(echo "$boxes" | grep -i -m 1 sent | sed 's/=/+/g')
+ postponed=$(echo "$boxes" | grep -i -m 1 draft | sed 's/=/+/g')
+ trash=$(echo "$boxes" | grep -i -m 1 trash | sed 's/=/+/g')
+ sed -ibu "/^mailboxes\|^set record\|^set postponed\|^set trash\|^set spoolfile/d" "$accdir/$idnum-$title.muttrc" ; rm -f "$accdir/$idnum-$title.muttrcbu"
+ { echo "set spoolfile = \"$spoolfile\""; echo "set record = \"$record\""; echo "set postponed = \"$postponed\""; echo "set trash = \"$trash\""; } >> "$accdir/$idnum-$title.muttrc"
+ echo "mailboxes $(echo "$boxes" | sed -e "s/^\|$/\"/g" | tr "\n" " ")" >> "$accdir/$idnum-$title.muttrc"
+ printf "Setting up your keyboard shortcuts for jumping between mailboxes...\\n"
+ sed -ibu "/# mw-autogenerated/d" "$accdir/$idnum-$title.muttrc" ; rm -f "$accdir/$idnum-$title.muttrcbu"
+ echo "$boxes" | grep -i inbox | head -n 1 | formatShortcut i inbox
+ echo "$boxes" | grep -i sent | head -n 1 | formatShortcut s sent
+ echo "$boxes" | grep -i draft | head -n 1 | formatShortcut d drafts
+ echo "$boxes" | grep -i trash | head -n 1 | formatShortcut t trash
+ echo "$boxes" | grep -i spam | head -n 1 | formatShortcut S spam
+ echo "$boxes" | grep -i junk | head -n 1 | formatShortcut j junk
+ echo "$boxes" | grep -i archive | head -n 1 | formatShortcut a archive
+ [ "$accounttype" = "offline" ] && printf "All done.\\n\033[33mYou should now be able to run \`\033[32mmbsync %s\033[33m\` to begin to download your mail.\033[0m\\n" "$title"
+ command -V urlview >/dev/null 2>&1 && [ ! -f "$HOME/.urlview" ] && echo "COMMAND \$BROWSER" > "$HOME/.urlview"
+ return 0
+}
+
+confirm() { printf "Do you want to %s? [y/N]\\n\t" "$@" && read -r input && ! echo "$input" | grep -i "^y$\|^yes$" >/dev/null && printf "That doesn't seem like a yes to me.\\n\\n" && return 1
+ printf "Are you really, really sure you want to %s?\\n\t" "$@" && read -r input && ! echo "$input" | grep -i "^y$\|^yes$" >/dev/null && printf "That doesn't seem like a yes to me.\\n\\n" && return 1
+ return 0 ;}
+
+pick() { printf "Select an accounts to %s:\\n" "$1"
+ list
+ read -r input
+ [ -z "$input" ] && return 1
+ title="$(echo "$accounts" | grep "$input" | awk '{print $2}')"
+ [ -z "$title" ] && printf "Invalid response." && return 1
+ return 0 ;}
+
+delete() { sed -ibu "/IMAPStore $title-remote$/,/# End profile/d" "$mbsyncrc" ; rm -rf "$mbsyncrc"bu
+ rm -rf "${cachedir:?}/${title:?}" "$accdir/"[1-9]"-$title.muttrc"
+ sed -ibu "/[0-9]-$title.muttrc/d" "$muttrc" ; rm -f "$muttrc"bu
+ sed -ibu "/account $title/,/^\(\s*$\|account\)/d" "$msmtprc"; rm -f "$msmtprc"bu
+ }
+
+choosecron() { ! pgrep cron >/dev/null && echo "No cron manager running. Install/enable one and then select this option again." && return 1
+ if crontab -l | grep mailsync >/dev/null; then
+ echo "Active mail sync cronjob detected. Do you want to remove it?"
+ printf "\033[36m\t"
+ read -r rmyn
+ printf "\033[0m"
+ echo "$rmyn" | grep -i "^y\(es\)*$" >/dev/null && crontab -l | sed '/mailsync/d' | crontab - >/dev/null && echo "Mail sync turned off."
+ else
+ echo "How many minutes between each mail sync?"
+ printf "\033[36m\t"
+ read -r minnum
+ printf "\033[0m"
+ while ! echo "$minnum" | grep "^[0-9]\+$" >/dev/null; do
+ printf "That doesn't look like a number. How many minutes between each mail sync?\\n\033[36m\t"
+ read -r minnum
+ printf "\033[0m"
+ done
+ (crontab -l; echo "*/$minnum * * * * export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus; export DISPLAY=:0; . \$HOME/.profile; $(type mailsync | cut -d' ' -f3)") | crontab - &&
+ echo "Cronjob added. Mail will sync every $minnum minutes. Be sure you have your cron manager running."
+ fi ;}
+
+asktype() { while : ; do
+ printf "Do you want to keep your mail for this account offline with mbsync? [yes/no]\\n\t"
+ read -r offnot
+ case "$offnot" in
+ [Yy][Ee][Ss]) accounttype="offline" && break ;;
+ [Nn][Oo]) accounttype="online" && break ;;
+ *) echo "Write out either yes or no completely. Try again or press ctrl-c to quit." ;;
+ esac; done ;}
+
+purge() { confirm "delete all account data" || exit
+ rm -rf "$mbsyncrc" "$accdir" "$HOME/.config/msmtp" "$cachedir"
+ crontab -l | sed '/mailsync/d' | crontab - >/dev/null
+ echo "All configs and account settings have been purged."
+ sed -ibu "/\# mw-autogenerated/d" "$muttrc" ; rm -f "$muttrc"bu
+}
+
+notmuchauto() { \
+ [ -z "$NOTMUCH_CONFIG" ] && NOTMUCH_CONFIG="$HOME/.notmuch-config"
+ [ -f "$NOTMUCH_CONFIG" ] && return 0
+ nmbasic="[database]
+path=$maildir
+[user]
+name=$realname
+primary_email=$fulladdr
+[new]
+tags=unread;inbox;
+ignore=
+[search]
+exclude_tags=deleted;spam;
+[maildir]
+synchronize_flags=true
+[crypto]
+gpg_path=$GPG"
+ echo "$nmbasic" > "$NOTMUCH_CONFIG" ;}
+
+trap 'echo -e "\033[0m\n"; exit' STOP INT ABRT KILL
+
+case "$1" in
+ ls) list ;;
+ add) asktype && askinfo && tryconnect && finalize || delete ;;
+ pass) pick "change the password of" && getpass ;;
+ delete) pick delete && confirm "delete the \`$title\` profile" && delete ;;
+ purge) purge ;;
+ cron) choosecron ;;
+ *) cat << EOF
+mw: mutt-wizard, auto-configure email accounts for mutt
+including downloadable mail with \`isync\`.
+
+Allowed options:
+ add Add and autoconfigure an email address (9 max.)
+ ls List configured accounts
+ delete Pick an account to delete
+ purge Delete all accounts and settings
+ cron Enable or disable an autosync via cronjob
+ all else Print this message
+
+NOTE: Once at least one account is added, you can run
+\`mbsync -a\` to begin downloading mail.
+EOF
+esac
diff --git a/mutt/.config/mutt/bin/openfile b/mutt/.config/mutt/bin/openfile
new file mode 100755
index 0000000..e530b3e
--- /dev/null
+++ b/mutt/.config/mutt/bin/openfile
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Helps open a file with xdg-open from mutt in a external program without weird side effects.
+[ $(uname) = "Darwin" ] && opener="open" || opener="setsid xdg-open"
+mkdir -p "/tmp/$USER-mutt-tmp"
+file="/tmp/$USER-mutt-tmp/$(basename "$1")"
+rm -f "$file"
+cp "$1" "$file"
+$opener "$file" >/dev/null 2>&1 &
diff --git a/mutt/.config/mutt/credentials/getmuttpass b/mutt/.config/mutt/credentials/getmuttpass
deleted file mode 100644
index ee25584..0000000
--- a/mutt/.config/mutt/credentials/getmuttpass
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-pass=$(gpg2 --decrypt --quiet ~/.config/mutt/credentials/$1.gpg)
-pass=$(printf '%q' $pass)
-echo set smtp_pass=\"$pass\"
-echo set imap_pass=\"$pass\"
diff --git a/mutt/.config/mutt/credentials/imappwd.py b/mutt/.config/mutt/credentials/imappwd.py
deleted file mode 100644
index 0a74804..0000000
--- a/mutt/.config/mutt/credentials/imappwd.py
+++ /dev/null
@@ -1,11 +0,0 @@
-import os.path
-import subprocess
-home = os.path.expanduser("~")
-def mailpasswd(acct):
- acct = os.path.basename(acct)
- path = "%s/.config/mutt/credentials/%s.gpg" % (home,acct)
- args = ["gpg2", "--use-agent", "--quiet", "--batch", "-d", path]
- try:
- return subprocess.check_output(args).strip()
- except subprocess.CalledProcessError:
- return ""
diff --git a/mutt/.config/mutt/etc/aliases b/mutt/.config/mutt/etc/aliases
deleted file mode 100644
index d48d897..0000000
--- a/mutt/.config/mutt/etc/aliases
+++ /dev/null
@@ -1,13 +0,0 @@
-# vim: filetype=neomuttrc
-# A file for aliases
-
-alias me_personal kumarcanada96@gmail.com
-alias me_official damani.kumar@gmail.com
-alias me_school kumar.damani@mail.utoronto.ca
-
-alias mike_personal mdamani@shaw.ca
-alias mike_official mike@flightexpress.net
-alias kj_personal kavita_d@hotmail.com
-alias kj_official kavita@paylesstravelonline.com
-
-
diff --git a/mutt/.config/mutt/etc/email.gif b/mutt/.config/mutt/etc/email.gif
deleted file mode 100644
index 1ed63cf..0000000
--- a/mutt/.config/mutt/etc/email.gif
+++ /dev/null
Binary files differ
diff --git a/mutt/.config/mutt/etc/mailcap b/mutt/.config/mutt/etc/mailcap
deleted file mode 100644
index 1e9a613..0000000
--- a/mutt/.config/mutt/etc/mailcap
+++ /dev/null
@@ -1,13 +0,0 @@
-#text/html; qutebrowser %s &; test=test -n "$DISPLAY"; needsterminal;
-
-#text/html; $BROWSER %s 2>/dev/null & disown; copiousoutput;
-text/html; w3m -I %{charset} -T text/html; copiousoutput;
-
-application/pdf; mv %s %s.pdf && i3 exec mupdf %s.pdf > /dev/null; needsterminal;
-
-image/*; ~/.config/mutt/etc/muttimage.sh %s ; copiousoutput
-
-#application/pdf; pdftotext '%s' -; copiousoutput; description=PDF Document;
-#nametemplate=%s.pdf
-#
-text/plain; vim %s ;
diff --git a/mutt/.config/mutt/etc/mailsync.sh b/mutt/.config/mutt/etc/mailsync.sh
deleted file mode 100644
index 2ac78d9..0000000
--- a/mutt/.config/mutt/etc/mailsync.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-# This script will run offlineimap and check
-# for new email if there is an internet connection.
-#
-# If it detects new mail, it uses mpv to play a
-# notification sound: notify.opus
-#
-# I have this run as a cronjob every 5 minutes.
-
-export DISPLAY=:0.0
-
-# Checks for internet connection and set notification script.
-# Settings are different for MacOS (Darwin) systems.
-if [ "$(uname)" == "Darwin" ]
-then
- ping -q -t 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` >/dev/null || exit
- notify() { osascript -e "display notification \"$2 in $1\" with title \"Youve got Mail\" subtitle \"Account: $account\"" && sleep 2 ;}
-else
- ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` >/dev/null || exit
- notify() { pgrep -x dunst && notify-send -i ~/.config/mutt/etc/email.gif "$2 new mail(s) in \`$1\` account." ;}
-fi
-
-# Run offlineimap. You can feed this script different settings.
-offlineimap -o "$@"
-
-# Check all accounts/mailboxes for new mail. Notify if there is new content.
-for account in $(ls ~/.mail)
-do
- #List unread messages newer than last mailsync and count them
- newcount=$(find ~/.mail/$account/INBOX/new/ -type f -newer ~/.config/mutt/etc/mailsynclastrun 2> /dev/null | wc -l)
- if [ "$newcount" -gt "0" ]
- then
- notify "$account" "$newcount" & disown
- mpv --quiet ~/.config/mutt/etc/notify.opus
- pkill -RTMIN+12 i3blocks # For my i3blocks setup. Updates new mail counter.
- fi
-done
-
-#Create a touch file that indicates the time of the last run of mailsync
-touch ~/.config/mutt/etc/mailsynclastrun
diff --git a/mutt/.config/mutt/etc/muttcol b/mutt/.config/mutt/etc/muttcol
deleted file mode 100644
index 8524157..0000000
--- a/mutt/.config/mutt/etc/muttcol
+++ /dev/null
@@ -1,71 +0,0 @@
-# vim: filetype=neomuttrc
-
-# Default index colors:
-color index yellow default '.*'
-color index_author red default '.*'
-color index_number blue default
-color index_subject cyan default '.*'
-
-# For new mail:
-color index brightyellow black "~N"
-color index_author brightred black "~N"
-color index_subject brightcyan black "~N"
-
-# Header colors:
-color header blue default ".*"
-color header brightmagenta default "^(From)"
-color header brightcyan default "^(Subject)"
-color header brightwhite default "^(CC|BCC)"
-
-mono bold bold
-mono underline underline
-mono indicator reverse
-mono error bold
-color normal default default
-color indicator brightblack white
-color sidebar_highlight red default
-color sidebar_divider color8 black
-color sidebar_flagged red black
-color sidebar_new green black
-color normal brightyellow default
-color error red default
-color tilde black default
-color message cyan default
-color markers red white
-color attachment white default
-color search brightmagenta default
-color status brightyellow black
-color hdrdefault brightgreen default
-color quoted green default
-color quoted1 blue default
-color quoted2 cyan default
-color quoted3 yellow default
-color quoted4 red default
-color quoted5 brightred default
-color signature brightgreen default
-color bold black default
-color underline black default
-color normal default default
-
-color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
-color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
-color body green default "\`[^\`]*\`" # Green text between ` and `
-color body brightblue default "^# \.*" # Headings as bold blue
-color body brightcyan default "^## \.*" # Subheadings as bold cyan
-color body brightgreen default "^### \.*" # Subsubheadings as bold green
-color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
-color body brightcyan default "[;:][-o][)/(|]" # emoticons
-color body brightcyan default "[;:][)(|]" # emoticons
-color body brightcyan default "[*]?((N)?ACK|CU|LOL|SCNR|BRB|BTW|CWYL|\
- |FWIW|vbg|GD&R|HTH|HTHBE|IMHO|IMNSHO|\
- |IRL|RTFM|ROTFL|ROFL|YMMV)[*]?"
-color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
-color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
-color body red default "(BAD signature)"
-color body cyan default "(Good signature)"
-color body brightblack default "^gpg: Good signature .*"
-color body brightyellow default "^gpg: "
-color body brightyellow red "^gpg: BAD signature from.*"
-mono body bold "^gpg: Good signature"
-mono body bold "^gpg: BAD signature from.*"
-color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"
diff --git a/mutt/.config/mutt/etc/muttimage.sh b/mutt/.config/mutt/etc/muttimage.sh
deleted file mode 100644
index b67de83..0000000
--- a/mutt/.config/mutt/etc/muttimage.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#! /bin/sh
-
-#### Determine size of Terminal
-height=`stty size | awk 'BEGIN {FS = " "} {print $1;}'`
-width=`stty size | awk 'BEGIN {FS = " "} {print $2;}'`
-
-### Display Image / offset with mutt bar
-echo -e "2;3;\n0;1;210;20;$((width*7-250));$((height*14-100));0;0;0;0;$1\n4;\n3;" | /usr/lib/w3m/w3mimgdisplay &
diff --git a/mutt/.config/mutt/etc/mw.png b/mutt/.config/mutt/etc/mw.png
deleted file mode 100644
index dd15ce8..0000000
--- a/mutt/.config/mutt/etc/mw.png
+++ /dev/null
Binary files differ
diff --git a/mutt/.config/mutt/etc/notify.opus b/mutt/.config/mutt/etc/notify.opus
deleted file mode 100644
index a76ce32..0000000
--- a/mutt/.config/mutt/etc/notify.opus
+++ /dev/null
Binary files differ
diff --git a/mutt/.config/mutt/etc/view_attachment.sh b/mutt/.config/mutt/etc/view_attachment.sh
deleted file mode 100644
index df8b9a1..0000000
--- a/mutt/.config/mutt/etc/view_attachment.sh
+++ /dev/null
@@ -1,127 +0,0 @@
-#!/bin/bash
-#
-# Author: Eric Gebhart
-#
-# Purpose: To be called by mutt as indicated by .mailcap to handle mail attachments.
-#
-# Function: Copy the given file to a temporary directory so mutt
-# Won't delete it before it is read by the application.
-#
-# Along the way, discern the file type or use the type
-# That is given.
-#
-# Finally use 'open' or 'open -a' if the third argument is
-# given.
-#
-#
-# Arguments:
-#
-# $1 is the file
-# $2 is the type - for those times when file magic isn't enough.
-# I frequently get html mail that has no extension
-# and file can't figure out what it is.
-#
-# Set to '-' if you don't want the type to be discerned.
-# Many applications can sniff out the type on their own.
-# And they do a better job of it too.
-#
-# Open Office and MS Office for example.
-#
-# $3 is open with. as in open -a 'open with this .app' foo.xls
-#
-# Examples: These are typical .mailcap entries which use this program.
-#
-# Image/JPEG; /Users/vdanen/.mutt/view_attachment %s
-# Image/PNG; /Users/vdanen/.mutt/view_attachment %s
-# Image/GIF; /Users/vdanen/.mutt/view_attachment %s
-#
-# Application/PDF; /Users/vdanen/.mutt/view_attachment %s
-#
-# #This HTML example passes the type because file doesn't always work and
-# #there aren't always extensions.
-#
-# text/html; /Users/vdanen/.mutt/view_attachment %s html
-#
-# # If your Start OpenOffice.org.app is spelled with a space like this one, <--
-# # then you'll need to precede the space with a \ . I found that too painful
-# # and renamed it with an _.
-#
-# Application/vnd.ms-excel; /Users/vdanen/.mutt/view_attachment %s "-" '/Applications/OpenOffice.org1.1.2/Start_OpenOffice.org.app'
-# Application/msword; /Users/vdanen/.mutt/view_attachment %s "-" '/Applications/OpenOffice.org1.1.2/Start_OpenOffice.org.app'
-#
-#
-# Debugging: If you have problems set debug to 'yes'. That will cause a debug file
-# be written to /tmp/mutt_attach/debug so you can see what is going on.
-#
-# See Also: The man pages for open, file, basename
-#
-
-# the tmp directory to use.
-tmpdir="$HOME/.tmp/mutt_attach"
-
-# the name of the debug file if debugging is turned on.
-debug_file=$tmpdir/debug
-
-# debug. yes or no.
-#debug="no"
-debug="yes"
-
-type=$2
-open_with=$3
-
-# make sure the tmpdir exists.
-mkdir -p $tmpdir
-
-# clean it out. Remove this if you want the directory
-# to accumulate attachment files.
-rm -f $tmpdir/*
-
-# Mutt puts everything in /tmp by default.
-# This gets the basic filename from the full pathname.
-filename=`basename $1`
-
-# get rid of the extenson and save the name for later.
-file=`echo $filename | cut -d"." -f1`
-
-if [ $debug = "yes" ]; then
- echo "1:" $1 " 2:" $2 " 3:" $3 > $debug_file
- echo "Filename:"$filename >> $debug_file
- echo "File:"$file >> $debug_file
- echo "===========================" >> $debug_file
-fi
-
-# if the type is empty then try to figure it out.
-if [ -z $type ]; then
- file $1
- type=`file -bi $1 | cut -d"/" -f2`
-fi
-
-# if the type is '-' then we don't want to mess with type.
-# Otherwise we are rebuilding the name. Either from the
-# type that was passed in or from the type we discerned.
-if [ $type = "-" ]; then
- newfile=$filename
-else
- newfile=$file.$type
-fi
-
-newfile=$tmpdir/$newfile
-
-# Copy the file to our new spot so mutt can't delete it
-# before the app has a chance to view it.
-cp $1 $newfile
-
-if [ $debug = "yes" ]; then
- echo "File:" $file "TYPE:" $type >> $debug_file
- echo "Newfile:" $newfile >> $debug_file
- echo "Open With:" $open_with >> $debug_file
-fi
-
-# If there's no 'open with' then we can let preview do it's thing.
-# Otherwise we've been told what to use. So do an open -a.
-
-if [ -z $open_with ]; then
- open $newfile
-else
- open -a "$open_with" $newfile
-fi
diff --git a/mutt/.config/mutt/mutt-wizard.sh b/mutt/.config/mutt/mutt-wizard.sh
deleted file mode 100755
index 23ae7ab..0000000
--- a/mutt/.config/mutt/mutt-wizard.sh
+++ /dev/null
@@ -1,264 +0,0 @@
-#!/usr/bin/env bash
-
-if [[ "$(uname)" == "Darwin" ]]
-then
- os=".macos"
-else
- os=""
-fi
-
-muttdir="$HOME/.config/mutt/"
-
-createMailboxes() { \
- tmpdir=$(mktemp -d)
- offlineimap --info -a $1 2&> "$tmpdir"/log
- sed -n '/^Folderlist/,/^Folderlist/p' "$tmpdir"/log |
- grep "^ " | sed -e "s/\//./g;s/(.*//g;s/^ //g" > "$tmpdir"/lognew
- while read box; do mkdir -p "$HOME/.mail/$1/$box"; done <"$tmpdir"/lognew ;}
-
-chooseSync() { (cat /var/run/crond.pid && testSync) || dialog --msgbox "No cronjob manager detected. Please install one and return to enable automatic mailsyncing" 10 60 ;}
-testSync() { (crontab -l | grep .config/mutt/etc/mailsync && removeSync) || addSync ;}
-
-addSync() { min=$(dialog --inputbox "How many minutes should be between mail syncs?" 8 60 3>&1 1>&2 2>&3 3>&-)
- (crontab -l; echo "*/$min * * * * $HOME/.config/mutt/etc/mailsync.sh") | crontab - &&
- dialog --msgbox "Cronjob successfully added. Remember you may need to restart or tell systemd/etc. to start your cron manager for this to take effect." 7 60 ;}
-
-removeSync() { ((crontab -l | sed -e '/.config\/mutt\/etc\/mailsync/d') | crontab - >/dev/null) && dialog --msgbox "Cronjob successfully removed. To reactivate, select this option again." 6 60 ;}
-
-changePassword() { \
- gpgemail=$( dialog --title "Luke's mutt/offlineIMAP password wizard" --inputbox "Insert the email address with which you originally created your GPG key pair. This is NOT necessarily the email you want to configure." 10 60 3>&1 1>&2 2>&3 3>&- )
- dialog --title "Luke's mutt/offlineIMAP password wizard" --passwordbox "Enter the new password for the \"$1\" account." 10 60 2> /tmp/$1
- gpg2 -r $gpgemail --encrypt /tmp/$1 || (dialog --title "GPG decryption failed." --msgbox "GPG decryption failed. This is either because you do not have a GPG key pair or because your distro uses GPG1 and you thus need to symlink /usr/bin/gpg2 to /usr/bin/gpg." 7 60 && break)
- shred -u /tmp/$1
- mv /tmp/$1.gpg ~/.config/mutt/credentials/
- dialog --title "Finalizing your account." --infobox "The account \"$title\"'s password has been changed. Now attempting to configure mail directories...
-
- This may take several seconds..." 10 70
- createMailboxes $title || (clear && exit)
- detectMailboxes $title
- dialog --title "Password changed." --msgbox "Your "$fulladdr" password has been changed. To start the download of your mail, you can manually run \`offlineimap -a $title\` in a terminal. The first sync may take some time depending on the amount of your mail." 8 60 ;}
-
-chooseDetect() { for x in $(cat ~/.offlineimaprc | grep "^accounts =" | sed -e 's/accounts =\( \)//g;s/\(,\) /\n/g;'); do detectMailboxes $x; done && detectSuccess ;}
-
-detectWarning() { \
- dialog --title "Mailbox detect requirement" --yesno "In order for the mailbox detection system to work, you must have
-
-1) already have added the email account with this wizard, and
-2) already have run offlineimap at least once to synchronize your mail.
-
-This detection system only works if you already have begun your first sync. If you have, press 'yes' to continue." 12 70 ;}
-
-detectSuccess() { dialog --title "Mailbox detect complete." --msgbox "The script has now smartly detected your different mailboxes and has enabled them in the sidebar and given you keyboard shortcuts as below:
-
-gi for move to the Inbox.
-gs for move to Sent Mail.
-gd for move to Drafts
-gS for move to Spam
-ga for move to the Archive.
-gj for move to Junk
-gt for move to Trash
-
-These shortcuts will only work if your email system does have that particular folder (i.e. if your email system has a Junk folder, but not a Trash folder, 'gt' will not work, etc." 20 60 ;}
-
-formatShortcut() { \
- while read data; do
- echo "macro index,pager g$1 \"<change-folder>$data<enter>\" \"Go to $2.\"" >> "$muttdir"accounts/$3.muttrc
- done ;}
-
-gen_delim() { \
- delim="="
- for i in `seq $(( $1 - 1 ))`
- do
- delim="$delim-"
- done
- echo $delim ;}
-
-detectMailboxes() { \
- find ~/.mail/$1 -maxdepth 1 -mindepth 1 -type d | sed -e "s/.*\///g;s/^/=/g" > /tmp/$1_boxes
- sidebar_width=$(sed -n -e '/^set sidebar_width/p' "$muttdir"/muttrc | awk -F'=' '{print $2}')
- delim=$(gen_delim $sidebar_width)
- oneline=$(cat /tmp/$1_boxes | sed -e "s/^\|$/\"/g" | tr "\n" " ")
- oneline="=$1 $delim $oneline"
- sed -i "/^mailboxes\|^set spoolfile\|^set record\|^set postponed/d" "$muttdir"accounts/$1.muttrc
- echo mailboxes $oneline >> "$muttdir"accounts/$1.muttrc
- sed -i "/^macro index,pager g/d" "$muttdir"accounts/$1.muttrc
- grep -vi /tmp/$1_boxes -e "trash\|drafts\|sent\|trash\|spam\|junk\|archive\|chat\|old\|new\|gmail\|sms\|call" | sort -n | sed 1q | formatShortcut i inbox $1
- grep -i /tmp/$1_boxes -e sent | sed 1q | formatShortcut s sent $1
- grep -i /tmp/$1_boxes -e draft | sed 1q | formatShortcut d drafts $1
- grep -i /tmp/$1_boxes -e trash | sed 1q | formatShortcut t trash $1
- grep -i /tmp/$1_boxes -e spam | sed 1q | formatShortcut S spam $1
- grep -i /tmp/$1_boxes -e archive | sed 1q | formatShortcut a archive $1
- spoolfile=$(grep -vi /tmp/$1_boxes -e "trash\|drafts\|sent\|trash\|spam\|ham\|junk\|archive\|chat\|old\|new\|gmail\|sms\|call" | sort -n | sed 1q | sed -e 's/=/+/g')
- record=$(grep -i /tmp/$1_boxes -e sent | sed -e 's/=/+/g' | sed 1q)
- postponed=$(grep -i /tmp/$1_boxes -e draft | sed -e 's/=/+/g' | sed 1q)
- trash=$(grep -i /tmp/$1_boxes -e trash | sed -e 's/=/+/g' | sed 1q)
- echo "set spoolfile = \"$spoolfile\"" >> "$muttdir"accounts/$1.muttrc
- echo "set record = \"$record\"" >> "$muttdir"accounts/$1.muttrc
- echo "set postponed = \"$postponed\"" >> "$muttdir"accounts/$1.muttrc
- echo "set trash = \"$trash\"" >> "$muttdir"accounts/$1.muttrc ;}
-
-# Get all accounts in ~/.offlineimaprc and load into variable `accounts`.
-getAccounts() { \
- cat ~/.offlineimaprc | grep "^accounts =" | sed -e 's/accounts =\( \)//g;s/\(,\) /\n/g;' | nl --number-format=ln > /tmp/numbered
- accounts=()
- while read n s ; do
- accounts+=($n "$s" off)
- done < /tmp/numbered ;}
-
-# Yields a menu of available accounts.
-inventory() { \
- getAccounts
- choices=$(dialog --separate-output --checklist "Select all desired email accounts with <SPACE>." 15 40 16 "${accounts[@]}" 2>&1 >/dev/tty)
-
- if [ -z "$choices" ];
- then
- clear
- else
- userchoices=$(IFS="|"; keys="${choices[*]}"; keys="${keys//|/\\|}"; grep -w "${keys}" /tmp/numbered | awk '{print $2}')
- fi ;}
-
-
-removeAccount() { sed -ie "
- /Account $1]/,/Account/{//!d}
- /Account $1]/d
- s/ $1\(,\|$\)//g
- s/=$1\(,\|$\)/=/g
- s/,$//g
- " ~/.offlineimaprc
- rm "$muttdir"accounts/$1.muttrc
- rm "$muttdir"credentials/$1.gpg
- rm -rf "$muttdir"accounts/$1
- sed -i "/$1.muttrc/d" "$muttdir"personal.muttrc ;}
-
-manual() { \
- imap=$( dialog --inputbox "Insert the IMAP server for your email provider (excluding the port number)" 10 60 3>&1 1>&2 2>&3 3>&- )
- iport=$(dialog --inputbox "What is your server's IMAP port number? (Usually 993)" 10 60 3>&1 1>&2 2>&3 3>&-)
- smtp=$( dialog --inputbox "Insert the SMTP server for your email provider (excluding the port number)" 10 60 3>&1 1>&2 2>&3 3>&- )
- sport=$( dialog --inputbox "What is your server's SMTP port number? (Usually 587 or 465)" 10 60 3>&1 1>&2 2>&3 3>&- ) ;}
-
-
-addloop() { fulladdr=$( dialog --title "Luke's mutt/offlineIMAP autoconfig" --inputbox "Insert the full email address for the account you want to configure." 10 60 3>&1 1>&2 2>&3 3>&- )
-# Check to see if domain is in domain list
-serverinfo=$(cat "$muttdir"autoconf/domains.csv | grep -w ^${fulladdr##*@})
-if [ -z "$serverinfo" ];
- then
- manual
- else
-# Read in server data as variables
-IFS=, read service imap iport smtp sport <<EOF
-$serverinfo
-EOF
-fi
-realname=$( dialog --title "Luke's mutt/offlineIMAP autoconfig" --inputbox "Enter the full name you'd like to be identified by on this email account." 10 60 3>&1 1>&2 2>&3 3>&- )
-title=$( dialog --title "Luke's mutt/offlineIMAP autoconfig" --inputbox "Give a short, one-word name for this email account that will differentiate it from other email accounts." 10 60 3>&1 1>&2 2>&3 3>&- )
-login=$(dialog --title "Luke's mutt/offlineIMAP autoconfig" --inputbox "If you have a username for the \"$title\" account which is different from your email address, enter it here. Otherwise leave this prompt blank." 10 60 3>&1 1>&2 2>&3 3>&- )
-# Sets the repo type and other variables for the sed regex.
-if [[ "$service" == "gmail.com" ]];
- then
- type="Gmail"
- delet="remotehost"
- else
- type="IMAP"
- delet="Gmail]\/"
-fi
-if [[ -z "$login" ]];
- then
- login=$fulladdr
-fi
-# The replacements
-replacement="
- s/\$realname/$realname/g;
- s/\$title/$title/g;
- s/\$fulladdr/$fulladdr/g;
- s/\$imap/$imap/g;
- s/\$iport/$iport/g;
- s/\$smtp/$smtp/g;
- s/\$sport/$sport/g;
- s/\$type/$type/g;
- s/\$login/$login/g;
- /$delet/d"
-# Gets the first unused shortcut number in the muttrc and puts it in $idnum.
-cat "$muttdir"personal.muttrc | grep i[0-9] | awk '{print $3}' | sed -e 's/i//g' > /tmp/mutt_used
-echo -e "1\n2\n3\n4\n5\n6\n7\n8\n9" > /tmp/mutt_all_possible
-idnum=$(diff /tmp/mutt_all_possible /tmp/mutt_used | sed -n 2p | awk '{print $2}')
-addAccount \
-;}
-
-addAccount() {
- # First, adding the encrypted password.
- dialog --title "Luke's mutt/offlineIMAP password wizard" --passwordbox "Enter the password for the \"$title\" account." 10 60 2> /tmp/$title
- gpg2 -r $gpgemail --encrypt /tmp/$title || (dialog --title "GPG decryption failed." --msgbox "GPG decryption failed. This is either because you do not have a GPG key pair or because your distro uses GPG1 and you thus need to symlink /usr/bin/gpg2 to /usr/bin/gpg." 7 60 && break)
- shred -u /tmp/$title
- mv /tmp/$title.gpg ~/.config/mutt/credentials/
-
- # Adding directory structure for cache.
- mkdir -p "$muttdir"accounts/$title/cache/bodies
-
- # Creating the offlineimaprc if it doesn't exist already.
- if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header"$os" ~/.offlineimaprc; fi
- cat "$muttdir"autoconf/offlineimap_profile"$os" | sed -e "$replacement" >> ~/.offlineimaprc
- mkdir -p ~/.mail/$title
-
- # Add the mutt profile.
- cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc
- # Add a numbered shortcut in the muttrc
- echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source "$muttdir"accounts/$title.muttrc<enter><change-folder>!<enter>'" >> "$muttdir"personal.muttrc
-
- # Add to offlineimaprc sync list.
- sed -i.bu "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =\s*$/accounts = $title/g" ~/.offlineimaprc && rm ~/.offlineimaprc.bu
-
- # Makes account default if there is no default account.
- grep "$muttdir"personal.muttrc -e "^source .*accounts.*" >/dev/null && echo there || \
- echo "source ${muttdir}accounts/$title.muttrc" >> "$muttdir"personal.muttrc
-
- dialog --title "Finalizing your account." --infobox "The account \"$title\" has been added. Now attempting to configure mail directories...
-
- This may take several seconds..." 10 70
- createMailboxes $title || (clear && exit)
- detectMailboxes $title
- dialog --title "Account added." --msgbox "Your "$fulladdr" account has been added. To start the download of your mail, you can manually run \`offlineimap -a $title\` in a terminal. The first sync may take some time depending on the amount of your mail." 8 60 ;}
-
-# This is run when a user chooses to add an account.
-chooseAdd() { \
- mkdir -p "$muttdir"credentials/ "$muttdir"accounts/
- gpgemail=$( dialog --title "Luke's mutt/offlineIMAP password wizard" --inputbox "Insert the email address with which you originally created your GPG key pair. This is NOT necessarily the email you want to configure." 10 60 3>&1 1>&2 2>&3 3>&- )
- addloop
- while : ;
- do
- dialog --title "Luke's mutt/offlineIMAP password wizard" --yesno "Would you like to add another email account?" 5 60 || break
- addloop
- done ;}
-
-wipe () { rm $HOME/.offlineimaprc
- rm -rf "$muttdir"/accounts
- rm -f "$muttdir"credentials/*gpg
- rm "$muttdir"personal.muttrc ;}
-
-while : ;
- do
-choice=$(dialog --title "Luke's mutt/offlineIMAP wizard" --nocancel \
- --menu "What would you like to do?" 15 45 8 \
- 0 "List all email accounts configured." \
- 1 "Add an email account." \
- 2 "Enable/disable autosync." \
- 3 "Redetect mailboxes." \
- 4 "Change an account's password." \
- 5 "Remove an email account." \
- 6 "Remove all email accounts." \
- 7 "Exit this wizard." \
- 3>&1 1>&2 2>&3 3>&1 )
-
-case $choice in
-0) dialog --title "Accounts detected" --msgbox "The following accounts have been detected:
-$(grep ~/.offlineimaprc -e "^accounts =" | sed 's/accounts =//g')
-" 6 60;;
-1) chooseAdd;;
-2) chooseSync;;
-3) detectWarning && chooseDetect;;
-4) inventory && for i in $userchoices; do changePassword $i ; done;;
-5) inventory && for i in $userchoices; do removeAccount $i ; done;;
-6) (dialog --defaultno --title "Wipe all custom neomutt/offlineIMAP settings?" --yesno "Would you like to wipe all of the mutt/offlineIMAP settings generated by the system?" 6 60 && wipe) ;;
-7) clear && break ;;
-*) echo "Unable to read response from dialog. Exiting." >&2; exit 2
-esac
-done
diff --git a/mutt/.config/mutt/muttrc b/mutt/.config/mutt/muttrc
index cf647ef..412117d 100644
--- a/mutt/.config/mutt/muttrc
+++ b/mutt/.config/mutt/muttrc
@@ -1,85 +1,5 @@
# vim: filetype=neomuttrc
-# This is the general mutt config which has the settings that all accounts use.
-bind index,pager i noop
-bind index,pager g noop
-bind index \Cf noop
-source etc/muttcol
-source etc/aliases
-set sleep_time = 0
-set sort = 'reverse-date'
-set editor = $EDITOR
-#set copy = no
-set timeout = "5"
-set mail_check = "10"
-set mailcap_path = ~/.config/mutt/etc/mailcap
-set date_format="%m/%d %I:%M"
-set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
-set markers = no
-set mark_old = no
-set mime_forward = yes
-set smtp_authenticators = 'gssapi:login'
-auto_view text/html
-auto_view application/pdf
-alternative_order text/plain text/enriched text/html
-set rfc2047_parameters = yes
-
-# General remappings
-bind editor <space> noop
-bind index G last-entry
-bind index gg first-entry
-bind pager j next-line
-bind pager k previous-line
-bind pager gg top
-bind pager G bottom
-bind index d half-down
-bind index u half-up
-bind index D delete-message
-bind index U undelete-message
-bind index F search
-bind index,pager R group-reply
-macro index,pager S '<sync-mailbox>
-macro index,pager \Cu |urlscan\n
-
-# View attachments properly.
-bind attach <return> view-mailcap
-set fast_reply # skip to compose when replying
-set fcc_attach # save attachments with the body
-unset mime_forward # forward attachments as part of body
-set forward_format = "Fwd: %s" # format of subject when forwarding
-set forward_decode # decode when forwarding
-set forward_quote # include message in forwards
-set reverse_name # reply as whomever it was to
-set include # include message in replies
-
-#Ctrl-R to mark all as read
-macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
-
-#sync email
-macro index O "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail"
-macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "run offlineimap to sync inbox"
-
-#copy/move dialogs
-macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
-macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
-
-# Notmuch searching
-macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
-macro index A "<limit>all\n" "show all messages (undo limit)"
-
-# Sidebar mappings
-set sidebar_visible = yes
-set sidebar_width = 20
-set sidebar_short_path = yes
-set sidebar_next_new_wrap = yes
-set mail_check_stats
-set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
-bind index,pager \Ck sidebar-prev
-bind index,pager \Cj sidebar-next
-bind index,pager \Co sidebar-open
-bind index,pager <F3> sidebar-page-up
-bind index,pager <F4> sidebar-page-down
-bind index,pager \Cp sidebar-prev-new
-bind index,pager \Cn sidebar-next-new
-bind index,pager B sidebar-toggle-visible
-
-source personal.muttrc
+source /usr/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated
+source /home/kdam0/.config/mutt/accounts/1-main.muttrc # mw-autogenerated
+macro index,pager i1 '<sync-mailbox><enter-command>source /home/kdam0/.config/mutt/accounts/1-main.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to kumarcanada96@gmail.com" # mw-autogenerated
+macro index,pager i2 '<sync-mailbox><enter-command>source /home/kdam0/.config/mutt/accounts/2-work.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to damani.kumar@gmail.com" # mw-autogenerated
diff --git a/mutt/.config/mutt/mw.1 b/mutt/.config/mutt/mw.1
new file mode 100644
index 0000000..b60cbf8
--- /dev/null
+++ b/mutt/.config/mutt/mw.1
@@ -0,0 +1,231 @@
+.TH MW 1 mutt-wizard
+.SH NAME
+mw \- mutt-wizard \- autoconfigure email accounts for neomutt and isync
+.SH SYNOPSIS
+.B mw
+<command>
+.SH DESCRIPTION
+.B mw
+takes a user email account and sets up a terminal-based email interface with it for
+.B neomutt.
+This can include offline email with
+.B isync/mbsync
+and configs for
+.B msmtp
+for sending mail, and also passwords automatically encrypted and stored with
+.B pass.
+.SH COMMANDS
+.TP
+.B add
+configure an email account
+.TP
+.B ls
+list all email accounts configured by mutt-wizard
+.TP
+.B delete
+delete the configuration files for an already configured email account
+.TP
+.B purge
+totally purge all local mutt-wizard accounts
+.TP
+.B cron
+toggle a cronjob that will automatically sync mail with
+.B mailsync
+as often as you wish
+.SH DETAILS
+.TP
+.B Mail location
+If the user chooses to keep offline email with
+.B isync,
+it will be kept in
+.I ~/.local/share/mail/.
+.B notmuch
+can be used to index and search this mail by giving this directory when first running
+.B notmuch setup.
+If you have not set up notmuch before, mutt-wizard will automatically set it up in the background the first time you add an account.
+.TP
+.B muttrc files
+mutt-wizard will create a muttrc file for each created account holding account-specific details. These will appear in
+.I ~/.config/mutt/accounts/
+and can be edited by the user if needbe. Note that the mutt-wizard will also source these files and create the bindings to switch between them, and these will appear in your default
+.I ~/.config/mutt/muttrc
+file.
+.TP
+.B Mail deletion
+Neither
+.B delete
+or
+.B purge
+will delete downloaded mail for for safety (and time)'s sake. If you want to delete downloaded mail, do so manually by removing it from the directory above.
+.TP
+.B Default settings
+The mutt-wizard has many default settings that focus on making it aesthetically pleasing and supplying more vim-like bindings. These can be found in
+.I /usr/share/mutt-wizard/mutt-wizard.muttrc
+and the default mailcap file can be found in
+.I
+/usr/share/mutt-wizard/mailcap.
+Any of these settings can be overwritten in
+.I ~/.config/mutt/muttrc,
+but be mindful that your overriding binds should appear after the
+.I
+mutt-wizard.muttrc
+file is sourced.
+.TP
+.B Detecting server settings
+mutt-wizard has a repository of email services and their server information kept in
+.I /usr/share/mutt-wizard/domains.csv
+which is used to automatically configure email settings.
+If your email provider is not found there, it will prompt you to input your email service's IMAP and SMTP server information which can usually be found by searching online.
+
+If you would like to help develop mutt-wizard for others, you are invited to add this service information to
+.I domains.csv
+on mutt-wizard's Github <https://github.com/lukesmithxyz/mutt-wizard> or Gitlab <https://gitlab.com/lukesmithxyz/mutt-wizard> pages.
+.TP
+.B Gmail accounts
+Google will require you to allow "less-secure" (third party) applications or use two-factor authentication in order to access their IMAP servers to download your mail. If you use Gmail, be sure to handle this before running mutt-wizard <https://support.google.com/accounts/answer/6010255>.
+.B Protonmail accounts
+Protonmail users must use the Protonmail Bridge <https://protonmail.com/bridge/> to access their IMAP and SMTP servers. This too should be configured before running mutt-wizard.
+.B Enterprise and university accounts
+Many universities and businesses might host their domain's email via Google or another service. This often requires a special IMAP/SMTP-specific password that you must generate and use. Again, mutt-wizard can handle these systems, but only once they've been set up.
+.TP
+.B Password decryption
+mutt-wizard uses
+.I pass
+and therefore
+.I gpg
+to decrypt your passwords. Provided your GPG key has a password, this might mean that you will be prompted for your GPG password the first time you sync or send mail in a session. Once your password is cached, it might also expire later as well.
+
+Because of this I strongly recommend the program
+.I pam-gnupg
+<https://github.com/cruegge/pam-gnupg> which automatically unlocks your GPG password on login and keeps it active, thus giving you, with mutt-wizard, secure access to all your email accounts on your system without ever having to input a password.
+
+If you don't want to use this program, you can also increase the cache time of an inputted GPG password with the
+.I default-cache-ttl
+and
+.I max-cache-ttl
+variables in your
+.I
+gpg-agent.conf.
+.SH MUTT-WIZARD'S NEOMUTT CONFIGURATION
+Here is a list of not only mutt-wizard's particular defaults, but what you need to get the most out of email accounts configured with mutt-wizard.
+.TP
+.B Color
+The mutt-wizard's default settings add color to messages in the index and color mail details to make them easier to see. New mail, in addition to being marked by the typical N, will also be bold.
+.TP
+.B Movement with h/j/k/l
+Use vim keys to move down
+.I j
+or up
+.I k
+in mail, while
+.I l
+opens mail, then the attachment view, then an attachment, while
+.I h
+is the reverse.
+While mail is open, go to next or previous mail with
+.I J
+and
+.I K.
+In the mail index,
+.I d
+and
+.I u
+go down and up by a half page and
+.I gg
+and
+.I G
+go to the very top and very bottom.
+.TP
+.B Search mail
+If you have
+.B notmuch
+configured with your proper mail directory (see above), you may run
+.I ctrl-f
+to search for mail containing any given sequence.
+Even without notmuch,
+.I L
+limits mail, showing only those with the given sequence in the subject while
+.I A
+shows all mail (same as limiting to "all").
+.TP
+.B Deleting mail
+.I D
+deletes mail, while
+.I U
+undeletes it (type in mail number to get to deleted mail). Note that
+.I S
+saves your mailbox, finalizing deletion. If you have a
+.I Trash
+box, deleted mail is moved there. If you want it to skip that and simply be deleted, comment out or remove the
+.I set trash
+line in that account's muttrc.
+.TP
+.B Send mail
+.I m
+creates a new mail message;
+.I r
+replies to the selected message;
+.I R
+replies all to the selected message and
+.I f
+fowards the selected message.
+.TP
+.B Compose mail screen
+Once you write mail and save the buffer you will be brought to the compose screen. Press
+.I a
+to add attachments, use
+.I s/t/c/b/d
+to change the subject/to/CC/BCC/description. Press
+.I S
+to change the signature/encryption. Press
+.I y
+to send the mail.
+.TP
+.B Saving and autocompleting email addresses with abook
+Install the optional dependency abook and you will be able to save the sender's email address with
+.I a.
+Once this is done, when you are typing in any email/contact prompt, you may press
+.I Tab
+to find contacts matching your input. Although abook is often used with mutt, it is also a useful program in its own right.
+.TP
+.B Switching and moving mail between mailboxes
+The
+.I g
+key can be paired with several other keys to automatically move to another mailbox: gi: Inbox; gs: Sent; gd: Drafts; ga: Archive; gS: Spam; gj: Junk; gt: Trash. These bindings will only be present for accounts that have the boxes in question. Instead of
+.I g,
+you can also press
+.I C
+to copy mail or
+.I M
+to move mail to the same boxes.
+.TP
+.B Switching between accounts
+mutt-wizard can configure as many as nine accounts each numbered by the lowest available number when configured. Press
+.I i
+followed by an account's number to change to that account: i2, i5, etc.
+.I ctrl-b
+to open a menu to select a url you want to open in you browser.
+.TP
+.B Sidebar
+mutt-wizard enables the sidebar by default which displays your account's boxes with mail tallies.
+.I B
+will toggle the sidebar. Move up and down in it with
+.I ctrl-k/j.
+Open a box with
+.I ctrl-o.
+.TP
+.B More information
+Remember that you can press
+.I ?
+at any time in neomutt to get a list of all key-bindings and functions. This list can also vary for different context menus.
+.SH AUTHORS
+Written by Luke Smith <luke@lukesmith.xyz> originally in 2018.
+.SH LICENSE
+GPLv3
+.SH SEE ALSO
+.BR neomutt (1),
+.BR neomuttrc (1)
+.BR mbsync (1),
+.BR msmtp (1),
+.BR notmuch (1),
+.BR abook (1)
diff --git a/mutt/.config/mutt/share/domains.csv b/mutt/.config/mutt/share/domains.csv
new file mode 100644
index 0000000..0c3dfcb
--- /dev/null
+++ b/mutt/.config/mutt/share/domains.csv
@@ -0,0 +1,281 @@
+ADDRESS,IMAP,imap port,SMTP,smtp port
+icloud.com,imap.mail.me.com,993,smtp.mail.me.com,587
+420blaze.it,mail.cock.li,993,mail.cock.li,587
+8chan.co,mail.cock.li,993,mail.cock.li,587
+aaathats3as.com,mail.cock.li,993,mail.cock.li,587
+accountant.com,imap.mail.com,993,smtp.mail.com,587
+activist.com,imap.mail.com,993,smtp.mail.com,587
+adexec.com,imap.mail.com,993,smtp.mail.com,587
+airmail.cc,mail.cock.li,993,mail.cock.li,587
+allergist.com,imap.mail.com,993,smtp.mail.com,587
+alumni.bits-pilani.ac.in,imap.gmail.com,993,smtp.gmail.com,465
+alumni.com,imap.mail.com,993,smtp.mail.com,587
+alumnidirector.com,imap.mail.com,993,smtp.mail.com,587
+alunos.utfpr.edu.br,imap.gmail.com,993,smtp.gmail.com,587
+anche.no,mail.autistici.org,993,smtp.autistici.org,465
+angelic.com,imap.mail.com,993,smtp.mail.com,587
+aol.com,imap.aol.com,993,smtp.aol.com,465
+appraiser.net,imap.mail.com,993,smtp.mail.com,587
+archaeologist.com,imap.mail.com,993,smtp.mail.com,587
+arcticmail.com,imap.mail.com,993,smtp.mail.com,587
+artlover.com,imap.mail.com,993,smtp.mail.com,587
+asia.com,imap.mail.com,993,smtp.mail.com,587
+auctioneer.net,imap.mail.com,993,smtp.mail.com,587
+autistiche.org,mail.autistici.org,993,smtp.autistici.org,465
+autistici.org,mail.autistici.org,993,smtp.autistici.org,465
+autograf.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
+autoproduzioni.net,mail.autistici.org,993,smtp.autistici.org,465
+bartender.net,imap.mail.com,993,smtp.mail.com,587
+bastardi.net,mail.autistici.org,993,smtp.autistici.org,465
+bguth.de,wp300.webpack.hosteurope.de,993,wp300.webpack.hosteurope.de,587
+bikerider.com,imap.mail.com,993,smtp.mail.com,587
+billycarlyle.uk,mail.muny.us,993,mail.muny.us,465
+birdlover.com,imap.mail.com,993,smtp.mail.com,587
+bjoernguthphotography.de,wp300.webpack.hosteurope.de,993,wp300.webpack.hosteurope.de,587
+brew-meister.com,imap.mail.com,993,smtp.mail.com,587
+bruttocarattere.org,mail.autistici.org,993,smtp.autistici.org,465
+canaglie.net,mail.autistici.org,993,smtp.autistici.org,465
+canaglie.org,mail.autistici.org,993,smtp.autistici.org,465
+carleton.ca,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
+cash4u.com,imap.mail.com,993,smtp.mail.com,587
+cheerful.com,imap.mail.com,993,smtp.mail.com,587
+chef.net,imap.mail.com,993,smtp.mail.com,587
+chemist.com,imap.mail.com,993,smtp.mail.com,587
+chrissx.ga,chrissx.ga,993,chrissx.ga,25
+clarkson.edu,imap.gmail.com,993,smtp.gmail.com,587
+clerk.com,imap.mail.com,993,smtp.mail.com,587
+clubmember.org,imap.mail.com,993,smtp.mail.com,587
+cmail.carleton.ca,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
+cocaine.ninja,mail.cock.li,993,mail.cock.li,587
+cock.email,mail.cock.li,993,mail.cock.li,587
+cock.li,mail.cock.li,993,mail.cock.li,587
+cock.lu,mail.cock.li,993,mail.cock.li,587
+collector.org,imap.mail.com,993,smtp.mail.com,587
+columnist.com,imap.mail.com,993,smtp.mail.com,587
+comic.com,imap.mail.com,993,smtp.mail.com,587
+computer4u.com,imap.mail.com,993,smtp.mail.com,587
+consultant.com,imap.mail.com,993,smtp.mail.com,587
+contractor.net,imap.mail.com,993,smtp.mail.com,587
+coolsite.net,imap.mail.com,993,smtp.mail.com,587
+counsellor.com,imap.mail.com,993,smtp.mail.com,587
+cryptolab.net,mail.autistici.org,993,smtp.autistici.org,465
+cumallover.me,mail.cock.li,993,mail.cock.li,587
+cyberservices.com,imap.mail.com,993,smtp.mail.com,587
+datentopf.org,imap.migadu.com,993,smtp.migadu.com,587
+deliveryman.com,imap.mail.com,993,smtp.mail.com,587
+dicksinhisan.us,mail.cock.li,993,mail.cock.li,587
+dicksinmyan.us,mail.cock.li,993,mail.cock.li,587
+diplomats.com,imap.mail.com,993,smtp.mail.com,587
+disroot.org,disroot.org,993,disroot.org,587
+distruzione.org,mail.autistici.org,993,smtp.autistici.org,465
+dr.com,imap.mail.com,993,smtp.mail.com,587
+duke.edu,outlook.office365.com,993,smtp.office365.com,587
+email.arizona.edu,imap.gmail.com,993,smtp.gmail.com,587
+email.com,imap.mail.com,993,smtp.mail.com,587
+eneco.com,outlook.office365.com,993,smtp.office365.com,587
+engineer.com,imap.mail.com,993,smtp.mail.com,587
+erciyes.edu.tr,posta.erciyes.edu.tr,993,smtp.erciyes.edu.tr,587
+ethancoe.com,mail.privateemail.com,993,mail.privateemail.com,465
+etu.upmc.fr,courriel.upmc.fr,993,smtps.upmc.fr,587
+europe.com,imap.mail.com,993,smtp.mail.com,587
+fastmail.com,imap.fastmail.com,993,smtp.fastmail.com,465
+fastmail.fm,imap.fastmail.com,993,smtp.fastmail.com,465
+firemail.cc,mail.cock.li,993,mail.cock.li,587
+forpsi.com,imap.forpsi.com,993,smtp.forpsi.com,465
+forthnet.gr,mail.forthnet.gr,993,smtp-auth.forthnet.gr,465
+fsmpi.rwth-aachen.de,mail.fsmpi.rwth-aachen.de,993,mail.fsmpi.rwth-aachen.de,465
+fsu-jena,exchange.uni-jena.de,993,smtp.uni-jena.de,587
+getbackinthe.kitchen,mail.cock.li,993,mail.cock.li,587
+gmail.com,imap.gmail.com,993,smtp.gmail.com,587
+gmx.at,imap.gmx.net,993,mail.gmx.net,587
+gmx.com,imap.gmx.net,993,mail.gmx.net,587
+gmx.de,imap.gmx.net,993,mail.gmx.net,587
+gmx.eu,imap.gmx.net,993,mail.gmx.net,587
+gmx.fr,imap.gmx.com,993,mail.gmx.com,587
+gmx.info,imap.gmx.net,993,mail.gmx.net,587
+gmx.net,imap.gmx.net,993,mail.gmx.net,587
+gmx.org,imap.gmx.net,993,mail.gmx.net,587
+go2.pl,poczta.o2.pl,993,poczta.o2.pl,465
+goat.si,mail.cock.li,993,mail.cock.li,587
+googlemail.com,imap.googlemail.com,993,smtp.googlemail.com,587
+grrlz.net,mail.autistici.org,993,smtp.autistici.org,465
+hacari.com,mail.autistici.org,993,smtp.autistici.org,465
+hacari.net,mail.autistici.org,993,smtp.autistici.org,465
+hacari.org,mail.autistici.org,993,smtp.autistici.org,465
+hhu.de,mail.hhu.de,993,mail.hhu.de,465
+hitler.rocks,mail.cock.li,993,mail.cock.li,587
+horsefucker.org,mail.cock.li,993,mail.cock.li,587
+hostgator,gator4171.hostgator.com,993,gator4171.hostgator.com,587
+hotmail.be,outlook.office365.com,993,smtp.office365.com,587
+hotmail.ca,outlook.office365.com,993,smtp.office365.com,587
+hotmail.cl,outlook.office365.com,993,smtp.office365.com,587
+hotmail.co.id,outlook.office365.com,993,smtp.office365.com,587
+hotmail.co.il,outlook.office365.com,993,smtp.office365.com,587
+hotmail.co.in,outlook.office365.com,993,smtp.office365.com,587
+hotmail.co.jp,outlook.office365.com,993,smtp.office365.com,587
+hotmail.co.kr,outlook.office365.com,993,smtp.office365.com,587
+hotmail.co.th,outlook.office365.com,993,smtp.office365.com,587
+hotmail.co.uk,outlook.office365.com,993,smtp.office365.com,587
+hotmail.co.za,outlook.office365.com,993,smtp.office365.com,587
+hotmail.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
+hotmail.com.ar,outlook.office365.com,993,smtp.office365.com,587
+hotmail.com.au,outlook.office365.com,993,smtp.office365.com,587
+hotmail.com.br,outlook.office365.com,993,smtp.office365.com,587
+hotmail.com.hk,outlook.office365.com,993,smtp.office365.com,587
+hotmail.com.tr,outlook.office365.com,993,smtp.office365.com,587
+hotmail.com.tw,outlook.office365.com,993,smtp.office365.com,587
+hotmail.com.vn,outlook.office365.com,993,smtp.office365.com,587
+hotmail.cz,outlook.office365.com,993,smtp.office365.com,587
+hotmail.de,outlook.office365.com,993,smtp.office365.com,587
+hotmail.dk,outlook.office365.com,993,smtp.office365.com,587
+hotmail.es,outlook.office365.com,993,smtp.office365.com,587
+hotmail.fi,outlook.office365.com,993,smtp.office365.com,587
+hotmail.fr,outlook.office365.com,993,smtp.office365.com,587
+hotmail.gr,outlook.office365.com,993,smtp.office365.com,587
+hotmail.hu,outlook.office365.com,993,smtp.office365.com,587
+hotmail.it,outlook.office365.com,993,smtp.office365.com,587
+hotmail.lt,outlook.office365.com,993,smtp.office365.com,587
+hotmail.lv,outlook.office365.com,993,smtp.office365.com,587
+hotmail.my,outlook.office365.com,993,smtp.office365.com,587
+hotmail.nl,outlook.office365.com,993,smtp.office365.com,587
+hotmail.no,outlook.office365.com,993,smtp.office365.com,587
+hotmail.ph,outlook.office365.com,993,smtp.office365.com,587
+hotmail.rs,outlook.office365.com,993,smtp.office365.com,587
+hotmail.se,outlook.office365.com,993,smtp.office365.com,587
+hotmail.sg,outlook.office365.com,993,smtp.office365.com,587
+hotmail.sk,outlook.office365.com,993,smtp.office365.com,587
+humbug.pw,imap.migadu.com,993,smtp.migadu.com,587
+hushmail.com,imap.hushmail.com,993,smtp.hushmail.com,465
+illinois.edu, imap.gmail.com,993,smtp.gmail.com,465
+iname.com,imap.mail.com,993,smtp.mail.com,587
+inf.h-brs.de,imap.inf.h-brs.de,993,smtp.inf.h-brs.de,587
+infomaniak.com,imap.infomaniak.com,993,imap.infomaniak.com,587
+insiberia.net,mail.autistici.org,993,smtp.autistici.org,465
+insicuri.net,mail.autistici.org,993,smtp.autistici.org,465
+interactio.io,imap.gmail.com,993,smtp.gmail.com,587
+interia.eu,poczta.interia.pl,993,poczta.interia.pl,465
+interia.pl,poczta.interia.pl,993,poczta.interia.pl,465
+inventati.org,mail.autistici.org,993,smtp.autistici.org,465
+itu.dk,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
+kipras.org,mail.kipras.org,993,mail.kipras.org,587
+krutt.org,mail.autistici.org,993,smtp.autistici.org,465
+kth.se,webmail.kth.se,993,smtp.kth.se,587
+lavabit.com,lavabit.com,993,lavabit.com,587
+linuxmail.org,imap.mail.com,993,smtp.mail.com,587
+live.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
+logorroici.org,mail.autistici.org,993,smtp.autistici.org,465
+loves.dicksinhisan.us,mail.cock.li,993,mail.cock.li,587
+loves.dicksinmyan.us,mail.cock.li,993,mail.cock.li,587
+lukesmith.xyz,mail.lukesmith.xyz,993,mail.lukesmith.xyz,587
+mail.com,imap.mail.com,993,smtp.mail.com,587
+mail.mcgill.ca,outlook.office365.com,993,smtp.office365.com,587
+mail.polimi.it,outlook.office365.com,993,smtp.office365.com,587
+mail.ru,imap.mail.ru,993,smtp.mail.ru,465
+mailbox.org,imap.mailbox.org,993,smtp.mailbox.org,587
+mailbox.tu-dresden.de,msx.tu-dresden.de,993,msx.tu-dresden.de,587
+mailo.com,mail.mailo.com,993,mail.mailo.com,465
+memeware.net,mail.cock.li,993,mail.cock.li,587
+ml1.net,imap.fastmail.com,993,smtp.fastmail.com,465
+mortemale.org,mail.autistici.org,993,smtp.autistici.org,465
+msn.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
+muny.us,mail.muny.us,993,mail.muny.us,465
+myself.com,imap.mail.com,993,smtp.mail.com,587
+narod.ru,imap.yandex.com,993,smtp.yandex.com,587
+national.shitposting.agency,mail.cock.li,993,mail.cock.li,587
+netcourrier.com,mail.netcourrier.com,993,mail.netcourrier.com,465
+nigge.rs,mail.cock.li,993,mail.cock.li,587
+nuke.africa,mail.cock.li,993,mail.cock.li,587
+nyu.edu,imap.gmail.com,993,smtp.gmail.com,587
+o2.pl,poczta.o2.pl,993,poczta.o2.pl,465
+odu.edu,imap.gmail.com,993,smtp.gmail.com,587
+one.com,imap.one.com,993,send.one.com,465
+onenetbeyond.org,mail.autistici.org,993,smtp.autistici.org,465
+onet.com.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
+onet.eu,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
+onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,587
+online.de,imap.1und1.de,993,smtp.1und1.de,465
+op.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
+opoczta.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
+orange.fr,imap.orange.fr,993,smtp.orange.fr,465
+outlook.at,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
+outlook.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
+outlook.de,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
+outlook.es,outlook.office365.com,993,smtp.office365.com,587
+paranoici.org,mail.autistici.org,993,smtp.autistici.org,465
+pm.me,127.0.0.1,1143,127.0.0.1,1025
+poczta.fm,poczta.interia.pl,993,poczta.interia.pl,465
+poczta.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
+polimi.it,outlook.office365.com,993,smtp.office365.com,587
+post.com,imap.mail.com,993,smtp.mail.com,587
+posteo.de,posteo.de,993,posteo.de,587
+posteo.net,posteo.de,993,posteo.de,587
+privacyrequired.com,mail.autistici.org,993,smtp.autistici.org,465
+prokonto.pl,poczta.o2.pl,993,poczta.o2.pl,465
+protonmail.ch,127.0.0.1,1143,127.0.0.1,1025
+protonmail.com,127.0.0.1,1143,127.0.0.1,1025
+rape.lol,mail.cock.li,993,mail.cock.li,587
+redchan.it,mail.cock.li,993,mail.cock.li,587
+resch.pw,imap.migadu.com,993,smtp.migadu.com,587
+runbox.com,mail.runbox.com,993,mail.runbox.com,587
+rwth-aachen.de,mail.rwth-aachen.de,993,mail.rwth-aachen.de,587
+sapo.pt,imap.sapo.pt,993,smtp.sapo.pt,587
+smail.inf.h-brs.de,imap.inf.h-brs.de,993,smtp.inf.h-brs.de,587
+southwales.ac.uk,imap.gmail.com,993,smtp.gmail.com,587
+spoko.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
+stevens.edu,imap.outlook.com,993,smtp.outlook.com,587
+stronzi.org,mail.autistici.org,993,smtp.autistici.org,465
+stud.tu-darmstadt.de,imap.stud.tu-darmstadt.de,993,smtp.tu-darmstadt.de,465
+stud.uis.no,outlook.office365.com,993,smtp.office365.com,587
+stud.uni-bamberg.de,outlook.office365.com,993,smtp.office365.com,587
+student.rmit.edu.au,outlook.office365.com,993,smtp.office365.com,587
+student.tuwien.ac.at,mail.student.tuwien.ac.at,993,mail.student.tuwien.ac.at,587
+students.southwales.ac.uk,imap.gmail.com,993,smtp.gmail.com,587
+studserv.uni-leipzig.de,studserv.uni-leipzig.de,993,studserv.uni-leipzig.de,25
+subvertising.org,mail.autistici.org,993,smtp.autistici.org,465
+t-online.de,secureimap.t-online.de,993,securesmtp.t-online.de,465
+techie.com,imap.mail.com,993,smtp.mail.com,587
+tecnico.ulisboa.pt,mail.tecnico.ulisboa.pt,993,mail.tecnico.ulisboa.pt,465
+teknik.io,mail.teknik.io,993,mail.teknik.io,587
+telenet.be,imap.telenet.be,993,smtp.telenet.be,587
+tfwno.gf,mail.cock.li,993,mail.cock.li,587
+tlen.pl,poczta.o2.pl,993,poczta.o2.pl,465
+tlu.edu,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
+tquad.ai,imap.mail.eu-west-1.awsapps.com,993,smtp.mail.eu-west-1.awsapps.com,465
+tu-harburg.de,mail.tu-harburg.de,993,mail.tu-harburg.de,587
+tuhh.de,mail.tu-harburg.de,993,mail.tu-harburg.de,587
+txstate.edu,outlook.office365.com,993,smtp.office365.com,587
+ua.pt,outlook.office365.com,993,mail.ua.pt,25
+uach.mx,imap.gmail.com,993,smtp.gmail.com,587
+uni-duesseldorf.de,mail.hhu.de,993,mail.hhu.de,465
+uoregon.edu,imap.uoregon.edu,993,smtp.uoregon.edu,587
+uqtr.ca,outlook.office365.com,993,smtp.office365.com,587
+usa.com,imap.mail.com,993,smtp.mail.com,587
+utas.edu.au,outlook.office365.com,993,smtp.office365.com,587
+utdallas.edu,outlook.office365.com,993,smtp.office365.com,587
+uw.edu,imap.gmail.com,993,smtp.gmail.com,465
+uymail.com,imap.mail.com,993,smtp.mail.com,587
+vip.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
+vivaldi.net,imap.vivaldi.net,993,smtp.vivaldi.net,587
+vp.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
+vt.edu,imap.gmail.com,993,smtp.gmail.com,587
+waifu.club,mail.cock.li,993,mail.cock.li,587
+wanadoo.fr,imap.orange.fr,993,smtp.orange.fr,465
+wants.dicksinhisan.us,mail.cock.li,993,mail.cock.li,587
+wants.dicksinmyan.us,mail.cock.li,993,mail.cock.li,587
+web.de,imap.web.de,993,smtp.web.de,587
+wit.edu,outlook.office365.com,993,smtp.office365.com,587
+wp.pl,imap.wp.pl,993,smtp.wp.pl,465
+writeme.com,imap.mail.com,993,smtp.mail.com,587
+ya.ru,imap.yandex.com,993,smtp.yandex.com,587
+yahoo.com,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587
+yahoo.fr,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587
+yahoo.gr,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587
+yandex.by,imap.yandex.com,993,smtp.yandex.com,587
+yandex.com,imap.yandex.com,993,smtp.yandex.com,587
+yandex.kz,imap.yandex.com,993,smtp.yandex.com,587
+yandex.net,imap.yandex.com,993,smtp.yandex.com,587
+yandex.ru,imap.yandex.com,993,smtp.yandex.com,587
+yandex.ua,imap.yandex.com,993,smtp.yandex.com,587
+zoho.com,imap.zoho.com,993,smtp.zoho.com,465
+polito.it,mail.polito.it,993,mail.polito.it,465
+studio.unibo.it,outlook.office365.com,993,smtp.office365.com,587
diff --git a/mutt/.config/mutt/share/mailcap b/mutt/.config/mutt/share/mailcap
new file mode 100644
index 0000000..9687b75
--- /dev/null
+++ b/mutt/.config/mutt/share/mailcap
@@ -0,0 +1,7 @@
+text/plain; $EDITOR %s ;
+text/html; openfile %s ; nametemplate=%s.html
+text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput;
+image/*; muttimage %s ; copiousoutput
+video/*; setsid mpv --quiet %s &; copiousoutput
+application/pdf; openfile %s ;
+application/pgp-encrypted; gpg -d '%s'; copiousoutput;
diff --git a/mutt/.config/mutt/share/mutt-wizard.muttrc b/mutt/.config/mutt/share/mutt-wizard.muttrc
new file mode 100644
index 0000000..e006e3f
--- /dev/null
+++ b/mutt/.config/mutt/share/mutt-wizard.muttrc
@@ -0,0 +1,148 @@
+# vim: filetype=neomuttrc
+# This file contains all of mutt-wizard's default settings.
+# mutt-wizard will have this file sourced from your muttrc.
+# In the interest of seamless updating, do not edit this file.
+# If you want to override any settings, set those in your muttrc.
+set mailcap_path = /usr/share/mutt-wizard/mailcap
+set date_format="%y/%m/%d %I:%M%p"
+set index_format="%2C %zs %?X?A& ? %D %-15.15F %s (%-4.4c)"
+set sort = 'reverse-date'
+set smtp_authenticators = 'gssapi:login'
+set query_command = "abook --mutt-query '%s'"
+set rfc2047_parameters = yes
+set sleep_time = 0 # Pause 0 seconds for informational messages
+set markers = no # Disables the `+` displayed at line wraps
+set mark_old = no # Unread mail stay unread until read
+set mime_forward = yes # attachments are forwarded with mail
+set wait_key = no # mutt won't ask "press key to continue"
+set fast_reply # skip to compose when replying
+set fcc_attach # save attachments with the body
+set forward_format = "Fwd: %s" # format of subject when forwarding
+set forward_quote # include message in forwards
+set reverse_name # reply as whomever it was to
+set include # include message in replies
+set mail_check=60 # to avoid lags using IMAP with some email providers (yahoo for example)
+auto_view text/html # automatically show html (mailcap uses w3m)
+auto_view application/pgp-encrypted
+alternative_order text/plain text/enriched text/html
+bind index,pager i noop
+bind index,pager g noop
+bind index \Cf noop
+
+# General rebindings
+bind attach <return> view-mailcap
+bind attach l view-mailcap
+bind editor <space> noop
+bind index G last-entry
+bind index gg first-entry
+bind pager,attach h exit
+bind pager j next-line
+bind pager k previous-line
+bind pager l view-attachments
+bind index D delete-message
+bind index U undelete-message
+bind index L limit
+bind index h noop
+bind index l display-message
+#bind browser h goto-parent
+macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
+bind index,pager H view-raw-message
+bind browser l select-entry
+bind pager,browser gg top-page
+bind pager,browser G bottom-page
+bind index,pager,browser d half-down
+bind index,pager,browser u half-up
+bind index,pager S sync-mailbox
+bind index,pager R group-reply
+bind index \031 previous-undeleted # Mouse wheel
+bind index \005 next-undeleted # Mouse wheel
+bind pager \031 previous-line # Mouse wheel
+bind pager \005 next-line # Mouse wheel
+bind editor <Tab> complete-query
+
+macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
+macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
+macro index O "<shell-escape>mailsync -Va<enter>" "run mbsync to sync all mail"
+macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"
+macro index A "<limit>all\n" "show all messages (undo limit)"
+
+# Sidebar mappings
+set sidebar_visible = yes
+set sidebar_width = 20
+set sidebar_short_path = yes
+set sidebar_next_new_wrap = yes
+set mail_check_stats
+set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
+bind index,pager \Ck sidebar-prev
+bind index,pager \Cj sidebar-next
+bind index,pager \Co sidebar-open
+bind index,pager \Cp sidebar-prev-new
+bind index,pager \Cn sidebar-next-new
+bind index,pager B sidebar-toggle-visible
+
+# Default index colors:
+color index yellow default '.*'
+color index_author red default '.*'
+color index_number blue default
+color index_subject cyan default '.*'
+
+# New mail is boldened:
+color index brightyellow black "~N"
+color index_author brightred black "~N"
+color index_subject brightcyan black "~N"
+
+# Other colors and aesthetic settings:
+mono bold bold
+mono underline underline
+mono indicator reverse
+mono error bold
+color normal default default
+color indicator brightblack white
+color sidebar_highlight red default
+color sidebar_divider brightblack black
+color sidebar_flagged red black
+color sidebar_new green black
+color normal brightyellow default
+color error red default
+color tilde black default
+color message cyan default
+color markers red white
+color attachment white default
+color search brightmagenta default
+color status brightyellow black
+color hdrdefault brightgreen default
+color quoted green default
+color quoted1 blue default
+color quoted2 cyan default
+color quoted3 yellow default
+color quoted4 red default
+color quoted5 brightred default
+color signature brightgreen default
+color bold black default
+color underline black default
+color normal default default
+
+# Regex highlighting:
+color header blue default ".*"
+color header brightmagenta default "^(From)"
+color header brightcyan default "^(Subject)"
+color header brightwhite default "^(CC|BCC)"
+color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
+color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
+color body green default "\`[^\`]*\`" # Green text between ` and `
+color body brightblue default "^# \.*" # Headings as bold blue
+color body brightcyan default "^## \.*" # Subheadings as bold cyan
+color body brightgreen default "^### \.*" # Subsubheadings as bold green
+color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
+color body brightcyan default "[;:][-o][)/(|]" # emoticons
+color body brightcyan default "[;:][)(|]" # emoticons
+color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
+color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
+color body red default "(BAD signature)"
+color body cyan default "(Good signature)"
+color body brightblack default "^gpg: Good signature .*"
+color body brightyellow default "^gpg: "
+color body brightyellow red "^gpg: BAD signature from.*"
+mono body bold "^gpg: Good signature"
+mono body bold "^gpg: BAD signature from.*"
+color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"
diff --git a/mutt/.offlineimaprc b/mutt/.offlineimaprc
deleted file mode 100644
index 8331c3d..0000000
--- a/mutt/.offlineimaprc
+++ /dev/null
@@ -1,62 +0,0 @@
-[general]
-accounts = gmailPersonal, gmailOfficial, utmail
-starttls = yes
-ssl = yes
-pythonfile = ~/.config/mutt/credentials/imappwd.py
-
-[Account gmailPersonal]
-
-localrepository = gmailPersonal-local
-remoterepository = gmailPersonal-remote
-
-[Repository gmailPersonal-remote]
-auth_mechanisms = LOGIN
-type = Gmail
-remoteuser = kumarcanada96@gmail.com
-remotepasseval = mailpasswd("gmailPersonal")
-remoteport = 993
-folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail']
-sslcacertfile = /etc/ssl/certs/ca-certificates.crt
-ssl_version = tls1_2
-
-[Repository gmailPersonal-local]
-type = Maildir
-localfolders = ~/.mail/gmailPersonal
-[Account gmailOfficial]
-
-localrepository = gmailOfficial-local
-remoterepository = gmailOfficial-remote
-
-[Repository gmailOfficial-remote]
-auth_mechanisms = LOGIN
-type = Gmail
-remoteuser = damani.kumar@gmail.com
-remotepasseval = mailpasswd("gmailOfficial")
-remoteport = 993
-folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail']
-sslcacertfile = /etc/ssl/certs/ca-certificates.crt
-ssl_version = tls1_2
-
-[Repository gmailOfficial-local]
-type = Maildir
-localfolders = ~/.mail/gmailOfficial
-[Account utmail]
-
-localrepository = utmail-local
-remoterepository = utmail-remote
-
-[Repository utmail-remote]
-auth_mechanisms = LOGIN
-type = IMAP
-remotehost = outlook.office365.com
-remoteuser = kumar.damani@mail.utoronto.ca
-sslcacerfile = /etc/ssl/cets/ca-certificates.crt
-remotepasseval = mailpasswd("utmail")
-port = 993
-folderfilter = lambda foldername: foldername not in ['Deleted Items', 'Contacts', 'Calendar', 'Trash']
-sslcacertfile = /etc/ssl/certs/ca-certificates.crt
-ssl_version = tls1_2
-
-[Repository utmail-local]
-type = Maildir
-localfolders = ~/.mail/utmail