# Mutt Configuration

Mutt is linux command line mail utility. Configure your outlook365 account.

```bash
#Copy these contents in ~/.muttrc

set folder="imaps://outlook.office365.com/"
set spoolfile= +INBOX
 
mailboxes
 
#My settings
alternative_order text/calendar text/plain  text/*
auto_view text/calendar text/html
 
 
set imap_check_subscribed="yes"
set imap_list_subscribed="yes"
set timeout=60
set mail_check=90
set imap_keepalive=180
set imap_user=<yourmail>@company.com
set imap_pass="your_password"
set imap_idle
unset mark_old
set ssl_use_sslv3=yes
 
 
# SMTP config
set realname = "Your Name"
set hostname="company.com"       # my DNS domain
set use_from=yes
set from=<your mail>@company.com
set envelope_from=yes
set mbox_type = mboxmutt

#Add patch bindinging 
macro index \Ch "<enter-command>unset wait_key<enter><enter-command>set pipe_decode<enter><tag-prefix><pipe-entry>from-mutt<enter><enter-command>unset pipe_decode<enter><enter-command>set wait_key<enter>" "output git patches"
```

Add below contents in **\~/bin/from-mutt**

```bash
#!/bin/bash
 
PATCH_FILE=`mktemp --tmpdir="$HOME/tmp"  mutt-patch.XXXXXX`
cat > $PATCH_FILE
MAILBOX=`cat $PATCH_FILE | formail -c -xSubject: | tr "'" "." | sed -e '{ s@\[@@g; s@\]@@g; s@[*()" \t]@_@g; s@[/:]@-@g; s@^ \+@@; s@\.\.@.@g; s@-_@_@g; s@__@_@g; s@\.$@@; }' | cut -c 1-70`.patch
mv "$PATCH_FILE" "$HOME/incoming/$MAILBOX"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://explore-vineeth.gitbook.io/mywiki/how-to/mutt-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
