muttmua / mutt

The Mutt E-Mail Client github mirror. Please use gitlab for issues/pull requests.
https://gitlab.com/muttmua/mutt
Other
217 stars 26 forks source link

send messages with custom ClientType #3

Open nicoursi opened 4 years ago

nicoursi commented 4 years ago

I was wondering if it could be possible to introduce this feature. Sometimes ISPs do not allow script automation, and changing the ClientType could to some different Client (e.g. Thunderbird) could help πŸ˜‰

raforg commented 2 years ago

The "ClientType" is called "User-Agent" and the ability to do this already exists. From the manual entry:

   user_agent
          Type: boolean
          Default: no

          When  set,  mutt will add a β€œUser-Agent:” header to outgoing messages, indicating which version of mutt
          was used for composing them.

   my_hdr string
   unmy_hdr field

          Using  my_hdr,  you  can define headers which will be added to the messages you compose.  unmy_hdr will
          remove the given user-defined headers.

So, you can turn off the proper User-Agent and add your own by adding this to your .muttrc:

set user_agent = no set my_hdr = "User-Agent: Thunderbird"

or similar. But it might not solve your problem. It's unlikely that a mutt user agent would be interpreted as script automation. Mutt is used by humans.

This issue should be closed.