GIT-IMAP-SEND(1) (NAME) git-imap-send - IMAP (SYNOPSIS) git imap-send [-v] [-q] [--[no-]curl] [(--folder|-f) ] git imap-send --list (DESCRIPTION) (mailbox) git format-patch (drafts) IMAP . . From Date Subject . : $ git format-patch --signoff --stdout --attach origin | git imap-send (OPTIONS) -v, --verbose (). -q, --quiet . -f , --folder= . : --folder=[Gmail]/Drafts -f INBOX/Drafts. --curl libcurl IMAP . USE_CURL_FOR_IMAP_SEND . --no-curl IMAP IMAP libcurl. NO_OPENSSL . --list LIST IMAP . (CONFIGURATION) imap.folder imap.tunnel imap.host . git-config(1) . : imap.folder Drafts . : INBOX.Drafts INBOX/Drafts [Gmail]/Drafts. IMAP --folder . imap.tunnel IMAP (pipe) . imap.host . imap.host (URL) . imap:// imaps:// . imap.tunnel . imap.user . imap.pass . imap.port . imap:// 143 imaps:// 993 . imap.tunnel . imap.sslverify / SSL/TLS. true . imap.tunnel . imap.preformattedHTML / HTML . HTML
               
            text/html  .  
               
            Thunderbird   
              plain/text  format=fixed
            .  
           false .

       imap.authMethod
               
             IMAP.   
            NO_CURL  
              curl 
             7.34.0  
           git-imap-send    --no-curl 
             
             
           PLAIN CRAM-MD5 OAUTHBEARER  XOAUTH2.   
               git
           imap-send    
            IMAP  LOGIN
            .

   
        (GETTING A LIST OF AVAILABLE FOLDERS)
            
           
            
        .  
       "Junk" "Trash"    
         
         
         
         
         
        .

           
           git imap-send
         git imap-send --list 
        .   
          
         .  
           
            
        :

           * LIST (\HasNoChildren) "/" "INBOX"
           * LIST (\HasChildren \Noselect) "/" "[Gmail]"
           * LIST (\All \HasNoChildren) "/" "[Gmail]/All Mail"
           * LIST (\Drafts \HasNoChildren) "/" "[Gmail]/Drafts"
           * LIST (\HasNoChildren \Important) "/" "[Gmail]/Important"
           * LIST (\HasNoChildren \Sent) "/" "[Gmail]/Sent Mail"
           * LIST (\HasNoChildren \Junk) "/" "[Gmail]/Spam"
           * LIST (\Flagged \HasNoChildren) "/" "[Gmail]/Starred"
           * LIST (\HasNoChildren \Trash) "/" "[Gmail]/Trash"

          
            
       "Junk"   [Gmail]/Spam  
        "Trash"   [Gmail]/Trash .
           
          
        .

 (EXAMPLES)
          :

           [imap]
               folder = "INBOX.Drafts"
               tunnel = "ssh -q -C user@example.com /usr/bin/imapd ./Maildir 2> /dev/null"

          :

           [imap]
               folder = "INBOX.Drafts"
               host = imap://imap.example.com
               user = bob
               pass = p4ssw0rd

          
         SSL:

           [imap]
               folder = "INBOX.Drafts"
               host = imaps://imap.example.com
               user = bob
               pass = p4ssw0rd
               port = 123
               ; sslVerify = false


           

              
             sslVerify=false
               
              
                
             
             example.com  
              
           (  )
               
            .

          IMAP :

           [imap]
               folder = "[Gmail]/Drafts"
               host = imaps://imap.gmail.com
               user = user@gmail.com
               port = 993


          
           
       git imap-send .   
          
         
         
          (app-specific
       password)    git imap-send
        .   
        https://security.google.com/settings/security/apppasswords
        . 
           
        OAuth2.0   
           
        .

           

              
              "Folder doesn't exist"
           (  ) 
                 folder
           = "[Google Mail]/Drafts"  .
              git
           imap-send --list   
             
            .

           

               
              
               
           "Drafts"   .

          
          OAuth2.0 
         
       OAUTHBEARER  XOAUTH2   
         .  
          
         
            
          
        . 
           
            OAuth2.0
           
       .

           [imap]
               folder = "[Gmail]/Drafts"
               host = imaps://imap.gmail.com
               user = user@gmail.com
               port = 993
               authmethod = OAUTHBEARER


          IMAP 
       (Outlook):

          
            OAuth2.0
        . 
         XOAUTH2  
        
       .

           [imap]
               folder = "Drafts"
               host = imaps://outlook.office365.com
               user = user@outlook.com
               port = 993
               authmethod = XOAUTH2


           
           
        :

           $ git format-patch --cover-letter -M --stdout origin/master | git imap-send

           
        (line wrapping)   
         
       (     
          
            IMAP
        ).

            
       OAuth2.0  
         
        (credential helpers) 
          .
        
         git-send-email(1) 
          git
       imap-send   .

 (CAUTION)
          
           
          
           
         
       .   
          
         (attachment)  .
         
          
         
       (   
          format=flowed)  
           
       .    
          
          .

           
        (Thunderbird) 
       .  Thunderbird
         
            
       :
       https://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email

  (SEE ALSO)
       git-format-patch(1), git-send-email(1), mbox(5)

 (GIT)
          git(1)

Git 2.55.0                        2026-06-29                  GIT-IMAP-SEND(1)