error while sending mail using git send-email

Ozgur Karatas mueddib at goosey.org
Sat Feb 4 21:05:32 EST 2017


05.02.2017, 04:53, "srishti sharma" <srishtishar at gmail.com>:
>  These are the mutt configurations
>
>    set ssl_starttls = yes
>    set ssl_force_tls = yes
>    set imap_user = srishtishar at gmail.com
>    set imap_pass = 'heuristics at 56'
>
>    set from = srishtishar at gmail.com
>    set realname = 'srishti sharma'
>    set folder = imaps://imap.gmail.com/
>    set spoolfile = imaps://imap.gmail.com/INBOX
>    set postponed = "imaps://imap.gmail.com/[Gmail]/Drafts"
>
>    set header_cache = "~/.mutt/cache/headers"
>    set message_cachedir = "~/.mutt/cache/bodies"
>    set certificate_file = "~/.mutt/certificates"
>    set smtp_url = 'smtps://smtp-relay.gmail.com'
>    set move = no
>    set imap_keepalive = 900

Hello,

firstly, please don't share your e-mail password and immediately change to password now.

1. Create a username/password file to ~/.mutt/account.gpg

Read: https://gist.github.com/lazyfrost/ca4807e185d5e6816bf1

1. Please add below lines to .mutt file:

source '~/.mutt/gmail'
source "gpg -dq $HOME/.mutt/account.gpg |"

folder-hook 'gmail.com'  'source ~/.mutt/gmail'
account-hook gmail.com  'set imap_user=$my_gmail_user imap_pass=$my_gmail_pass'

2. Create a file ~/.mutt/gmail and add below lines:

# GENERAL OPTIONS
set header_cache     = ~/.mutt/gmail.com/cache/headers
set message_cachedir = ~/.mutt/gmail.com/cache/bodies
set certificate_file = ~/.mutt/certificates
unset record

# RECEIVE OPTIONS
set imap_check_subscribed
unset imap_passive
set imap_keepalive = 900
set mail_check     = 900

# REMOTE GMAIL FOLDERS
set folder    = 'imaps://imap.gmail.com:993'
set spoolfile = '+INBOX'
set postponed = '+Drafts'

# SEND OPTIONS
set realname  = $my_name
set from      = $my_gmail_user
set smtp_url  = 'smtp://'$my_gmail_user'@smtp.gmail.com:587/'
set smtp_pass = $my_gmail_pass

Finally,

Create a patch and run command:

$ mutt -H 0001-patch.patch

Regards,

~Ozgur



More information about the Kernelnewbies mailing list