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

2023-03-19 Thread Peng Yu
): with open('%s/%d.eml' % (outdir, message_id), 'wb') as f: f.write(data[b'RFC822']) -- Regards, Peng

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

Re: How to generate html mime message?

2021-02-07 Thread Peng Yu
/plain2html Traceback (most recent call last): File "bin/plain2html", line 36, in from plain2html import settings ModuleNotFoundError: No module named 'plain2html' On 2/7/21, Amit Ramon wrote: > Hello Peng, > > While this might not be the answer for how to use pan

How to generate html mime message?

2021-02-07 Thread Peng Yu
Content-Type: text/html; charset=UTF-8 But what does "y^T^U" do? -- Regards, Peng

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 show bcc in the raw message generate by mutt?

2021-02-04 Thread Peng Yu
/tmp/mycat.sh #!/usr/bin/env bash # vim: set noexpandtab tabstop=2: cat -- Regards, Peng

How does mutt know to automatically choose charset?

2021-02-04 Thread Peng Yu
om set hostname = gmail.com set sendmail=/tmp/mycat.sh $ cat /tmp/mycat.sh #!/usr/bin/env bash # vim: set noexpandtab tabstop=2: cat -- Regards, Peng

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

Re: not to set message id in outgoing email

2021-02-03 Thread Peng Yu
ya...@gmail.com set hostname = gmail.com set sendmail=/tmp/mycat.sh ignore * $ mutt -F temp.muttrc t...@addr.com <<< abc Date: Wed, 3 Feb 2021 10:42:55 -0600 From: My name To: t...@addr.com Message-ID: <20210203164255.ga66...@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline abc -- Regards, Peng

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

What environment variable affects the "charset" variable?

2019-07-08 Thread Peng Yu
ariable. Does anybody know why there is such a difference? -- 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

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

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

2019-03-16 Thread Peng Yu
a way to disable the appearance of hostname in message-id? Thanks. -- 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 wrote: > Hi, I have the following line in my muttrc. But no signature is > generated in the email (I only tested mutt on t

[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 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

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 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_DOTL

mutt configuration problems for gmail

2015-03-26 Thread Peng Yu
e 15: message_cachedir: unknown variable Error in /Users/py/.muttrc, line 19: smtp_url: unknown variable Error in /Users/py/.muttrc, line 20: smtp_pass: unknown variable Error in /Users/py/.muttrc, line 26: source: errors in /Users/py/.muttrc Press any key to continue... -- Regards, Peng

Re: reply a forwarded mail to correct sender?

2011-01-27 Thread peng shao
On Wed, Jan 26, 2011 at 2:59 PM, Michael Elkins wrote: > On Tue, Jan 25, 2011 at 07:41:23AM -0500, peng shao wrote: >> >> Hi, thank you for your attention and here is a little problem: I have >> two mail accounts, assume they are >> >> m...@a.edu >> m...@b

reply a forwarded mail to correct sender?

2011-01-25 Thread peng shao
m...@a.edu, which is certainly not what I want. I read the header of the forwarded mail I received at B and it seems everything is fine. If I use thunderbird to reply it then m...@gmail.com is placed correctly as the receiver. Is there anyway to let mutt recognize the correct receiver? Thank you. Peng

Re: Multiple IMAP accounts

2010-03-20 Thread Peng
gt; Actually you may find this frustrating sometimes if your internet connection is not very good Peng

for IMAP folder

2010-03-19 Thread peng shao
ot;no mailboxes have new mail". Is there anyway I can tell mutt to treat IMAP like a normal folder so that the can find it? Thank you for any concern. Peng

Re: relation between folder-hook and push

2010-03-18 Thread Peng Shao
for the explanation. Perhaps they should at least write it into the manual. I just found it in the wiki http://wiki.mutt.org/?DebugConfig but I guess some beginners like me may feel really confused about the order. Thanks Peng

relation between folder-hook and push

2010-03-17 Thread peng shao
I recently found the following interesting phenomenon: I included the following lines in my muttrc mailboxes ~/.MuttMail/inbox set spoolfile=~/.MuttMail/inbox folder-hook . 'push :default' folder-hook inbox 'push :inbox' This is the only four lines in the muttrc because I want to do a clean test

Re: Need help on setting multiple accounts

2010-03-17 Thread peng shao
On Wed, Mar 17, 2010 at 12:01 PM, peng shao wrote: > Hi. I was trying to set up multiple accounts with pop3+imap combined > but with no success, so I have to seek help here. Maybe we can discuss > a simple case at first. Asssume  I have two IMAP accounts from gmail > and yahoo > T

Re: How to obtain the fullname of current mailbox or use nickname?

2010-03-17 Thread peng shao
On Wed, Mar 17, 2010 at 5:17 AM, peng shao wrote: > Hi, I read from the reference that in the status bar, the variable %f > indicating the full path of the current mailbox. > But this is not always the way it should be, if I set default mailbox > as ~/.mutt/inbox then if I enter m

Need help on setting multiple accounts

2010-03-17 Thread peng shao
mailboxes the spool is still yahoo. Basically speaking I have already built a basic two-account muttrc. I just don't how know to set the spoolfile correctly to access sent folder in both these two accounts.(to add these two folders into mailboxese variable is not desired for me ) Thank you Peng

Re: set From: based on To:

2010-03-17 Thread peng shao
should set your mta to be aware of m...@foo.bar. I have only had experience on msmtp and if m...@foobar is not an independent accout in msmtprc then msmtp will use the default account in msmtp to send the mail out. Peng

How to obtain the fullname of current mailbox or use nickname?

2010-03-17 Thread peng shao
, surprisingly %f now is imaps://url.com/inbox. But if I try to enter the second imap mailbox by c-->? then %f now is again =INBOX. Is it because I set anything wrong? Thanks Peng

Re: color about w3m viewing in mutt

2010-03-16 Thread peng shao
On Tue, Mar 16, 2010 at 10:32 AM, Gary Johnson wrote: > On 2010-03-16, peng shao wrote: >> On Tue, Mar 16, 2010 at 7:21 AM, Christian Ebert wrote: d. > > The pipe is allowed here.  If you are getting an error message from > using that rule, the problem is something other t

Re: color about w3m viewing in mutt

2010-03-16 Thread peng shao
nize pipe input as a "url" page and gives out the correct page. So I guess I need your suggestion to toggle different application to view html in attachment. I will test it later. Thanks a lot for the suggestion:) Peng

Re: color about w3m viewing in mutt

2010-03-16 Thread peng shao
On Tue, Mar 16, 2010 at 6:12 AM, peng shao wrote: > On Tue, Mar 16, 2010 at 5:44 AM, Christian Ebert wrote: much. But for me there is still some drawback, the > %{charset} is lost :( > Is there any possibility if I set autoview as off, and when I read an > email, I can press a macro

Re: color about w3m viewing in mutt

2010-03-16 Thread peng shao
On Tue, Mar 16, 2010 at 5:44 AM, Christian Ebert wrote: > * peng shao on Tuesday, March 16, 2010 at 05:00:03 -0400 > Because you w3m -dump to standard output -- or in this case to > Mutt's pager. > Okay I see, thanks. > > With lynx -dump? I doubt it. > I use text/ht

color about w3m viewing in mutt

2010-03-16 Thread peng shao
to mark url as blue even it is loaded from mutt? Thanks. Peng

Re: How to append address to a group alias?

2010-03-13 Thread peng shao
hould be using an external address book > tool like abook for more features. > > me > Okay I see. thank you for the information. Peng

How to append address to a group alias?

2010-03-11 Thread peng shao
alize such function? Thank you. Peng

Re: How to use "next-unread-mailbox" ?

2010-03-10 Thread peng shao
On Wed, Mar 10, 2010 at 9:08 AM, Patrick Shanahan wrote: > * peng shao [03-10-10 05:42]: >> Hi everybody, I am using mutt 1.5.20 under gentoo with a >> combination:mutt, getmail, procmail, msmtp, The following is part of >> my .muttrc >> >> set mbox_type=Mai

How to use "next-unread-mailbox" ?

2010-03-10 Thread peng shao
ining both NEW and OLD mails? I think if would be much better if after I type y to display all the mailboxes I can see the number of unread mails for each mailbox, just like evolution/thunderbird, so that I can clearly know which mailbox contains unread mail. Thanks a lot. Peng

Re: location of signature.

2002-09-05 Thread Bo Peng
This will be my last post about this topic. I am not gonna waste more time on this trivial issue, even if it is important to many of you. I do not know exactly how many people reply before quoted message but over 90% of my daily emails are in this style and I can see this kind of emails all over

Re: location of signature.

2002-09-05 Thread Bo Peng
I post an email, asking a simple question. What happened? I suppose that not only Will know the answer. However, I was defined as a M$ follower, a corrupted newbie. I was then directed to a manner class. After I expressed my personal preference. I get more emails, not limited to what you have

Re: location of signature.

2002-09-04 Thread Bo Peng
'set sig_on_top' is all I need. Just as Mutt user's manual says: 'It is strongly recommended that you do not set this variable unless you really know what you are doing, and are prepared to take some heat from netiquette guardians.', I was taught some lessons by the guardians. :-) Thank you. Bo

Re: location of signature.

2002-09-04 Thread Bo Peng
The discussion has gone closely to personal attack. I might have triggered some anti-M$ feelings. :-( > > I THINK it is better to put the reply BEFORE quoted text and this has > > nothing to do with M$. It is natural (to me) to put important part (my > > reply) before non-important part (quote)

Re: location of signature.

2002-09-04 Thread Bo Peng
body. This also makes an email easier to read if the quote is long. If mutt does not have this function, it is perfectly fine. But there is nothing wrong with M$ to provide it! Bo On Wed, Sep 04, 2002 at 03:14:55PM -0400, -dsr- wrote: > Bo Peng wrote: > > I am sorry but I could not

Re: location of signature.

2002-09-04 Thread Bo Peng
I am sorry but I could not find this message. Could you tell me its subject or date? Is it in mutt-user group? Thanks. Bo On Wed, Sep 04, 2002 at 08:16:12PM +0200, Heiko Heil wrote: > * Bo Peng <[EMAIL PROTECTED]> [09/04/2002 18:01]: > > Mutt automatically put the signature at

location of signature.

2002-09-04 Thread Bo Peng
Hi, Everyone, Mutt automatically put the signature at the end of the email. Can I let it be put before the quoted text? Thanks. -- Bo Peng Department of Statistics Rice University http://www.stat.rice.edu/~bpeng Office: DH2076, (713) 348-2863

Re: Emacs question

2002-08-14 Thread Bo Peng
Yes. M-x font-lock-mode solves the problem. Thank you. Bo On Tue, Aug 13, 2002 at 08:41:32PM -0700, Vineet Kumar wrote: > * Bo Peng ([EMAIL PROTECTED]) [020813 19:36]: > > I am in mal mode now. I can see --:** mutt-. (Mail Fill)--L9-All > > but no color. Do I need to add

conditional rc.

2002-08-14 Thread Bo Peng
Hi, there Can I do something like: if have_X editor = "gvim -f" else editor = "vim" end in my .muttrc file? Thanks. Bo

Re: Emacs question

2002-08-13 Thread Bo Peng
I am in mal mode now. I can see --:** mutt-. (Mail Fill)--L9-All but no color. Do I need to add something else to my .emacs? Thanks. Bo On Tue, Aug 13, 2002 at 07:09:32PM -0700, Andy Davidson wrote: > On Tue, Aug 13, 2002 at 08:38:47PM -0500, Bo Peng wrote: > > I am jus

Re: Emacs question

2002-08-13 Thread Bo Peng
I am just curious ... can I use color in the emacs mail mode? I am using vim with mutt but I am considering emacs because of some clipboard problem with vim. Thanks. On Tue, Aug 13, 2002 at 07:58:47PM -0400, Walt Mankowski wrote: > On Tue, Aug 13, 2002 at 02:31:47PM -0700, Andy Davidson wrote:

Re: from, realname, my_hdr "From:"

2002-07-15 Thread Daniel J Peng
On Sun, Jul 14, 2002 at 10:08:47PM -0500, Derrick 'dman' Hudson wrote: > On Sun, Jul 14, 2002 at 09:37:03PM -0400, Daniel J Peng wrote: > | I just installed Debian woody with Mutt 1.3.28i, and I've discovered a > | puzzling behavior that wasn't in the Mutt that came

from, realname, my_hdr "From:"

2002-07-14 Thread Daniel J Peng
I just installed Debian woody with Mutt 1.3.28i, and I've discovered a puzzling behavior that wasn't in the Mutt that came with Mandrake 8.0 nor any other Mutt I've ever used. I made a simple muttrc with just > set from="[EMAIL PROTECTED]" > set realname="

Re: search in browser

2002-04-17 Thread Bo Peng
OK. I suppose that I can not locate a folder with new email using something like /~N. > How can I search a string or go to a folder with new emails in file browser? > The / command seems to be working in a different way as that in index. > Thanks. > -- > Bo Peng > Depart

search in browser

2002-04-16 Thread Bo Peng
How can I search a string or go to a folder with new emails in file browser? The / command seems to be working in a different way as that in index. Thanks. -- Bo Peng Department of Statistics Rice University http://www.stat.rice.edu/~bpeng

Re: How to convert Outlook *.pst files to mbox format?

2002-04-10 Thread Bo Peng
pst files from Microsoft Outlook from work which I > want to convert to mbox format. Any pointers on this will be gratefully > appreciated. > -- > John P. Verel > Living Proof That Low Tech Beats High Tech! -- Bo Peng Department of Statistics Rice University http://www.stat.rice.edu/~bpeng

Re: toggle-read?

2002-04-08 Thread Bo Peng
A macro to toggle all new email as read, if anyone is interested: macro »·index»··"\Cr"»··»···"T~N\nN\Ct.\n"»·"Mark all new messages as read" The middle N part is what I was looking for. > On Mon, Apr 08, 2002 at 01:31:04PM -0500, David T-G wr

Re: toggle-read?

2002-04-08 Thread Bo Peng
t; > Subject: Re: toggle-read? > On Mon, Apr 08, 2002 at 01:31:04PM -0500, David T-G wrote: > > ...and then Bo Peng said... > > % > > % Is there a toggle-read function somewhere? Sometimes, I want to toggle emails > > % as read without really reading them. I

Re: How can I shorten the 'To' list?

2002-04-07 Thread Bo Peng
ose addresses near yours or replace the whole thing with > > NOBODY_AT_THIS_ADDRESS! or some such. > > % altogether does not sound like a good idea. > > Agreed, though you could always see it again by looking at all of the > > headers if you wanted to... > > % > > % Thanks. > > HTH & HAND Bo Peng Department of Statistics Rice University http://www.stat.rice.edu/~bpeng

Re: How can I shorten the 'To' list?

2002-04-06 Thread Bo Peng
those addresses near yours or replace the whole thing with > NOBODY_AT_THIS_ADDRESS! or some such. > % altogether does not sound like a good idea. > Agreed, though you could always see it again by looking at all of the > headers if you wanted to... > % > % Thanks. > HTH &a

How can I shorten the 'To' list?

2002-04-06 Thread Bo Peng
Hello, Is there a way to let mutt display only one or two lines of "To" field? I frequently receive emails with several pages of 'To's. Ignoring the To field altogether does not sound like a good idea. Thanks. -- Bo Peng Department of Statistics Rice University http://www.stat.rice.edu/~bpeng

Re: browser menu - add next-new command?

2002-04-02 Thread Bo Peng
> * Bo Peng <[EMAIL PROTECTED]> [2002-04-01 23:30]: > > > % Tab key is used to "go to next new message" > > > % within a mailfolder. Can it jump to new > > > % messages of another mailfolder like pine does? I > > > % am sorry if I misse

Re: Tab to new messages, of another folder?

2002-04-01 Thread Bo Peng
> Please don't simply reply to any random message and start a new thread. > Start a new thread with a fresh message instead! > I realized my mistake after I sent my email. Sorry. > % Tab key is used to "go to next new message" within a mailfolder. Can it jump > % to new messages of another mail

Tab to new messages, of another folder?

2002-04-01 Thread Bo Peng
Hello, everyone, Tab key is used to "go to next new message" within a mailfolder. Can it jump to new messages of another mailfolder like pine does? I am sorry if I missed something in the manual. Thanks. Bo Peng Department of Statistics Rice University

Quoting HTML mail in reply

2002-03-19 Thread Daniel J Peng
Is there any way to have mutt automatically quote HTML mail when I reply to it? My mailcap has text/html; lynx -dump -force_html '%s'; copiousoutput and it only makes sense for mutt to quote copiousoutput MIME types in replies... -- W: You see, me and Willetta have been going on for a few weeks

Re: Send-hook not setting from properly

2001-02-14 Thread Daniel J Peng
On Wed, Feb 14, 2001 at 06:01:37AM -0600, Aaron Schrab wrote: > At 21:04 -0500 13 Feb 2001, Daniel J Peng <[EMAIL PROTECTED]> wrote: > > > send-hook . 'set from="[EMAIL PROTECTED]"; set realname="Daniel J Peng"' > > send-hook '~C @gec

Send-hook not setting from properly

2001-02-14 Thread Daniel J Peng
To test a problem, I made a .muttrc with only these two lines from my usual configuration: send-hook . 'set from="[EMAIL PROTECTED]"; set realname="Daniel J Peng"' send-hook '~C @gecko.serc\.rmit\.edu\.au' 'set from="[EMAIL PROTECTED]" ; s

(at least) a few questions...

2000-12-02 Thread Daniel J Peng
dan/.pgpmime-notcapable" source "sed -e \"s/^\\(.*\\)$/send-hook '~t \1' 'unset pgp_create_traditional'/\" < /home/dan/.pgpmime-capable" # (The escaping of shell commands in .muttrc is miserable, btw). Is there any better solu

Re: my_hdr

2000-11-16 Thread Daniel J Peng
Any ideas how to reset >this back to default if I choose to reply to the mailing list?? How about adding: send-hook '! ~t ^some@malinglist\.net$' 'my_hdr From: bla <[EMAIL PROTECTED]>' to your .muttrc as well? -- Daniel J. Peng

Re: editing mails, then save it instead of sending

2000-10-20 Thread Daniel J Peng
ommand > to write it back to the folder. After that you can then quit the > > message without sending it. > > But the edit-message function in 1.2.5 is much nicer. Hmm... the 1.0.1 functionality seems more useful to me. Is there any way to edit and

Re: spamfilter for procmail

2000-10-19 Thread Daniel J Peng
ll > mail from my domain. Try http://www.spambouncer.org/ . I haven't actually gotten around to installing it, but I've heard it works wonders. -- Daniel J. Peng /"\ Harry Browne, Libertarian \ / ASCII Ri

Re: From: line shows recipients domain name

2000-08-28 Thread Daniel J Peng
On Mon, Aug 28, 2000 at 10:40:31PM +0530, Suresh Ramasubramanian wrote: > You seem to be posting directly from your debian box on a uunet dialup - I > suggest you check out http://www.mail-abuse.org/dul for why this is A Bad Thing > (tm). Set Exim to relay all mails through uunet's mailserver ins

PGP/MIME

2000-07-13 Thread Daniel J Peng
Are there any mail clients around other than Mutt that sign and encrypt messages the way Mutt does? Nobody I know is able to read my signed messages or verify my signatures, and the signatures seem to cause problems with some mailreaders. For instance, the message body shows up blank, and what I w