Re: mutt configuration problems for gmail

2015-03-26 Thread Peng Yu
On Thu, Mar 26, 2015 at 6:34 PM, Eduardo A. Bustamante López dual...@gmail.com wrote: On Thu, Mar 26, 2015 at 05:59:06PM -0500, Peng Yu wrote: System: Darwin 13.4.0 (x86_64) [using ncurses 5.9] Compile options: -DOMAIN -DEBUG -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL

mutt configuration problems for gmail

2015-03-26 Thread Peng Yu
Hi, I have the following mutt installed through MacPorts on a Mac OS X 10.9.5, and I followed the instructions on https://blog.bartbania.com/raspberry_pi/consolify-your-gmail-with-mutt/ to configure mutt. But when I run mutt, I see the following errors. Does anybody know what wrong is wrong? Do I

How to just view the email constructed by mutt without sending it?

2016-04-20 Thread Peng Yu
Hi, I use the following command to send email with mutt. But sometimes, I want to inspect the email body constructed by mutt. Is there a way to do so? Thanks. echo "This is the message body" | mutt -s "subject of message" -- a...@domain.com -- Regards, Peng

How to debug muttrc? (for signature)

2016-08-14 Thread Peng Yu
Hi, I have the following line in my muttrc. But no signature is generated in the email (I only tested mutt on the command line). set signature="~/.signature" Does anybody know how to debug muttrc to understand why no signature is included in the generated emails? -- Regards, Peng

Re: How to debug muttrc? (for signature)

2016-08-14 Thread Peng Yu
BTW, I use the follow command to send the email. mutt -s 'my subject' pengyu...@gmail.com <<< my_body On Sun, Aug 14, 2016 at 10:40 AM, Peng Yu <pengyu...@gmail.com> wrote: > Hi, I have the following line in my muttrc. But no signature is > generated in the emai

[SPAM?] How to allow mutt to send from different accounts on the command line?

2016-08-11 Thread Peng Yu
Hi, I have msmtp set up on my computer. But I don't find how to specify different accounts to send email from mutt command line. Does anybody know how to do it? Thanks. -- Regards, Peng

How to not disable the showing of hostname in message-id?

2019-03-16 Thread Peng Yu
Hi, I set `hidden-host` to yes. But the hostname still shows up. http://www.mutt.org/doc/manual/#hidden-host I don't want to use the following solution as it still shows the hostname even it is fake. https://bbs.archlinux.org/viewtopic.php?id=213306 Could anybody let me know if there is a way

How not to encode the To: field?

2019-07-03 Thread Peng Yu
Hi, I have the following line in the mutt config file. set send_charset="us-ascii:utf-8" "François" in the "To:" filed will be encoded as "=?utf-8?B?RnJhbsOnb2lz?=". Is there a way to just use "François" without being encoded in the "To:" field? Thanks. -- Regards, Peng

Re: How not to encode the To: field?

2019-07-03 Thread Peng Yu
n Wed, Jul 03, 2019 at 03:01:40PM -0500, Peng Yu wrote: >>In this email that I am sending, the "To:" field of the original >>message should have "François" as is. Do you know why? > > To: =?UTF-8?B?RnJhbsOnb2lz?= > > Looks to me like Gmail correctly

Re: How not to encode the To: field?

2019-07-03 Thread Peng Yu
In this email that I am sending, the "To:" field of the original message should have "François" as is. Do you know why? On 7/3/19, Kevin J. McCarthy wrote: > On Wed, Jul 03, 2019 at 01:27:02PM -0500, Peng Yu wrote: >>"François" in the "To:" f

What environment variable affects the "charset" variable?

2019-07-08 Thread Peng Yu
Hi, `mutt -D` prints 'charset="iso-8859-1"' when it runs in a non-interactive bash session scheduled by crontab. But the same command prints 'charset="utf-8"' when it runs in an interactive bash session. I suspect that this is affected by an environment variable. Does anybody know why there is

Re: not to set message id in outgoing email

2021-02-03 Thread Peng Yu
On Wed, Feb 3, 2021 at 11:23 AM Will Yardley wrote: > > On Wed, Feb 03, 2021 at 08:57:32AM -0600, Peng Yu wrote: > > > > When I use mutt to construct an outgoing email, is there a way not to > > set the message id? Thanks. > > Even if Mutt doesn't set one, the firs

How does mutt know to automatically choose charset?

2021-02-04 Thread Peng Yu
Hi, mutt can adjust the charset based on the input. But it seems that EmailMessage from python can not do this automatically. How does mutt choose the charset automatically based on the content? Thanks. https://docs.python.org/3/library/email.message.html $ mutt -F temp.muttrc t...@addr.com <<<

How to show bcc in the raw message generate by mutt?

2021-02-04 Thread Peng Yu
Hi, The Bcc field is not shown in the generated message. Is there a way to let mutt generate the Bcc field from the command line? Thanks. $ mutt -F temp.muttrc -b b...@addr.com -c c...@addr.com t...@addr.com <<< aaa Date: Thu, 4 Feb 2021 10:21:10 -0600 From: My name To: t...@addr.com Cc:

Re: not to set message id in outgoing email

2021-02-03 Thread Peng Yu
> I don't know if it's possible to remove the header altogether, but you > can make mutt show only specific headers by using the "ignore" and > "unignore" commands as specified in the mutt manual. > > In the sample starter muttrc file provided by the mutt package in my > distribution, there are

not to set message id in outgoing email

2021-02-03 Thread Peng Yu
Hi, When I use mutt to construct an outgoing email, is there a way not to set the message id? Thanks. -- Regards, Peng

Re: How to generate html mime message?

2021-02-07 Thread Peng Yu
oc, it is an answer > to the question in the subject, so I hope it's right. > > I'm the author of https://github.com/amitramon/plainMail2HTML - this > is a simple tool that allows for generating HTML mime part from any > email sent from Mutt. Perhaps you'll find it useful. > > Cheers, >

How to remove `To: undisclosed-recipients: ;`?

2021-02-04 Thread Peng Yu
Hi, I want to remove `To: undisclosed-recipients: ;` in the generated message when no To or Cc recipients are specified. I don't see an option to do this in the manual. Could anybody let me know if there is an option to remove it? Thanks. http://www.mutt.org/doc/manual/ -- Regards, Peng

How to generate html mime message?

2021-02-07 Thread Peng Yu
Hi, https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt I see the following muttrc command is used to compose an HTML message on the above URL. I just want to inspect the mime message in the command line without using the GUI. macro compose \e5 "F pandoc -s

Re: How does mutt know to automatically choose charset?

2021-02-12 Thread Peng Yu
On 2/12/21, Derek Martin wrote: > On Thu, Feb 04, 2021 at 08:42:31AM -0600, Peng Yu wrote: >> mutt can adjust the charset based on the input. But it seems that >> EmailMessage from python can not do this automatically. How does mutt >> choose the charset automatically based o

How mutt check to download emails from an imap server without downloading them more than once?

2023-03-19 Thread Peng Yu
Hi, I use the following python code to download UNDELETED messages. But it will fetch all messages without considering whether an message has been downloaded previously. How does mutt solve this problem to only download the emails that have not been downloaded before. import email with