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 IMAPClient(host=host) as client:
  client.login(user, passwd)
  client.select_folder('INBOX', readonly=True) # preserve the \Recent flag.
  messages = client.search(search_criteria) # UNDELETED
  response = client.fetch(messages, ['RFC822'])
  for message_id, data in response.items():
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 on the content? Thanks.
>
> You pasted the answer:
>> Content-Type: text/plain; charset=us-ascii
> ...
>> Content-Type: text/plain; charset=utf-8

The above are just the output of mutt. My question is how mutt knows
what charset to use. By what function mutt scans the input to
determine the charset?

-- 
Regards,
Peng


Re: How to generate html mime message?

2021-02-07 Thread Peng Yu
I just want to generate the HTML mine message. The instruction
requires the set up of mutt, which I want to avoid. Is
`bin/plain2html` for generating HTML mime message from a plain text?
Can you make the plain2html module installable so that the following
command will work? Thanks.

$ bin/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 pandoc, 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,
>
> Amit
>
> Peng Yu  [2021-02-07 09:26 -0600]:
>
>>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 -f markdown -t html \ny^T^Utext/html;
>>charset=utf-8\n"
>>set wait_key=no
>>
>>Could anybody let me know how to create the mime message using mutt
>>given an html file already generated by pandoc from markdown?
>>
>>I understand "html; charset=utf-8" is to set the following Content-Type.
>>
>>Content-Type: text/html; charset=UTF-8
>>
>>But what does "y^T^U" do?
>>
>>--
>>Regards,
>>Peng
>
> --
>


-- 
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 -f markdown -t html \ny^T^Utext/html;
charset=utf-8\n"
set wait_key=no

Could anybody let me know how to create the mime message using mutt
given an html file already generated by pandoc from markdown?

I understand "html; charset=utf-8" is to set the following Content-Type.

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
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: c...@addr.com
Message-ID: <20210204162110.ga98...@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

aaa
$ cat temp.muttrc
set realname='My name'
set from=mya...@gmail.com
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


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 <<< a
Date: Thu, 4 Feb 2021 08:35:21 -0600
From: My name 
To: t...@addr.com
Message-ID: <20210204143521.ga84...@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

a
$ mutt -F temp.muttrc t...@addr.com <<< α
Date: Thu, 4 Feb 2021 08:31:35 -0600
From: My name 
To: t...@addr.com
Message-ID: <20210204143135.ga84...@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

α
$ cat temp.muttrc
set realname='My name'
set from=mya...@gmail.com
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 first MTA it hits will add one.

I want the first MTA add one, instead of using the one generated by mutt.

> Not
> setting one will also break threading. What exactly is your goal here?
> And, as others have said, is the goal for the resulting message someone
> receives to not have one (likely impossible), or just for Mutt to not
> set one?
>
> /w



--
Regards,
Peng


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 the following lines:
>
> ignore *
> unignore From Message-ID Date To Cc Bcc Subject

This does not work. Have you tried it yourself?

$ cat mycat.sh
#!/usr/bin/env bash
cat
$ cat temp.muttrc
set realname='My name'
set from=mya...@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
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 such a difference?

-- 
Regards,
Peng


Re: How not to encode the To: field?

2019-07-03 Thread Peng Yu
OK. I see the problem. Gmail encode it as =?UTF-8..., but mutt encode
it as =?utf-8...

Should it be in upper cases instead of lower cases? Is there a way to
let mutt encode using "UTF-8"? Thanks.

https://github.com/golang/go/issues/19430

On 7/3/19, Kevin J. McCarthy  wrote:
> On 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 encoded the name.  Am I
> misunderstanding your question?
>
> --
> Kevin J. McCarthy
> GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
>


-- 
Regards,
Peng


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:" 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.
>
> The rfc2047 encoding is required for non-ascii characters in certain
> parts of the message header.  There is no config variable to disable
> (only) it.
>
> That said, unsetting $charset will turn off the encoding process.
> However, it will also break many many other things in mutt.
>
> --
> Kevin J. McCarthy
> GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
>


-- 
Regards,
Peng


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



-- 
Regards,
Peng


[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_DOTLOCK  +DL_STANDALONE
>> +USE_FCNTL  -USE_FLOCK
>> -USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL
>> +HAVE_REGCOMP  -USE_GNU_REGEX
>> +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
>> +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
>> +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
>> +ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS
>> +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR
>> +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO
>
>> ~$ mutt
>> Error in /Users/py/.muttrc, line 10: trash: unknown variable
>> Error in /Users/py/.muttrc, line 11: any_label: unknown variable
>> Error in /Users/py/.muttrc, line 14: header_cache: unknown variable
>> Error in /Users/py/.muttrc, line 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
>
> You need to compile hcache support (+USE_HCACHE), smtp support (+USE_SMTP), 
> and
> probably many others. This is my mutt from debian unstable:

I have now the following installed.

  mutt-devel @1.5.23_1+compress+gdbm+imap+smtp+ssl+trash+xlabel (active)

But I still see the following errors.

~$ mutt
Error in /Users/py/.muttrc, line 11: any_label: unknown variable
Error in /Users/py/.muttrc, line 14: header_cache: unknown variable
Error in /Users/py/.muttrc, line 26:
source: errors in /Users/py/.muttrc

mutt-devel has the variants. What else do I need to enable? Thanks.

   compress: Compressed folders
   date_conditional: Allow the format of dates in the index to vary
based on how recent the message is
 * requires deepif
   db4: Use Berkeley DB database
 * conflicts with gdbm qdbm tokyocabinet
   debug: Debugging support
   deepif: Allow nested if-else sequences in strings
   gdbm: Use GNU dbm database
 * conflicts with db4 qdbm tokyocabinet
   gnuregex: Use the GNU regular expression library
   gpgme: Enable GPGME crypto support
   headercache: Enable header caching (requires gdbm, qdbm, or tokyocabinet)
 * conflicts with db4
   idn: Internationalized Domain Name support
[+]imap: IMAP support
   nntp: NNTP support
 * conflicts with sidebar
[+]pop: POP support
   qdbm: Use QDBM database
 * conflicts with db4 gdbm tokyocabinet
   sasl: Simple Authentication and Security Layer support
   sidebar: Add a sidebar with a list of folders
 * conflicts with nntp
   smtp: Include internal SMTP relay support
   ssl: Secure Sockets Layer support
   tokyocabinet: Use Tokyo Cabinet database
 * conflicts with db4 gdbm qdbm
   trash: Add a Trash folder
   universal: Build for multiple architectures
   xlabel: Custom message-tagging - X-Label:


> Compile options:
> -DOMAIN
> +DEBUG
> -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  +USE_FCNTL  -USE_FLOCK
> +USE_POP  +USE_IMAP  +USE_SMTP
> -USE_SSL_OPENSSL  +USE_SSL_GNUTLS  +USE_SASL  +USE_GSS  +HAVE_GETADDRINFO
> +HAVE_REGCOMP  -USE_GNU_REGEX
> +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
> +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
> +CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  +CRYPT_BACKEND_GPGME
> -EXACT_ADDRESS  -SUN_ATTACHMENT
> +ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS  
> +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR
> +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE
> -ISPELL
> SENDMAIL="/usr/sbin/sendmail"
> MAILPATH="/var/mail"
> PKGDATADIR="/usr/share/mutt"
> SYSCONFDIR="/etc"
> EXECSHELL="/bin/sh"
> MIXMASTER="mixmaster"
>
> --
> Eduardo Bustamante | https://dualbus.me/



-- 
Regards,
Peng


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 need to compile mutt on my
own?

~$ mutt -v
Mutt 1.4.2.3i (2007-05-26)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Darwin 13.4.0 (x86_64) [using ncurses 5.9]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE
+USE_FCNTL  -USE_FLOCK
-USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL
+HAVE_REGCOMP  -USE_GNU_REGEX
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT
+ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS
+HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO
ISPELL="/opt/local/bin/ispell"
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/opt/local/share/mutt"
SYSCONFDIR="/opt/local/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to .
To report a bug, please use the flea(1) utility.

patch-1.4.2.3.rr.compressed.1

~$ mutt
Error in /Users/py/.muttrc, line 10: trash: unknown variable
Error in /Users/py/.muttrc, line 11: any_label: unknown variable
Error in /Users/py/.muttrc, line 14: header_cache: unknown variable
Error in /Users/py/.muttrc, line 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.edu
>>
>> and especially m...@a.edu is on my department's RHEL server. I have set
>> up a ~/.forward file on A's server and let it to forward all emails to
>> address B, then I use mutt to manipulate all mails from B directly.
>> However if I try to send a test email to A from my gmail, then I can
>> correctly receive the mail in B by using mutt+getmail. But if I simply
>> reply that email in mutt, the receiver of the reply is not
>> m...@gmail.com, but the forwarding address 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.
>
> Do you happen to have "m...@gmail.com" listed in your "alternates"?  There is
> an open bug on trac regarding this issue.  There is a difference of opinion
> on what the correct thing to do in this situation.

That is exactly the cause to  my problem. Thanks a lot for the information.
>
> me
>


reply a forwarded mail to correct sender?

2011-01-25 Thread peng shao
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.edu

and especially m...@a.edu is on my department's RHEL server. I have set
up a ~/.forward file on A's server and let it to forward all emails to
address B, then I use mutt to manipulate all mails from B directly.
However if I try to send a test email to A from my gmail, then I can
correctly receive the mail in B by using mutt+getmail. But if I simply
reply that email in mutt, the receiver of the reply is not
m...@gmail.com, but the forwarding address 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
On 21:18 Sat 20 Mar , Paul Tansom wrote:
> ** Brendan Cully  [2010-03-20 20:53]:
> 
> Brilliant, thanks, that's exactly what I was looking for. It's my own fault 
> for
> having so many mail accounts that it now takes a while to connect to them 
> all!!
>

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
Hi. I set up mutt with several local mailboxes and a gmail IMAP. By
now it works well except that the  function. If I
have new email in my local mailboxes fetched by getmail, then the
 can take me to it correctly. However if there is
one new email in the gmail IMAP, then the  simply
tells me "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
On 08:47 Thu 18 Mar , Gary Johnson wrote:
> 
> It's the way it's supposed to work, but it is confusing.
> 
> Folder hooks are processed as the manual says.  However, the push
> command pushes its arguments onto a stack and mutt's input parser
> later pops those arguments off the stack to parse and execute them.
> It's that pushing and popping that reverses the order of your pushed
> commands.  The solution is to enter those folder hooks that contain
> pushes into your muttrc "upside down", like this:
> 
> folder-hook inbox 'push :inbox'
> folder-hook . 'push :default'
> 
> It would be nice to be able to put commands into a queue rather than
> onto a stack.  I don't know why it is the way it is.
> 
> Regards,
> Gary
That makes a lot of sense. Thank you 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. If the folder-hook is used to set variables then I was told by
the manual
http://www.mutt.org/doc/manual/manual-4.html
that I should place the default hook EARLIER than the specific hook,
as I did in the test.

However, the result is is I enter mutt then I have

:inbox:default

at the bottom command area. It contradicts with my understanding to
the folder-hook because the order is reversed compared to the manual.

Is this a bug, or supposed way?

Thanks


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
> Then I may write the first few lines in my muttrc like:
>
> mailboxes imaps://imap.gmail.com/INBOX
> mailboxes imaps://imap.yahoo.com/INBOX
> account-hook . 'unset imap_pass imap_user '
> account-hook imaps://imap.gmail.com/ 'set imap_user="my_gmail_name"
> imap_pass="abc" '
> account-hook imaps://imap.yahoo.com/ 'set imap_user="my_yahoo_name"
> imap_pass="abc" '
>
> then I am stuck because I don't know where I should put the spoolfile
> variable. The reason why I care this variable very much is because I
> want by pressing c-->tab to be able to view all folders under the
> spool such as the sent/drafts .. I tried put it in both account-hook
> or folder-hook and to load mutt by mutt -y but this had no effect. If
> I simply put
>
> set spoolfile=imaps://imap.gmail.com/
> set spoolfile=imaps://imap.yahoo.com/
>
> in muttrc, I then use yahoo as the default spool. I can enter the sent
> folder of yahoo, but if I enter google 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
>

After many tests, I finally realize this is actually a problem of
"current directory" rather than the folder variable, It looks like
after I change folder the "current directory" does NOT change. I guess
this is the supposed way. So I added the following line

folder-hook 'imaps://imap.gmail.com' "push
?imaps://imap.gmail.com"

into muttrc. And it works. Correspondingly I have to set the current
directory for every mailboxes I defined.

Thanks

Peng


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 mutt from the
> terminal, the %f is always =inbox. For local mailboxes it is not a big
> problem I can use different mailbox names.
> But this issue becomes quite annoying when I was trying to set up
> several imap accounts. T
> he mailboxes of these imap are something like
> imaps://url.com/inbox
> imaps://url1.com/inbox
> imaps://url2.com/inbox
>
> If I enter mutt for the first time, 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
>

This is due to carelessness that I forgot to unset folder before I
define status_format. Sorry for spam.

Peng


Need help on setting multiple accounts

2010-03-17 Thread peng shao
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
Then I may write the first few lines in my muttrc like:

mailboxes imaps://imap.gmail.com/INBOX
mailboxes imaps://imap.yahoo.com/INBOX
account-hook . 'unset imap_pass imap_user '
account-hook imaps://imap.gmail.com/ 'set imap_user="my_gmail_name"
imap_pass="abc" '
account-hook imaps://imap.yahoo.com/ 'set imap_user="my_yahoo_name"
imap_pass="abc" '

then I am stuck because I don't know where I should put the spoolfile
variable. The reason why I care this variable very much is because I
want by pressing c-->tab to be able to view all folders under the
spool such as the sent/drafts .. I tried put it in both account-hook
or folder-hook and to load mutt by mutt -y but this had no effect. If
I simply put

set spoolfile=imaps://imap.gmail.com/
set spoolfile=imaps://imap.yahoo.com/

in muttrc, I then use yahoo as the default spool. I can enter the sent
folder of yahoo, but if I enter google 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
On Wed, Mar 17, 2010 at 4:52 AM, steve  wrote:
> Hi mutt-users,
>
> I have several addresses and when someone I don't know sends me an email,
> this one goes in my inbox (procmail default). Now if I hit 'r', the From
> header will be automaticaly set to my default email, which is sometimes
> not the preferred behaviour, I would like to use the email address the
> sender used. For example:
>
> I receive an email with:
>
> From: a...@example.com
> To: m...@foo.bar
>
> (I don't have any special settings for a...@example.com)
>
> I hit 'r' and I get:
>
> From: defa...@email.bar
> To: a...@example.com
>
>
> but I would like to have:
>
> From: m...@foo.bar
> To: a...@example.com
>
>
> How can I do this? Should I use a reply-hook? reverse_name? I'm a bit
> confused here.
>
> Many thanks in advance for your help.
>
> steve
>

Hi, I am not sure if I am correct but if you just simply want
From: m...@foo.bar
To: a...@example.com

Then simple

set envelope_from ="yes"
set reverse_name=yes
alternates "m...@foo.bar|defa...@email.bar"

should be enough. But usually this is not the good way because you
surely don't want your realname, signature to be identical to default
in general. So I would suggest you to use reply-hook. Notice don't
forget to set default reply-hook at first.

One thing more about the alternates: you 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
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 mutt from the
terminal, the %f is always =inbox. For local mailboxes it is not a big
problem I can use different mailbox names.
But this issue becomes quite annoying when I was trying to set up
several imap accounts. T
he mailboxes of these imap are something like
imaps://url.com/inbox
imaps://url1.com/inbox
imaps://url2.com/inbox

If I enter mutt for the first time, 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 than the pipe.  The
> problem could be the semicolon after copiousoutput--you don't need a
> semicolon at the end of the line, only between terms, but I haven't
> checked whether having one at the end of the line is an error.
>

I think I just missed needsterminal; here to make sure the pipe works well.
>
> You sometimes need to tell w3m that the input is HTML by using the
> "-T text/html" option.

Wooo. Thanks for this.

I just realized another issue about lynx/elinks---> if they add a
[number] before urls in a html email view, then reply to the sender
will bring those [numbers] into the quotes, which is not desired :( On
the other hand w3m doesn't have this issue. Really frustrating.

Thank you.
>
> Regards,
> Gary
>
>


Re: color about w3m viewing in mutt

2010-03-16 Thread peng shao
On Tue, Mar 16, 2010 at 7:21 AM, Christian Ebert  wrote:
>
>
>
> Mmh, you could create an addional mailcap file and toggle the
> $mailcap_path variable. Try the following (untested):
>
> set my_lynx_cap="/path/to/lynxmailcap"
>
> macro pager K1 "\
>  set my_mailcap_path=\$mailcap_path 
> mailcap_path=$my_lynx_cap\
> \
>  set mailcap_path=\$my_mailcap_path &my_mailcap_path" \
> "autoview html with lynx"
>
> c
Thanks a lot for such detailed and patient instructions. I just tested
again the pipe method I sent to the maillist and I apologized I was
totally out of track. Actually the following should be the correct

text/html; cat %s | iconv -f %{charset} -t utf-8  | elinks ; copiousoutput;

But this has a drawback---> If I press v to view the attachments and
choose to view the text/html attachment then there will be a
mistake--> I guess here the pipe is not allowed.  But it is not a big
problem because I guess very few people need to view html message in
this way. Also I didn't use lynx because for I don't why but among all
text-based web-brower I tested, elinks is the only one can recognize
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 to activate autoview with a specific mime
> in my mailcap. For example, when I saw an email which contains lots of
> url and is in English, then I press a key K1 so the autoview of lynx
> pops up, if it is in Chinese then I can use w3m autoview by key K2
>
>
> Thanks a lot
>
> Peng

I just found a maybe-stupid way to do this trick, I use a program
called elinks, along with iconv
in my mailcap I set
text/html; elinks -dump %s|iconv -f %{charset} -t utf-8 %s| elinks
%s;copiousoutput;

I use elinks because it looks to have better rendering effect. Thank
you for reminding me to use pipe--->this works for me but I am not
sure I was correct, I just did some try and found occasionally it
worked for me. Please correct me if I made any mistake. Thanks.

Peng


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/html; lynx -dump -force_html -assume-charset=%{charset}  %s;
needsterminal; copiousoutput;
in the mailcap and set autoview. Yes here I can see the [1] [2] [3]
 next to the hyperlink. But one reason I cannot use lynx is
because I read lots of Chines emails everyday and the lynx seems to
support chinese charset very poorly :(


>
> text/html; w3m -F -T text/html %s; nametemplate=%s.html; needsterminal
>
> and do  (bound to "v" by default), and then,
> after selecting the html attachment  (bound to "m"
> by default).
I like this very 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 to activate autoview with a specific mime
in my mailcap. For example, when I saw an email which contains lots of
url and is in English, then I press a key K1 so the autoview of lynx
pops up, if it is in Chinese then I can use w3m autoview by key K2


Thanks a lot

Peng

>
> c
> --
> theatre - books - texts - movies
> Black Trash Productions at home: <http://www.blacktrash.org/>
> Black Trash Productions on Facebook:
> <http://www.facebook.com/pages/Black-Trash-Productions/277569157339>
>


color about w3m viewing in mutt

2010-03-16 Thread peng shao
Hi. I use w3m as an external program to view html mails in mutt. I
have the following in my mailcap

text/html; w3m -T text/html -I %{charset} -dump %s;
nametemplate=%s.html; copiousoutput

This works very well for me because w3m can handle the charset problem
very well. However, there is another problem---> if I use w3m to view
a website directly from terminal, then the w3m will mark any contents
which contain a url link as blue. This is very convenient. But if I
load w3m inside mutt, then w3m doesn't mark the url link as blue.
Sometimes I just missed the url in the mails my friend sent to me. I
can use urlview but sometimes the mail itself contains lots of useless
url. For lynx it simple mark a [number] next to the url so I can clear
see there is a url there. The only problem about lynx is it cannot
handle Chinese very well so I cannot use it :( Is there anyway to make
w3m 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
> Currently Mutt doesn't have any way to accomplish creating a group alias
> in this manner.
>
> I think the easiest implementation would be to make the alias creation
> honor the tag-prefix such that the user can tag several emails.
>
> For the most part, the user should 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
Hi, I did some search on google but didn't find any native solution
for mutt. If I press a in the index then mutt will ask me if I would
like to append this address to alias. Sometimes I want to define a
group alias which contains several contacts. I wish there would be
such a function: when I press a, mutt as usual asks me to append it to
alias, and if here I input an existing alias then mutt would
automatically append this address to that alias, to make that alias a
group. I tried but found without any further configuration mutt
doesn't support this by default. How should I realize 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=Maildir
>> set folder=$HOME/MuttMail

>
> in you ~/.muttrc add
> unset mark_old
>
> Now you will only have "N", new/unread messages.
> --
> Patrick Shanahan         Plainfield, Indiana, USA        HOG # US1244711
> http://wahoo.no-ip.org     Photo Album:  http://wahoo.no-ip.org/gallery2
> Registered Linux User #207535                    @ http://counter.li.org
>
It is helpful. Thank you.

Peng


How to use "next-unread-mailbox" ?

2010-03-10 Thread peng shao
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=Maildir
set folder=$HOME/MuttMail
set spoolfile=+inbox
set postponed=+postponed
set record=+sent
save-hook .* =saved
mailboxes !
mailboxes =inbox
mailboxes =friends
macro index c "?"

Question

I found next-unread-mailbox can jump to mailboxes containing NEW
mails. This is really annoying because usually I have some mailboxes
containing OLD mails only. Is it possible to set up a key so that I
could jump to the next mailboxes containing 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 the Internet. Maybe they are all bad-mannered people,
maybe they are all corrupted by M$, I feel quite comfortable with this
style and will continue to use it. 
 
In this discussion, many replies are polite and informative but others
are cynical and rude, even they are written in 'good style'. I can sit
down and argue with you about compared to web, ftp, mp3, rm, how much
bandwidth is used for emails but I decide to quit this discussion just
because many of you are too righteous to hear about it.

Have a very good day.
Bo




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 seen in this mailing list. More emails, to save
precious bandwidth, I suppose, were sent directly to me. 

Are there good manners?

Bo



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)

> I understand your line of reasoning, but I think most people (if they haven't
> been corrupted by years of the other way) prefer a temporal ordering, i.e. old
> stuff at top, new stuff at bottom.

There is nothing wrong with either order. Nobody is 'corrupted' by
anything. Software as good as mutt should be neutral between these
preferences, i.e. provides support for both styles.

> > This also makes an email easier to read if the quote is long.

> The quote should not be long, and the biggest reason why so many UNIX types
> hate M$ for promulgating the bottom quote style is that it encourages people to
> attach entire threads at the bottom of each message, guaranteeing that noone
> will ever read them.

I do not see anything wrong with quoting the whole message. It is a good
reference if the reader need to read it or it can be ignored easily. I
do not think bandwidth is an issue too. The picture I sent yesterday
would have cost the bandwidth of 1000 emails' quoted text. 

I will write a vim function to insert my signature.
Bo



Re: location of signature.

2002-09-04 Thread Bo Peng


OK. I found the messages and I am not glad about those so-called rules.
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) and keep my signature closer to
the main 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 find this message. Could you tell me its
> > subject or date? Is it in mutt-user group?
> > 
> > > This discussion (Message-ID 8gcg1a$qte$[EMAIL PROTECTED]) may
> > > be helpful for you.

> It's a message ID. Go search Google Groups for it; you'll get a 12
> message thread.

> -dsr-





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 the end of the email. Can I let
> > it be put before the quoted text? 

> This discussion (Message-ID 8gcg1a$qte$[EMAIL PROTECTED]) may
> be helpful for you.




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 something else to my .emacs?
> 
> Have you turned on font-lock-mode?
> 
> good times,
> Vineet
> -- 
> http://www.doorstop.net/
> -- 
> http://www.aclu.org/  It's all about Freedom.




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 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.
> 
> The mail-mode uses color --- Subject: is in red, the subject itself in
> green, etc. --- though I don't know where the colors are defined.
> 
> andy



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:
> > Yes, this is an Emacs question, but it is mutt related, so I thought I
> > would ask it here. I found this at varous mutt places on the web and
> > recently added the following to my .emacs profile and it sort-of works:
> > 
> > (setq auto-mode-alist (append (list (cons "^\/tmp\/mutt" 'mail-mode))
> >   auto-mode-alist))
> > (add-hook 'mail-mode-hook 'my-mail-mode-hook)
> > (defun my-mail-mode-hook ()
> >   (auto-fill-mode)
> > )
> > 
> > The problem is that the mail-mode occurs, but the auto-fill-mode does
> > not. I am firmly convinced that it did work once. And only once.
> > 
> > Anybody got a spare clue for me?
> 
> That's pretty much what I have, and it works for me.  The only thing I
> can think of is that (auto-fill-mode) doesn't *turn on* auto fill
> mode, it *toggles* auto fill mode.  Maybe you have code elsewhere in
> your .emacs file that's turning it on, so then this line is turning it
> back off.
> 
> To always turn it on, try this instead:
> 
>   (auto-fill-mode 1)
> 
> Good luck!
> 



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 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="Daniel J. Peng"
> | 
> | Now I expected that when I started writing an email in Mutt, Mutt
> | would construct a default From header consisting of my email and
> | realname, but instead the From header is completely blank.
> 
> What happens if you add
> set use_from
> to it?

Hrm.. That works.  Thanks!!  When was this option added?  I haven't
seen it in the ChangeLog..

> | If I type ":set from" or ":set realname", my email and realname do
> | appear properly.
> 
> That's odd.

Well, what I meant is that my email and realname appear in the status
line as 
> from="[EMAIL PROTECTED]"
and
> realname="Daniel J. Peng"


-- 
I do not find in orthodox Christianity one redeeming feature.
-- Thomas Jefferson

Linux peng 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 unknown
 08:17:58 up 1 day,  4:03,  3 users,  load average: 0.06, 0.04, 0.01



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="Daniel J. Peng"

Now I expected that when I started writing an email in Mutt, Mutt
would construct a default From header consisting of my email and
realname, but instead the From header is completely blank.
If I type ":set from" or ":set realname", my email and realname do
appear properly.

Has anybody else seen this behavior?  Is this a new "feature" of Mutt
1.3.28i?  Or is this some pecularity of Debian's package?

mutt -v reports:
> Mutt 1.3.28i (2002-03-13)
> Copyright (C) 1996-2001 Michael R. Elkins and others.
> Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
> Mutt is free software, and you are welcome to redistribute it
> under certain conditions; type `mutt -vv' for details.
> 
> System: Linux 2.4.18-686 (i686) [using ncurses 5.2]
> Compile options:
> -DOMAIN
> -DEBUG
> -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
> +USE_FCNTL  -USE_FLOCK
> +USE_POP  +USE_IMAP  -USE_GSS  -USE_SSL  +USE_GNUTLS  +USE_SASL  
> +HAVE_REGCOMP  -USE_GNU_REGEX  
> +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
> +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
> +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
> +ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS
> +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR  
> +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO  
> ISPELL="/usr/bin/ispell"
> SENDMAIL="/usr/sbin/sendmail"
> MAILPATH="/var/mail"
> PKGDATADIR="/usr/share/mutt"
> SYSCONFDIR="/etc"
> EXECSHELL="/bin/sh"
> MIXMASTER="mixmaster"
> To contact the developers, please mail to <[EMAIL PROTECTED]>.
> To report a bug, please use the flea(1) utility.
> 
> patch-1.5.tlr.mx_open_append.2
> patch-1.3.28.cvs.indexsegfault
> patch-1.3.27.bse.xtitles.1
> patch-1.3.26.appoct.3
> patch-1.3.15.sw.pgp-outlook.1
> patch-1.3.27.admcd.gnutls.19
> Md.use_editor
> Md.paths_mutt.man
> Md.muttbug_no_list
> Md.use_etc_mailname
> Md.muttbug_warning
> Md.gpg_status_fd
> patch-1.3.24.rr.compressed.1
> patch-1.3.25.cd.edit_threads.9.1
> patch-1.3.23.1.ametzler.pgp_good_sign

-- 
There ain't nothin' in this world that's worth being a snot over.
 -- Larry Wall in <[EMAIL PROTECTED]>

Linux peng 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 unknown
 21:22:44 up 17:07,  3 users,  load average: 0.02, 0.08, 0.07



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
> Department of Statistics
> Rice University
> http://www.stat.rice.edu/~bpeng

-- 
Bo Peng
Department of Statistics
Rice University
http://www.stat.rice.edu/~bpeng



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

Outlook can save emails to IMAP server. What I did was create an IMAP account
under outlook, select all, copy to a folder under IMAP. I do not know if
procmail will be activated if you copy them to your IMAP/inbox.

On Tue, Apr 09, 2002 at 09:41:25PM -0400, John P Verel wrote:
> Date: Tue, 9 Apr 2002 21:41:25 -0400
> From: John P Verel <[EMAIL PROTECTED]>
> To: "Mutt Users' List" <[EMAIL PROTECTED]>
> Subject: How to convert Outlook *.pst files to mbox format?

> This may be an FAQ, but I couldn't come up with it.

> I have substantial *.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 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 am using setflag O (old) but this is
> > % not exactly what I want.
> > 
> > You can write ('w') or clear ('W') any flag you want.  In addition, you
> > can toggle the new flag with 'N'.  See 2.3.1.1 in the manual and your
> > index help screen for more info.

> hmmm... on my mutt (1.3.28i) I don't see that.  What I use is "N" -
> toggle-new.

> :)




Re: toggle-read?

2002-04-08 Thread Bo Peng


Thank you. Toggle-new, when applied to new email, is exactly toggle-read!

Bo

On Mon, Apr 08, 2002 at 02:39:31PM -0400, Dan Boger wrote:
> Date: Mon, 8 Apr 2002 14:39:31 -0400
> From: Dan Boger <[EMAIL PROTECTED]>
> To: "Mutt Users' List" <[EMAIL PROTECTED]>
> 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 am using setflag O (old) but this is
> > % not exactly what I want.
> > 
> > You can write ('w') or clear ('W') any flag you want.  In addition, you
> > can toggle the new flag with 'N'.  See 2.3.1.1 in the manual and your
> > index help screen for more info.

> hmmm... on my mutt (1.3.28i) I don't see that.  What I use is "N" -
> toggle-new.

> :)

> -- 
> Dan Boger
> Linux MVP
> brainbench.com




-- 
Bo Peng
Department of Statistics
Rice University
http://www.stat.rice.edu/~bpeng



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

2002-04-07 Thread Bo Peng


Thanks to Gary Johnson ([EMAIL PROTECTED]), my problem is solved
perfectly with his mail-to-filter2 perl code.

1. Add 
set display_filter=mail-to-filter
  to .muttrc

2. Save 
http://www.spocom.com/users/gjohnson/mutt/mail-to-filter2
  as mail-to-filter. (Do not forget to chmod +x )

Done. Long cc/to list are replaced by
  [ lines deleted]
and I can always see the original header with h command.

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

> > Hmmm...  You might set up a display filter that prints only the first
> >  characters of a ^To:_ match for whatever N you like.  Better yet,
> > teach it about your $alternates (heh from another thread!) and then have
> > it show only 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 & 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


I am reading http://www.spocom.com/users/gjohnson/mutt/mail-to-filter which
is dedicated to this problem. It is hard to ask some "new" problem. :-)

Bo

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

> Hmmm...  You might set up a display filter that prints only the first
>  characters of a ^To:_ match for whatever N you like.  Better yet,
> teach it about your $alternates (heh from another thread!) and then have
> it show only 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 & HAND


> % 
> % -- 
> % Bo Peng
> % Department of Statistics
> % Rice University
> % http://www.stat.rice.edu/~bpeng


> :-D
> -- 
> David T-G  * It's easier to fight for one's principles
> (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
> (work) [EMAIL PROTECTED]
> http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!







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 missed something in the manual.
> > >
> > > mutt won't go to next-new in another folder, but
> > > once you tell it (through the mailboxes command)
> > > what folders to watch, you can go to the next
> > > folder with new messages when you're in the
> > > browser.
> >
> > I set my "incoming folders" and everything is fine.
> > I just think Pine/TAB is a better way to read new
> > mails.  I will try to write a macro but I am
> > afraid that I will be reinventing the wheel.

> this is definitely becoming a faq now...

> so how about adding a "next-new" command
> to the "browser menu" *before* 1.4 ships?

> Sven

Yeah! I read the manual again and I think a dedicated macro, if possible, is
too complicated for this purpose. Modifying the source is easier. I would
definitely suggest this feature for version 1.4.

-- 
Bo Peng
Department of Statistics
Rice University
http://www.stat.rice.edu/~bpeng



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 mailfolder like pine does? I am sorry if I missed 
> % something in the manual.
> 
> mutt won't go to next-new in another folder, but once you tell it
> (through the mailboxes command) what folders to watch, you can go to the
> next folder with new messages when you're in the browser.
> 

I set my "incoming folders" and everything is fine. I just think Pine/TAB is
a better way to read new mails. I will try to write a macro but I am afraid
that I will be reinventing the wheel.

Bo

> 
> -- 
> David T-G  * It's easier to fight for one's principles
> (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
> (work) [EMAIL PROTECTED]
> http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
> 



-- 



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 now.
Phil: Only a few weeks, and she's living in your room?
DJP: Will! What's that thing you said earlier about taking things slow!
M&W rolling on the ground laughing.



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 @gecko.serc\.rmit\.edu\.au' 'set from="[EMAIL PROTECTED]" ; set 
>realname="Razl"'
> 
> > Is this a bug? Or am I just missing something about send-hooks?
> 
> At the time that send-hooks are evaluated, Mutt has already generated
> the From: header that it plans to use. 

Is this by design?  This seems like extraordinarily
counterintuitive behavior.

Also, why should Mutt not set 'realname' and 'from' at the same time?

> If you want to select a From: header from send-hooks you need to use
> 'my_hdr From:'.

Will envelope_from set the envelope if I do this?


-- 
Daniel J. Peng
/"\
\ / ASCII Ribbon Campaign
Who is John Galt?X  Against Outlook & HTML Mail
/ \ http://www.thebackrow.net/

Space is big.  You just won't believe how vastly, hugely, mind-bogglingly
big it is.  I mean, you may think it's a long way down the road to the
drug store, but that's just peanuts to space.
-- The Hitchhiker's Guide to the Galaxy



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]" ; set 
realname="Razl"'

This should, when I reply to mail form a mailing list at
gecko.serc.rmit.edu.au , set the From: header to
Razl <[EMAIL PROTECTED]>, right?

When I reply to the attached message, though, Mutt sets the From: header
to Razl <[EMAIL PROTECTED]>.

The odd thing is, if I cancel that message and try it again, Mutt works
as I want it to and sets the From: header to
Razl <[EMAIL PROTECTED]> .

Is this a bug? Or am I just missing something about send-hooks?

-- 
Daniel J. Peng
/"\
\ / ASCII Ribbon Campaign
Who is John Galt?X  Against Outlook & HTML Mail
/ \ http://www.thebackrow.net/

A-Z affectionately,
1 to 10 alphabetically,
from here to eternity without in betweens,
still looking for a custom fit in an off-the-rack world,
sales talk from sales assistants
when all i want to do is lower your resistance,
no rhythm in cymbals no tempo in drums,
love's on arrival,
she comes when she comes,
right on the target but wide of the mark...


send-hook . 'set from="[EMAIL PROTECTED]"; set realname="Daniel J Peng"'
send-hook '~C @gecko.serc\.rmit\.edu\.au' 'set from="[EMAIL PROTECTED]" ; set 
realname="Razl"'




> If this is truly the case, then I question whether this CFJ should not
> be dismissed on the grounds that "[i]ts Statement does not relate to a
> matter relevant to the Rules," Rule 1565.

 But it IS relevant, insomuch as this CFJ might define a particular limit
to what Rules can do.  Even if this would have no immediate effect (it's
not much use to CFJ  to control what  cannot control) it
could set a precedent that would help guide future proposals with respect
to Player actions.

 -Goethe.






(at least) a few questions...

2000-12-02 Thread Daniel J Peng

Why doesn't mutt use summary files like Netscape to reduce mbox load
time?

Is there a command to advance to the next unread message in any mailbox
specified by the 'mailboxes' setting?

When I send mail fcc-ed to one of the mailboxes in 'mailboxes', mutt
reports new mail in that mailbox.  Is there any way to avoid this?

When I type ":set pgp_verify_sig no", mutt 1.2.4i says, "unknown
variable", though this variable is listed in my manual.txt.  mutt -v
reports
> Mutt 1.2.4i (2000-07-07)
> Copyright (C) 1996-2000 Michael R. Elkins and others.
> Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
> Mutt is free software, and you are welcome to redistribute it
> under certain conditions; type `mutt -vv' for details.
>
> System: Linux 2.2.5-15 [using slang 10202]
> Compile options:
> -DOMAIN
> -DEBUG
> -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +USE_FCNTL  -USE_FLOCK
> -USE_IMAP  -USE_GSS  -USE_SSL  -USE_POP  +HAVE_REGCOMP  -USE_GNU_REGEX
> +HAVE_COLOR  +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -ENABLE_NLS
> SENDMAIL="/usr/sbin/sendmail"
> MAILPATH="/var/spool/mail"
> SHAREDIR="/usr/local/share/mutt"
> SYSCONFDIR="/usr/local/etc"
> ISPELL="/usr/bin/ispell"

With PGP/MIME, is there any easy solution that allows people with
PGP/MIME-capable mail clients to receive PGP/MIME and everybody else to
receive traditional PGP messages?  I'm thinking a procmail recipe that
looks at incoming email and puts the sender's email address in
/home/dan/.pgpmime-capable or /home/dan/.pgpmime-notcapable.
If the email is PGP/MIME, the sender goes in .pgpmime-capable.
If the email is PGP traditional, the sender goes in 
.pgpmime-notcapable .
If the User-Agent or X-Mailer or From is one of those that deal
really really horribly with PGP/MIME (Outlook (Express?),
Hotmail, et al.), the sender goes in pgpmime-notcapable .
Then, in .muttrc...
sendhook . 'unset pgp_create_traditional'
# If we don't know, send them PGP/MIME to encourage them to
# use PGP/MIME.
source "sed -e \"s/^\\(.*\\)$/send-hook '~t \1' 'set
pgp_create_traditional'/\" < /home/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 solution?  Are there any other clients that deal
horribly with PGP/MIME?

BTW, how do you verify PGP/MIME signatures with PGP 6 for Windows?

-- 
Daniel J. Peng
/"\
\ / ASCII Ribbon Campaign
Who is John Galt?X  Against Outlook & HTML Mail
/ \ http://www.thebackrow.net/

Q:  How many surrealists does it take to change a light bulb?
A:  Two, one to hold the giraffe, and the other to fill the bathtub
with brightly colored machine tools.

[Surrealist jokes just aren't my cup of fur.  Ed.]



Re: my_hdr

2000-11-16 Thread Daniel J Peng

On Thu, Nov 16, 2000 at 10:47:16PM -0500, Ethan Pierce wrote:
> Hi, following the suggestion of reading the manual a bit more :) I found out how to 
>set my header for a reply to a mailing list.  I use the following command:
> 
> send-hook '~t ^some@malinglist\.net$' 'my_hdr From: name <[EMAIL PROTECTED]>'
> 
> after I reply to one of these mailing lists all my future emails have the latter 
>my_hdr From: information and not the default.  If I dont reply to any mailing list 
>messages on a fresh launch of mutt my_hdr From: is correct.  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
/"\
Harry Browne, Libertarian   \ / ASCII Ribbon Campaign
for President!   X  Against Outlook & HTML Mail
http://www.harrybrowne.org/ / \ http://www.thebackrow.net/

I came home the other night and tried to open the door with my car keys...and 
the building started up.  So I took it out for a drive.  A cop pulled me over 
for speeding.  He asked me where I live... "Right here".
-- Steven Wright



Re: editing mails, then save it instead of sending

2000-10-20 Thread Daniel J Peng

On Fri, Oct 20, 2000 at 04:25:32PM +0300, Mikko Hänninen wrote:
> Yes, upgrade to 1.2.5, which has a nice "edit-message" function.
> 
> Actually, the same functionality is in 1.0.1 too, when you select
> a message for "edit and resend", you can use the w(rite) command
> 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 resend a message in 1.2.5?

-- 
Daniel J. Peng
/"\
Harry Browne, Libertarian   \ / ASCII Ribbon Campaign
for President!   X  Against Outlook & HTML Mail
http://www.harrybrowne.org/ / \ http://www.thebackrow.net/

Thompson, if he is to be believed, has sampled the entire rainbow of
legal and illegal drugs in heroic efforts to feel better than he does.
As for the truth about his health: I have asked around about it.  I
am told that he appears to be strong and rosy, and steadily sane.  But we
will be doing what he wants us to do, I think, if we consider his exterior
a sort of Dorian Gray facade.  Inwardly, he is being eaten alive by tinhorn
politicians.
The disease is fatal.  There is no known cure.  The most we can do
for the poor devil, it seems to me, is to name his disease in his honor.
>From this moment on, let all those who feel that Americans can be as easily
led to beauty as to ugliness, to truth as to public relations, to joy as to
bitterness, be said to be suffering from Hunter Thompson's disease.  I don't
have it this morning.  It comes and goes.  This morning I don't have Hunter
Thompson's disease.
-- Kurt Vonnegut Jr., on Dr. Hunter S. Thompson: Excerpt
from "A Political Disease", Vonnegut's review of "Fear and
Loathing: On the Campaign Trail '72"



Re: spamfilter for procmail

2000-10-19 Thread Daniel J Peng

On Wed, Oct 18, 2000 at 05:33:05PM -0700, Duncan Watson wrote:
> I use the exact same procedure with the added benefit of automatically
> accepting email from anyone in my company since so many of them bcc me or
> use an alias that is not expanded.  I simply use a rule that accepts all
> 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 Ribbon Campaign
for President!   X  Against Outlook & HTML Mail
http://www.harrybrowne.org/ / \ http://www.thebackrow.net/

Pelorat sighed.
"I will never understand people."
"There's nothing to it.  All you have to do is take a close look
at yourself and you will understand everyone else.  How would Seldon have
worked out his Plan -- and I don't care how subtle his mathematics was --
if he didn't understand people; and how could he have done that if people
weren't easy to understand?  You show me someone who can't understand
people and I'll show you someone who has built up a false image of himself
-- no offense intended."
-- Asimov, "Foundation's Edge"



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 instead.

I have never understood how doing this is A Bad Thing. Were it not for
the MAPS DUL, I could have faster mail delivery, ESMTP features that
my ISP's mailserver doesn't support, and faster feedback on whether
the mail went through.

I fail to see how the measure prevents mail abuse in any way. Why
can't a spammer simply relay mail through his ISP's mailserver? In
fact, wouldn't it be faster this way? Rather than making a connection
to yb.mx.aol.com and clmin7-ext.prodigy.com and mail.bigfoot.com and
mail1.microsoft.com and mx1.mail.yahoo.com and mail.hotmail.com and
every other service's mailserver separately, a spammer could just make
ONE connection to his ISP's mailserver and relay all his mail through
that one connection.

Am I missing something here?

-- 
Nouvelle cuisine, n.:
French for "not enough food".

Continental breakfast, n.:
English for "not enough food".

Tapas, n.:
Spanish for "not enough food".

Dim Sum, n.:
Chinese for more food than you've ever seen in your entire life.



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 wrote only shows up in a text attachment
(which, sadly enough, some people fail to notice and completely miss
what I wrote).

I read the rationale (or rather, what I believe to be the rationale)
for this in PGP-Notes.txt, in the answer to the question, "I don't
like that PGP/MIME stuff, but want to use the old way of PGP-signing
my mails.  Can't you include that with mutt?" I don't understand why
"Application/pgp is not really suited to a world with MIME,
non-textual body parts and similar things." What exactly was wrong
with the old way of signing e-mails, with "-BEGIN PGP SIGNED
MESSAGE-" and such? What is the benefit to PGP/MIME?

-- 
===  ALL USERS PLEASE NOTE  

Compiler optimizations have been made to macro expand LET into a WITHOUT-
INTERRUPTS special form so that it can PUSH things into a stack in the
LET-OPTIMIZATION area, SETQ the variables and then POP them back when it's
done.  Don't worry about this unless you use multiprocessing.
Note that LET *could* have been defined by:

(LET ((LET '`(LET ((LET ',LET))
,LET)))
`(LET ((LET ',LET))
,LET))

This is believed to speed up execution by as much as a factor of 1.01 or
3.50 depending on whether you believe our friendly marketing representatives.
This code was written by a new programmer here (we snatched him away from
Itty Bitti Machines where we was writting COUGHBOL code) so to give him
confidence we trusted his vows of "it works pretty well" and installed it.

 PGP signature