disable beep sound

2008-08-20 Thread bill lam
I use mutt on xterm, It make a beep sound whenever mail box closes
(because I reset internet connection to renew public IP). Is there any
way to disable beep/bell sound?

regards,


Re: disable beep sound

2008-08-20 Thread bill lam
On Wed, 20 Aug 2008, Stefan Wimmer wrote:
> Does "set beep=no" not help?

Thanks! it works.

BTW when I hit reply (r), it filled your email address instead of
group list address, how to reply to (1) group or (2) all , as that
available in thunderbird?

regards,


Re: disable beep sound

2008-08-20 Thread bill lam
On Wed, 20 Aug 2008, Michael Kjorling wrote:

> On 20 Aug 2008 18:11 +0800, by [EMAIL PROTECTED] (bill lam):
> > how to reply to (1) group
> 
> L ()
> 
> Note that you will need to tell mutt that the mail came through a
> mailing list for this to work. See the documentation about "lists" and
> "subscribe".
> 
> > or (2) all
> 
> g ()

Thanks all for help. "L" also works for me.

regards,


charset problem in index view

2008-08-20 Thread bill lam
When the header was
From: =?big5?q?=ABab=20=AAL?= <[EMAIL PROTECTED]
it display "from" in index view
=?GB2312?B?udpi 

however when the header was
From: =?gb2312?q?=BD=F0=D8S=B3=C7?= <[EMAIL PROTECTED]
it displayed as
=?BIG5?B?qvfC16

Both displayed correctly in pager view.

regards,


"from" in index view for mailing list

2008-08-20 Thread bill lam
eg, in the index view, it shows

4176 N F Aug 21 To mutt-users   (3.0K) charset problem in index view

the "from" is "To mutt-users" for all msg from this mailing list, how
to set it to display the name of poster, eg.

4176 N F Aug 21 bill lam(3.0K) charset problem in index view

regards,


Re: "from" in index view for mailing list

2008-08-20 Thread bill lam
On Wed, 20 Aug 2008, Kyle Wheeler wrote:

> On Thursday, August 21 at 08:42 AM, quoth bill lam:
> >eg, in the index view, it shows
> >
> >4176 N F Aug 21 To mutt-users   (3.0K) charset problem in index view
> >
> >the "from" is "To mutt-users" for all msg from this mailing list, how
> >to set it to display the name of poster, eg.
> >
> >4176 N F Aug 21 bill lam(3.0K) charset problem in index view
> 
> Check out $index_format in the muttrc man page; you probably want to 
> use %a instead of %f or %L.

Thank you! I was using the default index_format and it now works ok
with %F instead of the default %L

regards,


Re: charset problem in index view

2008-08-20 Thread bill lam
On Wed, 20 Aug 2008, Kyle Wheeler wrote:
> Hmmm, weird. Sounds like your header_cache got messed up. Try deleting 
> your header cache.
 
I delete cached but it still appears the same way. Furthermore this
misbehavior is not limited to Chinese. It also happens to author name
that containing of non-latin letters, eg

 message header source / index page / pager
 From: "=?ISO-8859-1?Q?Zsb=E1n_Am
 =?ISO-8859-1?Q?
 From: Zsbán

 message header source / index page / pager
 From: =?UTF-8?B?UmHDumwgTsO6w7Fleg==?= de
 =?ISO-8859-1?Q?
 From: Raúl Núñez

FWIW I already use charset=UTF-8 and use a UTF-8 locale.

regards,


how to interrupt

2008-08-26 Thread bill lam
Hi All,
Sometime mutt hangs or waits for a long time during downloading or
uploading mail.  Is there any method to interrupt other than killall?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: how to interrupt

2008-08-27 Thread bill lam
On Tue, 26 Aug 2008, Rocco Rutte wrote:
> Is there progress in the mean time? How long does it take? Can you  
> exclude networking problems of any kind?
>
> Currently there's no way to interrupt, though IIRC there's a enhancement  
> request to support it for mutt 2.0.
>
> Rocco

Thank Rocco and Kyle for prompt response. 
Some email contains attachment of size around 3 to 6 MB. Actually I
had downloaded them but apparently the local cache doesn't work.  
FWIW I use gmail imap. 

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


pgpCkx34EiQ1K.pgp
Description: PGP signature


search backward

2008-09-04 Thread bill lam
In the index pane, "/" and "n" can search and search next. 
How to do searching backwards?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: search backward

2008-09-04 Thread bill lam
On Fri, 05 Sep 2008, Michael Kjorling wrote:

> On 5 Sep 2008 13:55 +0800, by [EMAIL PROTECTED] (bill lam):
> > In the index pane, "/" and "n" can search and search next. 
> > How to do searching backwards?
> 
> How about ?
> 

Pardon, exactly how to enter that command?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: search backward

2008-09-05 Thread bill lam
On Thu, 04 Sep 2008, Gary Johnson wrote:
> 
> / search-reversesearch backwards for a regular expression

Thank you, I can find it now.

BTW, can the output of ? screen be redirected to a file or system
clipboard?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


tagged items

2008-09-21 Thread bill lam
Hello,
After I tag some item using "T", how to jump to previous/next tagged
item, or have a list of tagged items?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: tagged items

2008-09-21 Thread bill lam
Hi Gary,
Thank you for help! 
A related question, how to untag all tagged items?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: tagged items

2008-09-22 Thread bill lam
On Sun, 21 Sep 2008, Patrick Shanahan wrote:

> * bill lam <[EMAIL PROTECTED]> [09-21-08 22:36]:
> > A related question, how to untag all tagged items?
> 
> the question mark "?" will give you a help screen.  Open it in "index"
> mode to see the tag operations.

Sounds like rtfm.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: tagged items

2008-09-22 Thread bill lam
On Mon, 22 Sep 2008, Vance Shipley wrote:

> On Mon, Sep 22, 2008 at 10:34:11AM +0800, bill lam wrote:
> } A related question, how to untag all tagged entrys?
> 
> Bill,
> 
> The tag-entry function (default = 't') key actually toggles
> the tagging of an entry.  Bearing that in mind to untag all
> the tagged entries you use the tag-prefix function (default
> = ';') first to say "perform the function which follows on
> all the tagged entries" followed by the tag-entry function.
> 
> So the short answer is ";t".
> 
Thank you for both detail explanation as well as short answer.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


delete duplicated mails

2008-09-22 Thread bill lam
Hello,
After forwarding or copying, there are duplicated mails in local
maibox folder. Is there an method to duplicated mails and only keep a
copy of each mail? The "Message-ID" field in header section is
intended to be the key field.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: delete duplicated mails

2008-09-22 Thread bill lam
On Tue, 23 Sep 2008, Marianne Promberger wrote:
> in  muttrc:
> set duplicate_threads = yes
> 
> then: 
> 
> D~=
> 
> (i.e. ~= )
> 
> I've actually got a folder-hook set to do this:
> 
> folder-hook . push "~="

Thank you for quick response! That folder-hook is very convenient.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: delete duplicated mails

2008-09-22 Thread bill lam
On Mon, 22 Sep 2008, Patrick Shanahan wrote:
> It would *really* be a good time to spend a few minutes glancing thru
> the very fine mutt documentation which you noted earlier as rtfm!
Frankly speaking, I can not understand why you keeping telling people
to rtfm in a support forum. If you do not care to help, there are
other more helpful people.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: delete duplicated mails

2008-09-22 Thread bill lam
On Mon, 22 Sep 2008, Patrick Shanahan wrote:
> > If you do not care to help, there are other more helpful people.
> 
> as you wish.

Good! Please just ignore and do not response future mails from me.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: delete duplicated mails

2008-09-22 Thread bill lam
On Mon, 22 Sep 2008, Sahil Tandon wrote:

> bill lam <[EMAIL PROTECTED]> wrote:
> 
> > On Mon, 22 Sep 2008, Patrick Shanahan wrote:
> > > > If you do not care to help, there are other more helpful people.
> > > 
> > > as you wish.
> > 
> > Good! Please just ignore and do not response future mails from me.
> 
> It is not in your best interest to antagonize Patrick and other helpful
> members of the mutt community.  He *was* trying to help you.  Have you
> ever chanced upon the phrase:
> 
> “Give a man a fish, he’ll eat for a day. Teach a man to fish, and he’ll
> eat for a lifetime.”

"Teach a man to fish" is not *just* tell him to rtfm.

When I tell others to rtfm, I will either give the specific answer first,
or tell him to read page.### or search for the keyword blahblah.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


search new mails in the opposite order

2008-09-24 Thread bill lam
Hello,
I sort emails in this manner
set sort=reverse-threads  
set sort_aux=last-date-received

when I read mails inside a thread, pressing  search next new
mail, but that will be the previous mail in chronological order. Try
pressing  does not help. Is there any way to search new
mail in the opposite order and bind it to ?

TIA
-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: search new mails in the opposite order

2008-09-25 Thread bill lam
On Thu, 25 Sep 2008, Kyle Wheeler wrote:
>  bind pager,index \S previous-new-then-unread

Thank you Kyle!

btw, I discovered that I had made a very bad choice for choosing
shift-tab as it is not supported on xterm without further hacking.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


pgpQdo5H22vO7.pgp
Description: PGP signature


where does it search

2008-09-25 Thread bill lam
In index page, / or T can search a pattern or regex, and there are
modifiers like ~h ~b to force searching inside header or body etc.
But what is the context for searching without any such modifiers, does
it search the header or body or just what is visible of the index
screen?

TIA
-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: where does it search

2008-09-25 Thread bill lam
On Thu, 25 Sep 2008, Rocco Rutte wrote:
> This feature is called "simple search", see $simple_search and its
> documentation: mutt generates a pattern with modifiers for you.

Thank you Rocco! The friendly way to rtfm. ;-)

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: where does it search

2008-09-25 Thread bill lam
Thanks Vance and Kyle. I once had to kill mutt when searching gmail
imap with ~b.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


command mode?

2008-09-28 Thread bill lam
Hello,
There are some unbound functions at the bottom of the help page "?" eg,
"query" "delete-thread", However when I type 
 :query
It said unknown command, How to execute these commands without binding
them to shortcut keys? 
Also commands like "set aaa=" seems working, but how to do things
like,
:set aaa?
:echo $bbb

Or does mutt has a command mode similar to that in vi/vim?

TIA
-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: command mode?

2008-09-28 Thread bill lam
On Sun, 28 Sep 2008, Michael Kjorling wrote:
> :push ""
Thank you for quick response. I see the syntax is to type
:push first.  memo

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


tag pattern

2008-10-02 Thread bill lam
Hi all,
I often need to tag the same pattern. Instead of typing each time, how
can I save the following and bind it shortcut key?
tag pattern
 T\[.*patch.*\]   

TIA
-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: tag pattern

2008-10-02 Thread bill lam
On Thu, 02 Oct 2008, Rejo Zenger wrote:

> ++ 02/10/08 21:45 +0800 - bill lam:
> >I often need to tag the same pattern. Instead of typing each time, how
> >can I save the following and bind it shortcut key?
> >tag pattern
> > T\[.*patch.*\]   
> 
> You would need to use a "macro". Untested:
> 
>   macro  pager,index  \ca  "T\[.*patch.*\]"   # tag using pattern

Thank you Rejo! I tried that \ inside quotes should be escaped too.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


tag-prefix

2008-10-02 Thread bill lam
Suppose I tag 2 msg inside a thread and then collapse it so that those
tag items are invisible. Then tag-prefix (eg ;d) can not operate on
those item. Apparently tag-prefix only applies to visible items, is
this intended and what is the workaround?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: tag-prefix

2008-10-02 Thread bill lam
On Thu, 02 Oct 2008, Kyle Wheeler wrote:

> On Thursday, October  2 at 11:21 PM, quoth bill lam:
> > Suppose I tag 2 msg inside a thread and then collapse it so that those 
> > tag items are invisible. Then tag-prefix (eg ;d) can not operate on 
> > those item. Apparently tag-prefix only applies to visible items, is 
> > this intended and what is the workaround?
> 
> My understanding (and I may be wrong) is that this is intentional. The 
> reasoning stems from the "limit" functionality, and is essentially: 
> users shouldn't be surprised that something got deleted. Deleting 
> things you can't see makes unfortunate, uncorrectable mistakes a very 
> real probability. Imagine, for example, that you'd tagged something, 
> forgotten about it, and then limited your view, tagged a few things 
> and then told mutt to delete all tagged messages. Should the invisible  
> tagged message be deleted? There may be a difference of opinion, but 
> in the interest of not surprising the user, "no" is perfectly valid. 
> And as an alternate behavior to prompting me every time with "do you 
> really want to delete this message?" (which would be *really* 
> annoying), I think it makes a lot of sense.
> 
> Now, whether this argument still ought to apply in the case of 
> collapsed threads, I don't know, and that's something worth discussing 
> from an interface point of view.

I can agree to your argument, either way half of innocent users will be
surprised. Can I make a ;! or ;; that will apply to all tagged items,
visible or not?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: Encoding problem

2008-10-13 Thread bill lam
On Mon, 13 Oct 2008, Przemyslaw Gawronski wrote:
> set fileencodings=utf8
I guess this line is incorrect, you have to put multiple encodings
see
:h fencs  

may be you can send me a latin2  mail for testing.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


cancel command

2008-10-13 Thread bill lam
Suppose I hit a key that is not a completely binded such as just a
single , how to cancel this key gracefully, instead of continue
to hit a space key so that it show an error message then abort.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: cancel command

2008-10-13 Thread bill lam
On Tue, 14 Oct 2008, Michael Tatge wrote:
> Hit ^g (that's ctrl-g)

Thank you Michael, this is what I need.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


mime type when adding attachment

2008-11-02 Thread bill lam
When I attach an excel file, its mime type is automatically set to
"application/excel", while recipient has no problem (they use
outlook), my mailcap has not associate that with any spreadsheet
program, thus mutt cannot open it.  My question is how does mutt
determine mime type when adding attachment so that I could change that
for excel file to "application/vnd.ms-excel"  which seem recognised by
  both gnumeric and openoffice.


relevant portions of my /etc/mailcap

application/vnd.ms-excel; gnumeric '%s'; edit=gnumeric '%s'; description="MS 
Excel spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/x-excel; gnumeric '%s'; edit=gnumeric '%s'; description="MS Excel 
spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/x-ms-excel; gnumeric '%s'; edit=gnumeric '%s'; description="MS 
Excel spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/x-msexcel; gnumeric '%s'; edit=gnumeric '%s'; description="MS Excel 
spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/x-xls; gnumeric '%s'; edit=gnumeric '%s'; description="MS Excel 
spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/x-dos_ms_excel; gnumeric '%s'; edit=gnumeric '%s'; description="MS 
Excel spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls

application/vnd.ms-excel.sheet.macroEnabled.12; soffice -no-oosplash -calc 
'%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n "$DISPLAY"; 
description="Office Open XML Spreadsheet with Macros Enabled"; 
nametemplate=%s.xlsm
application/vnd.ms-excel.template.macroEnabled.12; soffice -no-oosplash -calc 
'%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n "$DISPLAY"; 
description="Office Open XML Spreadsheet Template with Macros Enabled"; 
nametemplate=%s.xltm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; soffice 
-no-oosplash -calc '%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n 
"$DISPLAY"; description="Office Open XML Spreadsheet"; nametemplate=%s.xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.template; soffice 
-no-oosplash -calc '%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n 
"$DISPLAY"; description="Office Open XML Spreadsheet Template"; 
nametemplate=%s.xltx
application/vnd.lotus-1-2-3; soffice -no-oosplash -calc '%s'; edit=soffice 
-no-oosplash -calc '%s'; test=test -n "$DISPLAY"; description="Lotus 1-2-3 
spreadsheet"; nametemplate=%s.123
application/vnd.ms-excel; soffice -no-oosplash -calc '%s'; edit=soffice 
-no-oosplash -calc '%s'; test=test -n "$DISPLAY"; description="Microsoft Excel 
Document"; nametemplate=%s.xls
application/msexcel; soffice -no-oosplash -calc '%s'; edit=soffice -no-oosplash 
-calc '%s'; test=test -n "$DISPLAY"; description="Microsoft Excel Document"; 
nametemplate=%s.xls

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: mime type when adding attachment

2008-11-03 Thread bill lam
On Mon, 03 Nov 2008, Christian Mongeau wrote:
> Chapter 5 of the manual deals with MIME:
> http://www.mutt.org/doc/devel/manual.html#mimesupport
> 
> In particular, "2. MIME Type configuration with mime.types"
> (http://www.mutt.org/doc/devel/manual.html#mime-types) says:
> "When you add an attachment to your mail message, Mutt searches
> your personal mime.types file at ${HOME}/.mime.types, and then
> the system mime.types file at /usr/local/share/mutt/mime.types
> or /etc/mime.types
> 
> The mime.types file consist of lines containing a MIME type and
> a space separated list of extensions. For example:
> 
> application/postscript  ps eps
> application/pgp pgp
> audio/x-aiffaif aifc aiff
> 
> [...]
> 
> You can change the MIME type that Mutt assigns to an attachment by
> using the edit-type command from the compose menu (default: ^T).
> [...]" or by modifying the mime.types file.

Thanks Christian. 

I checked again that there is no 
~/.mime.types
/usr/local/share/mutt/mime.types
/usr/share/mutt/mime.types

There are
/etc/mime.types  which contains
application/vnd.ms-excelxls xlb xlt

/usr/etc/mime.types  ??? which contains
application/excel   xls

Apparently mutt get mime type from /usr/etc/mime.types any idea why
there is such a file and why mutt read from it, instead of
/etc/mime.types as mentioned inside mutt documentation?

I use ubuntu if that matters.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: mime type when adding attachment

2008-11-03 Thread bill lam
On Mon, 03 Nov 2008, Christian Mongeau wrote:
> AFAIK there shouldn't be a /usr/etc/mime.types because it's not
> FHS-compliant:
> "[...] /usr/etc is still not allowed: programs in /usr should
> place configuration files in /etc."

I checked the mutt source and found that it set sysconfdir to
prefix/etc inside configure, since my prefix=usr so that it looks for
the directory /usr/etc, I'm not sure if my configure is problematic or
mutt use lagacy autoconf that generate the configure. Anyway this is
different from the mutt documentation.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


tiff to pdf

2008-11-09 Thread bill lam
When I receive email with tiff attachment, my default image viewer
'feh' can not handle it and I'm reluctant to install another image
viewer. Although I can save it and convert to pdf with command
$tiff2ps -a foo.tif | ps2pdf - > foo.pdf

How to automate this process within mutt so that it can convert any
incoming tiff into pdf automatically. Then the pdf can be viewed using
xpdf.

Thanks in advance.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩229 裴迪  送崔九
歸山深淺去  須盡丘壑美  莫學武陵人  暫遊桃源裡


Re: tiff to pdf

2008-11-09 Thread bill lam
On Sun, 09 Nov 2008, Christian Ebert wrote:
> There's also tiff2pdf which would safe the detour via ps2pdf.
> 
> Unfortunately piping to 'xpdf /dev/stdin' doesn't work in this
> case.
> 
> But the following script does for me:
> 
> $ cat muttiff.sh
> #!/bin/sh
> 
> tf=`mktemp`
> # copy mutt's tempfile so it's not removed to early
> cp "$1" "$tf"
> tiff2ps -a "$tf" | ps2pdf - > "$tf.pdf"
> xpdf "$tf.pdf" && rm -f "$tf" "$tf.pdf"
> 
> 
> in connection with the mailcap entry:
> 
> image/tiff; muttiff.sh %s

Hi Christian,

Thank you for the detail information. This (and tiff2pdf) works very
well.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩299 李商隱  寄令狐郎中
嵩雲秦樹久離居  雙鯉迢迢一紙筆  休問梁園舊賓客  茂陵秋雨病相如


how to edit as new

2008-12-03 Thread bill lam
Hi All,
I want to know how to call a old message either in sent or inbox and
edit its content and then send it as a new message without the old
message-id. Will the attachment in old message also be included?

Thanks in advance.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩004 張九齡  感遇四首之四
江南有丹橘  經冬猶綠林  豈伊地氣暖  自有歲寒心  可以薦嘉客  奈何阻重深
運命惟所遇  循環不可尋  徒言樹桃李  此木豈無陰


Re: how to edit as new

2008-12-04 Thread bill lam
On Thu, 04 Dec 2008, Jörg Sommer wrote:
> Hi bill,
> 
> bill lam <[EMAIL PROTECTED]> wrote:
> > I want to know how to call a old message either in sent or inbox and
> > edit its content and then send it as a new message without the old
> > message-id. Will the attachment in old message also be included?
> 
> I think you're looking for e aka resend-message.
> 
Hi, Jörg

Thank you! That's what I was looking for.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩161 溫庭筠  送人東遊
荒戍落黃葉  浩然離故關  高風漢陽渡  初日郢門山
江上幾人在  天涯孤棹還  何當重相見  樽酒慰離顏


multiple interactive mutt instance

2008-12-04 Thread bill lam
I always have a mutt running in screen. Is it save to run another
interactive instance of mutt?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩235 杜甫  八陣圖
功蓋三分國  名成八陣圖  江流石不轉  遺恨失吞吳


Re: multiple interactive mutt instance

2008-12-04 Thread bill lam
Thanks Joost & Sander for quick response.
I am replying from the second instance of mutt.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩266 王昌齡  春宮曲
昨夜風開露井桃  未央前殿月輪高  平陽歌舞新承寵  簾外春寒賜錦袍


send attachment interactively from command line

2008-12-04 Thread bill lam
Some other mua such as thunderbird can be invoked from command line to
a send a file as attachment interactively such that it creates a new
email with that file as attachment. Other details such recipient,
subject or body message can be entered before sending.  Is that
possible with mutt?

Thank you in advance.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩274 韓翃  寒食
春城無處不飛花  寒食東風御柳斜  日暮漢宮傳蠟燭  輕煙散入五侯家


Re: send attachment interactively from command line

2008-12-05 Thread bill lam
On Fri, 05 Dec 2008, Kyle Wheeler wrote:
> On Friday, December  5 at 01:35 PM, quoth bill lam:
> > Some other mua such as thunderbird can be invoked from command line to 
> > a send a file as attachment interactively such that it creates a new 
> > email with that file as attachment. Other details such recipient, 
> > subject or body message can be entered before sending.  Is that 
> > possible with mutt?
> 
> What do you mean "interactively"? You want a dialog box? A series of 
> prompts? Or do you just want to be able to pass mutt some flags that 
> specify who to send to?
> 

I want it to start mutt, auto press "m" to compose a new message, then
I type in the "To", "subject", and mutt calls editor for me to input
body text. And it adds the file that I included in the command line
flag to its attachment list. Everything should work inside mutt and it
will not send the email automatically.  Like the "sendto: email as
attachment" under m$ window file explorer or nautilus in gnome.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩179 王維  奉和聖製從蓬萊向興慶閣道中留春雨中春望之作應制
渭水自縈秦塞曲  黃山舊遶漢宮斜  鑾輿迥出千門柳  閣道迴看上苑花
雲裡帝城雙鳳闕  雨中春樹萬人家  為乘陽氣行時令  不是宸遊玩物華


Re: send attachment interactively from command line

2008-12-05 Thread bill lam
On Fri, 05 Dec 2008, Marianne Promberger wrote:
> Let's assume you want to attach file "~/tmp/foo.txt"
> 
> At the command line, type:
> 
> mutt -a ~/tmp/foo.txt [ENTER]
 
Thanks, This works very well. Also thanks Micheal for suggesting the
-e command so that I can source different profiles.
  
-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩310 張泌  寄人
別夢依依到謝家  小廊回合曲闌斜  多情只有春庭月  猶為離人照落花


decrypt pgp mail sent from thunderbird

2008-12-11 Thread bill lam
I received an email sent using thunderbird that did not use
attachment.  The body is just text like the following:

-BEGIN PGP MESSAGE-
Charset: ISO-8859-1
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
...
...
-END PGP MESSAGE-

I managed to save the body to a file and decrypt using gpg.  However I
am interested to know if there is any simple method to automatically
decode the text.  If that matters, my mutt itself communicates
directly with gmail imap that does not use fetchmail.

Thank in advance.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩244 柳宗元  江雪
千山鳥飛絕  萬徑人蹤滅  孤舟簑笠翁  獨釣寒江雪


Re: decrypt pgp mail sent from thunderbird

2008-12-12 Thread bill lam
On Fri, 12 Dec 2008, Jörg Sommer wrote:
> Press Alt + Shift + p or ESC Shift + p. But at me, the non‐acsii
> characters are broken. In my UTF‐8 environment, they aren't displayed
> as UTF‐8 characters.

Thanks Jörg. It works like a charm. I have not (yet) encountered the
problem you described because the messages are in us-ascii.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩024 常建  宿王昌齡隱居
清溪深不測  隱處唯孤雲  松際露微月  清光猶為君
茅亭宿花影  藥院滋苔紋  余亦謝時去  西山鸞鶴群


Re: bind doesn't work even though it's listed with ?

2008-12-13 Thread bill lam
On Sat, 13 Dec 2008, Dave Wood wrote:
> I'm using  to read next-undeleted which works fine, but when I set
>  to read previous-undeleted it says key not bound. I have it
> set for index and pager:
> 
> bindindex  next-undeleted
> bindpager  next-undeleted
> bindindex   previous-undeleted
> bindpager   previous-undeleted

I guess you run mutt inside screen. screen emits the same sequence for
both tab and shift-tab.  My experience is that it works with xterm but
not screen inside xterm.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩187 杜甫  登樓
花近高樓傷客心  萬方多難此登臨  錦江春色來天地  玉壘浮雲變古今
北極朝庭終不改  西山寇盜莫相侵  可憐後主還祠廟  日暮聊為梁父吟


certificate for gmail

2008-12-14 Thread bill lam
I have already setup gmail certificate files for mutt and msmtp.
However I wondered why other email clients such as outlook in m$
windows or even thunderbird under linux do not ask for them.  Are
those gmail certificates bundled with email clients or are they
already located in some well known directories?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩104 李白  夜泊牛渚懷古
牛渚西江夜  青天無片雲  登舟望秋月  空憶謝將軍
余亦能高詠  斯人不可聞  明朝挂帆席  楓葉落紛紛


Re: not all attachments shown in pager

2008-12-17 Thread bill lam
On Wed, 17 Dec 2008, Rejo Zenger wrote:
>  |I 1   [multipa/alternativ, 
> 7bit, 178K]
>  |I 2 AA> [text/plain, 7bit, 
> us-ascii, 1.8K]
>  |I 3 AA>[multipa/mixed, 
> 7bit, 176K]
>  |I 4   AA>  [text/html, quoted, 
> us-ascii, 3.6K]
>  |I 5   AA>abcdefghijklmnopq.pdf [applica/pdf, 
> base64, 170K]
>  |I 6   AA>  [text/html, quoted, 
> us-ascii, 2.1K]

I don't know the exact answer, but I can see the email contained
"alternative" meaning that only one of the alternatives is sufficient
for viewing purpose. You may use "alternative_order" in muttrc to set
  your own preference.  Please search for "alternative_order" in mutt
  documentation for detail.

HTH

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩253 崔顥  長干行二首之一
君家何處住  妾住在橫塘  停船暫借問  或恐是同鄉


Re: New mail not found - what to check?

2008-12-19 Thread bill lam
On Fri, 19 Dec 2008, Chris G wrote:
> But mutt isn't seeing any new mail.

Just wild guess, did you set mailboxes to the proper directory in .muttrc ?
like this, say,

set folder="$HOME/Mail"  # Local mailboxes stored here
mailboxes ! +freewant +ixion

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩181 王維  酬郭給事
洞門高閣靄餘輝  桃李陰陰柳絮飛  禁裡疏鐘官舍晚  省中啼鳥吏人稀
晨搖玉珮趨金殿  夕奉天書拜瑣闈  強欲從君無那老  將因臥病解朝衣


Re: Adding local files as attachments

2008-12-23 Thread bill lam
On Tue, 23 Dec 2008, Dustin Cannon wrote:
> I am using mutt to connect to an imap server.  When I try to add an
> attachment mutt wants to search the imap server.  I can't seem to find
> any way to make mutt search locally for files to attach.  Can someone
> enlighten me?

It should not related to imap as imap is just for receiving emails.

After  hit "a", it displays something like "? for list".  Do not hit
"?". Press TAB and it will display a file browser to your file system.
Also you can press "t" to tag several files in the file browser.

HTH

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩262 張旭  桃花谿
隱隱飛橋隔野煙  石磯西畔問漁船  桃花盡日隨流水  洞在清谿何處邊


Re: sendmail?

2008-12-27 Thread bill lam
On Sat, 27 Dec 2008, David Maus wrote:
> So you *could* set up such software on your box that does the
> delivery but you probably wouldn't be happy with this solution as some
> mail providers do not accept delivery attempts from dynamic ip
> addresses for spam prevention. 

More specifically, it needs a mx record in order to delivery email. I
don't think dynamic ip host will provide you a mx record.  If you
register a domain name, you can setup your own mx records, however if
spams were sent, it will be blacklisted.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩302 李商隱  瑤池
瑤池阿母綺窗開  黃竹歌聲動地哀  八駿日行三萬里  穆王何事不重來


Re: Mutt as command line attachment mailer

2008-12-30 Thread bill lam
On Tue, 30 Dec 2008, Sebastian Tennant wrote:
> However, what about attachment handling?

does nail/mailx help?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩091 張九齡  望月懷遠
海上生明月  天涯共此時  情人怨遙夜  竟夕起相思
滅燭憐光滿  披衣覺露滋  不堪盈手贈  還寢夢佳期


Re: how to mark all as read?

2009-01-05 Thread bill lam
On Mon, 05 Jan 2009, Ed Blackman wrote:
> macro index c 
> "~T\n~N\n~T\n"

Does it work if there is no new messages?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩241 李端  聽箏
鳴箏金粟柱  素手玉房前  欲得周郎顧  時時誤拂絃


Re: how to mark all as read?

2009-01-05 Thread bill lam
On Mon, 05 Jan 2009, Kyle Wheeler wrote:
> ~T~N~T

Thanks. I tried and apparently it needs to expand all collapsed
threads first, otherwise only those visible messages will be affected.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩137 劉長卿  新年作
鄉心新歲切  天畔獨潸然  老至居人下  春歸在客先
嶺猿同旦暮  江柳共風煙  已似長沙傅  從今又幾年


reminder for missing attachment

2009-01-15 Thread bill lam
Some other email clients should already have this plugin. If the email
body contains words like: attach(ed) or attachment(s), it will issue a
warning if no attachment is added when sending.  How to implement this
in mutt?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩144 戴叔倫  江鄉故人偶集客舍
天秋月又滿  城闕夜千重  還作江南會  翻疑夢裡逢
風枝驚暗鵲  露草覆寒蟲  羈旅長堪醉  相留畏曉鐘


Re: reminder for missing attachment

2009-01-16 Thread bill lam
On Fri, 16 Jan 2009, Christian Brabandt wrote:
> I have seen several solutions for that. One is mentioned at the wiki¹, 
> ¹ http://wiki.mutt.org/?ConfigTricks/CheckAttach

Thank everyone for help.  I finally modify this checkattach to my
need. Yes it needs the 5MB zenity, not sure why that is so bloated, If
anyone can make it work with TUI query, please let me know.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩137 劉長卿  新年作
鄉心新歲切  天畔獨潸然  老至居人下  春歸在客先
嶺猿同旦暮  江柳共風煙  已似長沙傅  從今又幾年
#!/bin/bash

SENDMAIL=/usr/bin/msmtp

###
# this script uses a GUI app called "zenity" to ask for confirmation,
# if not in GUI, just let it pass. If you want TUI (not GUI) query,
# which means you replace "zenity" with something else, then
# drop this DISPLAY check.
###
if [ -z "$DISPLAY" ]; then
exec $SENDMAIL "$@"
fi

###
# save msg in file to re-use it for multiple tests
###
t=`mktemp -t mutt.XX` || exit 2
cat > $t

###
# define tests for: anything you can think of can be done.
# the return code of last exec'ed cmd is used in final decision below
###
function multipart {
grep -q '^Content-Disposition: attachment' $t
}

function word-attach {
grep -i -q -e '^[^>].*attach' $t
}

###
# query function must return "true" to let the msg pass.
###
function ask {
zenity --question --title 'mutt' --text 'Send without attachment?'
}

###
# FINAL DECISION:
# chain series of functions, use ! || && for logic connections,
# see "man $SHELL" for more possibilites like grouping, dependencies.
###
if ! word-attach ||  multipart || ask; then
   $SENDMAIL "$@" < $t
status=$?
else
status=1
fi
rm -f $t
exit $status


Re: reminder for missing attachment

2009-01-16 Thread bill lam
On Fri, 16 Jan 2009, Christian Brabandt wrote:
> ¹ http://wiki.mutt.org/?ConfigTricks/CheckAttach
> ² http://mako.cc/projects/attachcheck/README.html

On second thought, there is an issue because the message may be in
quote-printable or base64 encoding, it has to be decoded before grep
for the words 'attach'.  Fortunately, I use 8-bit encoding and that is
not yet a problem for me. May be mutt should add a sendmail-hook so
that pipe decoding of mutt can be used.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩214 李商隱  籌筆驛
猿鳥猶疑畏簡書  風雲常為護儲胥  徒令上將揮神筆  終見降王走傳車
管樂有才原不忝  關張無命欲何如  他年錦里經祠廟  梁父吟成恨有餘


autoview always dump to /tmp/mutt.html

2009-02-03 Thread bill lam
I found that in current version, it always dump to the same file name
mutt.html, is this a regression?

[-- Autoview using /usr/bin/w3m -dump -T text/html ''/tmp/mutt.html'' --]

$ mutt -version
Mutt 1.5.19 (2009-01-27)

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩172 祖詠  望薊門
燕臺一去客心驚  簫鼓喧喧漢將營  萬里寒光生積雪  三邊曙色動危旌
沙場烽火侵胡月  海畔雲山擁薊城  少小雖非投筆吏  論功還欲請長纓


local sendmail

2009-02-03 Thread bill lam
Apologise if this OT,  I use rss2email to download rss and then it
automatically calls sendmail to send them as emails to my gmail
account so that they can be read with mutt.  My pc does not have valid
domain name.  I wonder if it is possible to teach sendmail to delivery
email to local maildir without the need to go through any external
smtp server.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩118 王維  終南山
太乙近天都  連山接海隅  白雲迴望合  青靄入看無
分野中峰變  陰晴眾壑殊  欲投人處宿  隔水問樵夫


Re: local sendmail

2009-02-04 Thread bill lam
On Wed, 04 Feb 2009, Christian Ebert wrote:
> With my postfix' sendmail here this works.

Thank for suggestion. I was using msmtp symlink as sendmail that
doesn't work.  Using postfix' sendmail it works ok.  

I am quite happy with rss2email/mutt combination as my newsfeed
reader.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩213 李商隱  無題二首之二
颯颯東風細雨來  芙蓉塘外有輕雷  金蟾齧璅燒香入  玉虎牽絲汲井迴
賈氏窺簾韓掾少  宓妃留枕魏王才  春心莫共花爭發  一寸想思一寸灰


Re: local sendmail

2009-02-05 Thread bill lam
On Thu, 05 Feb 2009, Anders Rayner-Karlsson wrote:
> Does not work. Tried it today, and you only get a mbox that is not a
> real mbox. You can edit it by hand, inserting a blank line between the

It works for me.  I use maildir instead of mbox if it matters

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩179 王維  奉和聖製從蓬萊向興慶閣道中留春雨中春望之作應制
渭水自縈秦塞曲  黃山舊遶漢宮斜  鑾輿迥出千門柳  閣道迴看上苑花
雲裡帝城雙鳳闕  雨中春樹萬人家  為乘陽氣行時令  不是宸遊玩物華


Re: Check default IMAP mailbox on startup

2009-02-06 Thread bill lam
On Fri, 06 Feb 2009, Andrey Zhidenkov wrote:
> Hello.
> 
> I have configured mutt to use with GMail IMAP mailboxes. I set up
> mailboxes in my .muttrc in this way:
> 
> mailboxes ! =ml-lug-list =ml-lug-org =[Gmail]/Drafts "=[Gmail]/All Mail"
> 
> Can I configure mutt to check one of this mailboxes on startup
> automaticcaly? How can I set up a default mbox?

It should be something like this,

mutt -f imaps://yourn...@imap.gmail.com/INBOX

the exact name should be one of that displayed in the open mailbox
screen.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩112 杜甫  別房太尉墓
他鄉復行役  駐馬別孤墳  近淚無乾土  低空有斷雲
對棋陪謝傅  把劍覓徐君  唯見林花落  鶯啼送客聞


Re: How can I get mail from /var/mail/jatmin to my spoolfile

2009-02-07 Thread bill lam
On Sat, 07 Feb 2009, Josef Atmin wrote:
> After having discovered macros I came up with the following solution for 
> moving mail from /var/mail/jatmin to ~/INBOX.
> 
>macro index,pager G "\
> unset wait_key\
> \
> if [[ -s /var/mail/$USER ]]; then\
>   cat /var/mail/$USER >> ~/INBOX;\
>   echo -n > /var/mail/$USER;\
> fi\
> set wait_key\
> " "fetch local and pop3 mail"
> 
> This seems to do what I want.  It is a hack, and I am not quite sure 
> whether it is safe (therefore my version within the if-statement looks 
> like
> 
>   cp /var/mail/$USER ~/=var=mail=$USER-backup;\
>   cp ~/INBOX ~/INBOX-backup;\
>   cat /var/mail/$USER >> ~/INBOX;\
>   echo -n > /var/mail/$USER;\
>   echo There has been local e-Mail!;\
>   sleep 2;\

Did you forget to file lock mail/$USER on entry of script?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩312 王維  渭城曲
渭城朝雨浥輕塵  客舍青青柳色新  勸君更盡一杯酒  西出陽關無故人


Re: How can I get mail from /var/mail/jatmin to my spoolfile

2009-02-08 Thread bill lam
On Sun, 08 Feb 2009, Josef Atmin wrote:
> Thanks for pointing that out.  How would I do that?  Set permissions to
> non-writable?

Does any of the followings help?
$ man -k lock | grep "(1)"

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩133 劉長卿  秋日登吳公臺上寺遠眺
古臺搖落後  秋日望鄉心  野寺人來少  雲峰水隔深
夕陽依舊壘  寒磬滿空林  惆悵南朝事  長江獨至今


how to revert an attachment when composing

2009-02-10 Thread bill lam
When composing new mails, I can use "a" to add attachments. However I
cannot find any hot-key to revert an attachment (do not attach that
attachment).  Is there any way to do it?

Thanks.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩036 王昌齡  塞上曲
蟬鳴空桑林  八月蕭關道  出塞復入塞  處處黃蘆草
從來幽并客  皆向沙場老  莫學遊俠兒  矜誇紫騮好


Re: how to revert an attachment when composing

2009-02-10 Thread bill lam
> with the attachment highlighted:
> 
> D

Thanks Cristóbal, Nicolas.

That is called 'detach', no wonder I searched TFM for 'attach' and
could not locate it.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩149 司空曙  賊平後送人北歸
世亂同南去  時清獨北還  他鄉生白髮  舊國見青山
曉月過殘壘  繁星宿故關  寒禽與衰草  處處伴愁顏


set up multiple account

2009-02-12 Thread bill lam
(I apologise that I once saw a thread on this subject but could not
locate it,)

I got several gmail accounts that have to be set up inside muttrc like:

folder-hook "imaps://cfoo...@imap.gmail.com" '\
set from="cfoo...@gmail.com" ; \
set folder="imaps://cfoo...@imap.gmail.com" ; \
set spoolfile="+INBOX" ; \
set timeout=300 ; \
set mail_check=300 '

folder-hook "imaps://ifoo...@imap.gmail.com" '\
set from="ifoo...@gmail.com" ; \
set folder="imaps://ifoo...@imap.gmail.com" ; \
set spoolfile="+INBOX" ; \
set timeout=300 ; \
set mail_check=300 '

Instead of copy and paste and edit the whole group again and again,
how to do it in a shorter way?

Thanks.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩299 李商隱  寄令狐郎中
嵩雲秦樹久離居  雙鯉迢迢一紙筆  休問梁園舊賓客  茂陵秋雨病相如


Re: set up multiple account

2009-02-13 Thread bill lam
On Thu, 12 Feb 2009, Ed Blackman wrote:
> `muttGmail cfoobar`
> `muttGmail ifoobar`
>
> Mutt will run muttGmail with the given argument.  muttGmail will take  
> the argument and spit out the complete folder-hook.  Mutt will then  
> interpret the output as configuration commands, and you're all set up.

I tried but failed, Apparently mutt does not execute that output as
commands.  It seems need a :source command and provide a temp file
name.  Or did I missed something?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩109 杜甫  月夜憶舍弟
戍鼓斷人行  秋邊一雁聲  露從今夜白  月是故鄉明
有弟皆分散  無家問死生  寄書長不達  況乃未休兵


Re: set up multiple account

2009-02-13 Thread bill lam
On Fri, 13 Feb 2009, Ed Blackman wrote:
> Do this, inside mutt type:
>
> :`echo 'set my_test=foo'`
>
> and then
>
> :set ?my_test

This example worked, but I might find the reason why it didn't work
in general.  I saved the following script as mutt-test and put a line
`mutt-test bar` in my .muttrc 

#!/bin/sh

email="$1"

cat <

Re: set up multiple account

2009-02-14 Thread bill lam
On Sat, 14 Feb 2009, Ed Blackman wrote:
> Use the same muttGmail script, but include it in .muttrc with
> source 'muttGmail foo|'

Thanks Ed, it works very well now.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩215 李商隱  無題
相見時難別亦難  東風無力百花殘  春蠶到死絲方盡  蠟炬成灰淚始乾
曉鏡但愁雲鬢改  夜吟應覺月光寒  蓬萊此去無多路  青鳥殷勤為探看


can not clone mutt hg

2009-02-18 Thread bill lam
I can not clone mutt today. it said
$ hg clone http://dev.mutt.org/hg/mutt
destination directory: mutt
requesting all changes
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
abort: premature EOF reading chunk (got 2263 bytes, expected 1196433487)

The last line varied, but all were premature EOF 

My network connection or mutt site had some problem?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩272 韋應物  滁州西澗
獨憐幽草澗邊生  上有黃鸝深樹鳴  春潮帶雨晚來急  野渡無人舟自橫


Re: can not clone mutt hg

2009-02-18 Thread bill lam
On Wed, 18 Feb 2009, Michael Elkins wrote:
> I had no problems cloning the repo just a minute ago, so it might be your
> connection.
> 

Thanks, I had no problem today. It should be just some network error.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩103 李白  聽蜀僧濬彈琴
蜀僧抱綠綺  西下峨眉峰  為我一揮手  如聽萬壑松
客心洗流水  餘響入霜鐘  不覺碧山暮  秋雲暗幾重


Re: newbie install

2009-02-21 Thread bill lam
On Sat, 21 Feb 2009, James Freer wrote:
> some v.clever person has developed an external editor addon instead of
> the TB editor. It allows emacs, vi, joe, gedit or whatever to compose
> emails. Should be of interest to anyone who wants to say goodbye to
> the mouse while editing emails.

There is also a firefox addon "it's all text" that allow using
external editors for textarea editing such writing emails for
webmails.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩269 李白  下江陵
朝辭白帝彩雲間  千里江陵一日還  兩岸猿聲啼不住  輕舟已過萬重山


Re: newbie install

2009-02-22 Thread bill lam
On Sun, 22 Feb 2009, James Freer wrote:
> 'ItsallText' i haven't got working somehow. For gmail one has got to
> do a bash script from what i can gather. Mozex is fine for me and is

I just used gvim and that worked for me although I rarely use firefox
now.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩124 孟浩然  望洞庭湖贈張丞相
八月湖水平  涵虛混太清  氣蒸雲夢澤  波撼岳陽城
欲濟無舟楫  端居恥聖明  坐觀垂釣者  空有羨魚情


Re: open a browser

2009-02-27 Thread bill lam
On Fri, 27 Feb 2009, Andreas Kalex wrote:
> Hi,
> 
> I want to tune my muttrc and/or mailcap to do the following: when
> getting a mail with html inside or as an attachment, I want to
> decide whether to open it with html2text, w3m or occasionally with
> dillo or firefox.  Now it is so that the first matching entry from
> the mailcap will open.

I make it default to w3m, and if that page requires javascript then I
open firefox from w3m using hotkeys.  w3m provides 3 external browser
commands if you need more, elinks can provides unlimited choices in
that it popup a menu to choose from.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩280 劉禹錫  烏衣巷
朱雀橋邊野草花  烏衣巷口夕陽斜  舊時王謝堂前燕  飛入尋常百姓家


Re: Show my replies in thread

2009-02-28 Thread bill lam
I use an additional gmail account. Suppose I use a...@gmail to subscribe
to a list. I then set at a...@gmai web interface to cc all emails to
b...@gmail. When posting to the list, I bcc to b...@gmail.  Use imap of
b...@gmail to read list emails which contains all emails sending from/to
a...@gmail.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩150 劉禹錫  蜀先主廟
天地英雄氣  千秋尚凜然  勢分三足鼎  業復五銖錢
得相能開國  生兒不象賢  淒涼蜀故妓  來舞魏宮前


Re: How to be compatible with Outlook's conversation mode?

2009-03-03 Thread bill lam
On Tue, 03 Mar 2009, Magicloud Magiclouds wrote:
> I think this option only effects how the mails displayed, right?
> My problem is that my mails (composed by mutt) could not be organized
> as conversation in the receivers' outlook.

But is there any positive evidents that your out-going email is ok? Eg
did them show in thread to other email clients such as mutt itself? 

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩264 王昌齡  芙蓉樓送辛漸
寒雨連江夜入吳  平明送客楚山孤  洛陽親友如相問  一片冰心在玉壺


Re: local sendmail

2009-03-10 Thread bill lam
On Thu, 05 Feb 2009, Anders Rayner-Karlsson wrote:

> > On Wed, Feb 04, 2009 at 09:53:03AM -0500, Aron Griffis wrote:
> > > emailj...@gmx.de wrote:  [Wed Feb 04 2009, 09:38:07AM EST]
> > > > Is there some other way around this other than having to run postfix?
> > > 
> > > I haven't used rss2email but it seems trivial to edit
> > > rss2email.py to call procmail instead of sendmail.  Something
> > > like:
> > > 
> > > --- rss2email.py.orig   2009-02-04 09:51:18.0 -0500
> > > +++ rss2email.py2009-02-04 09:52:14.0 -0500
> > > @@ -188 +188 @@
> > > -   i, o = os.popen2(["/usr/sbin/sendmail", recipient])
> > > +   i, o = os.popen2(["/usr/bin/procmail"])
> > > 
> > 
> > I did the same a while ago (6+ months) and it works just fine. Besides,
> > it also helps to keep procastination confined only to my personal PC,
> > instead of chasing me on my online mailboxes.
> 
> Does not work. Tried it today, and you only get a mbox that is not a
> real mbox. You can edit it by hand, inserting a blank line between the

After switching to debian lenny, I encountered the same problem saying
the spool file is not a valid mailbox. But debian and its derivatives
should have already installed exim4 as mta by default. I changed that
line to /usr/sbin/exim and it works again.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩185 杜甫  聞官軍收河南河北
劍外忽傳收薊北  初聞涕淚滿衣裳  卻看妻子愁何在  漫卷詩書喜欲狂
白日放歌須縱酒  青春作伴好還鄉  即從巴峽穿巫峽  便下襄陽向洛陽


Re: accent problem replying mails

2009-04-03 Thread bill lam
On Fri, 03 Apr 2009, Roger Casaponsa wrote:
> I think that es...@euro is the same that es_ES.ISO8859-15 because when
> I choose wich locales I want this is displayed like: es...@euro
> ISO-8859-15

If it was related to vim, you may test when replying with vim by
typing
:set fenc
this should give the file encoding used by vim for that reply

and
:set fencs
this should give a list of encodings used by vim for autodetect, 
try putting iso-8859-15 after the utf-8 or some other positions 

set fileencodings=ucs-bom,utf-8,cp950,iso-8859-9,gb18030,default,latin1

and add that in your .vimrc.

HTH

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩180 王維  積雨輞川莊作
積雨空林煙火遲  蒸藜炊黍餉東菑  漠漠水田飛白鷺  陰陰夏木囀黃鸝
山中習靜觀朝槿  松下清齋折露葵  野老與人爭席罷  海鷗何事更相疑


Re: send-hook auto cc not working,

2009-04-07 Thread bill lam
On Tue, 07 Apr 2009, zhang zhengquan wrote:
> send-hook a...@abc.edu \
> "push ,o...@abc.eu"

may be you forget to escape the `.`, eg.

send-hook a...@abc\\.edu \
"push ,o...@abc.eu"

HTH

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩201 皇甫冉  春思
鶯啼燕語報新年  馬邑龍堆路幾千  家住層城鄰漢苑  心隨明月到胡天
機中錦字論長恨  樓上花枝笑獨眠  為問天戎竇車騎  何時返旆勒燕然


Re: Mailing list "from" format

2009-04-10 Thread bill lam
On Fri, 10 Apr 2009, J. Limon wrote:
> That actually makes perfect sense. That way I could easily reply to
> the person OR the list depending on the situation. I'll just have to
> train myself to remember L instead of r for lists, but that
> shouldn't be too hard given that lists starts with L, hurr.

mutt also support group reply, should be binded tp "g", in case the
mailing list expecting cc to respondents. 

BTW does mutt mailing list use cc ?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩205 元稹  遣悲懷三首之一
謝公最小偏憐女  自嫁黔婁百事乖  顧我無衣搜藎篋  泥他沽酒拔金釵
野蔬充膳甘長藿  落葉添薪仰古槐  今日俸錢過十萬  與君營奠復營齋


vcf attachment

2009-04-11 Thread bill lam
There are vcf attachments with mime type 
text/x-vcard
text/directory

I don't want to look at them, how to configure the mailcap or
otherwise so that vcf will not be shown inline?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩118 王維  終南山
太乙近天都  連山接海隅  白雲迴望合  青靄入看無
分野中峰變  陰晴眾壑殊  欲投人處宿  隔水問樵夫


Re: signature

2009-04-11 Thread bill lam
On Fri, 10 Apr 2009, Ravi Uday wrote:
> The problem is if its a lengthy email thread with many people replying
> ontop of each other, when I now write a mail
> my sig., will be the last line in that email, and doesn';t make sense
> as to where I ended the email

Does it matter if others miss your signature?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩113 杜甫  旅夜書懷
細草微風岸  危檣獨夜舟  星垂平野闊  月湧大江流
名豈文章著  官應老病休  飄飄何所似  天地一沙鷗


Re: vcf attachment

2009-04-12 Thread bill lam
On Sun, 12 Apr 2009, Sean Escriva wrote:
> On Sat, Apr 11, 2009 at 06:37:50PM +0800, bill lam wrote:
> > There are vcf attachments with mime type 
> > text/x-vcard
> > text/directory
> 
> make sure your .muttrc auto_view line doesn't have either of those.
> 
> if you .mailcap entry for those items doesn't have 'copiusoutput' it
> shouldn't be displayed inline, regardless of your auto_view setting.
> 

my .muttrc and .mailcap do not contain them. But system default
/etc/mailcap does contain lines for text/* 

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩015 王維  青谿
言入黃花川  每逐青谿水  隨山將萬轉  趣途無百里  聲喧亂石中  色靜深松裡
漾漾汎菱荇  澄澄映葭葦  我心素已閒  清川澹如此  請留盤石上  垂釣將已矣


Re: vcf attachment

2009-04-13 Thread bill lam
On Mon, 13 Apr 2009, Christian Ebert wrote:
> * bill lam on Saturday, April 11, 2009 at 18:37:50 +0800
> > There are vcf attachments with mime type 
> > text/x-vcard
> > text/directory
> > 
> > I don't want to look at them, how to configure the mailcap or
> > otherwise so that vcf will not be shown inline?
> 
> text/x-vcard ; cat /dev/null ; copiousoutput
> 
> Of course you still get Mutt's "Autoview using ..."

I'd already tried in my ~/.mailcap and it didn't work.  I can bounce
that mail to you for testing if it is needed.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩200 韓翃  同題仙游觀
仙臺初見五城樓  風物淒淒宿雨收  山色遙連秦樹晚  砧聲近報漢宮秋
疏松影落空壇靜  細草香閑小洞幽  何用別尋方外去  人間亦自有丹丘


Re: vcf attachment

2009-04-13 Thread bill lam
On Mon, 13 Apr 2009, Christian Ebert wrote:
> >> text/x-vcard ; cat /dev/null ; copiousoutput

I finally found how to do it. It need to set auto_view to specifically
handle these mime types to take effect.

auto_view text/html application/x-pgp-message text/directory text/x-vcard


-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩213 李商隱  無題二首之二
颯颯東風細雨來  芙蓉塘外有輕雷  金蟾齧璅燒香入  玉虎牽絲汲井迴
賈氏窺簾韓掾少  宓妃留枕魏王才  春心莫共花爭發  一寸想思一寸灰


Re: html problem

2009-05-22 Thread bill lam
On Fri, 22 May 2009, Dave Feustel wrote:
> A couple of people send me email in html format.
> It used to be that if I typed 'v', selected the last
> attachment and then typed CR, firefox would be activated
> and then display the html. But then something changed
> and, instead of firefox, emacs started displaying the
> raw html. How do I get mutt to activate firefox instead
> of emacs? Or is there some other problem?

You may create if not exist the file ~/.mailcap and add a line
something like this

text/html; firefox %s

Hope this help,

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩112 杜甫  別房太尉墓
他鄉復行役  駐馬別孤墳  近淚無乾土  低空有斷雲
對棋陪謝傅  把劍覓徐君  唯見林花落  鶯啼送客聞


Re: handling very large mailboxes

2009-05-31 Thread bill lam
On Sun, 31 May 2009, James wrote:
> By large I'm talking about, uhhh, ~7000 emails. More or less.

My imap account in gmail have over 3 message, and also a local
maildir mailbox for rss having over 8 message. They need about 10
to 30 seconds to initial cache checking.

FYI

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩259 盧綸  塞下曲四首之四
野幕蔽瓊筵  羌戎賀勞旋  醉和金甲舞  雷鼓動山川


Re: handling very large mailboxes

2009-05-31 Thread bill lam
On Sun, 31 May 2009, James wrote:
> Bill, are you saying that after the initial 30 second process for your
> Gmail, everything loads up instantly (specific email messages, etc.)
> afterwards?

Since only headers are downloaded, new message take time to download
when actually first read the message. Afterwards that message will be
inside body cache.  When mailbox is closed by network disconnection
then it needs initialisation again.  Apart from that, there is no
difference from a local mailbox retrieved from pop3.  I guess this
should be the normal scenario.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩017 王維  西施詠
艷色天下重  西施寧久微  朝為越溪女  暮作吳宮妃  賤日豈殊眾  貴來方悟稀
邀人傅脂粉  不自著羅衣  君寵益嬌態  君憐無是非  當時浣紗伴  莫得同車歸
持謝鄰家子  效顰安可希


Re: handling very large mailboxes

2009-05-31 Thread bill lam
On Sun, 31 May 2009, James wrote:
> Bill,
> 
> What do you have your $mail_check set to?
> 
> If I set it to something rather low (15), mutt becomes extremely slow.

This is the relevant portion of my muttrc

# activate TLS if available on the server
set ssl_starttls=yes
# always use SSL when connecting to a server
# set ssl_force_tls=yes
# Don't wait to enter mailbox manually
#unset imap_passive
# Automatically poll subscribed mailboxes for new mail (new in 1.5.11)
set imap_check_subscribed=yes
# Reduce polling frequency to a sane level
set mail_check=300
# And poll the current mailbox more often (not needed with IDLE in post 1.5.11)
set timeout=300
# keep a cache of headers for faster loading (2.5.9+?)
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.certs
set message_cache_clean=yes
#
# Display download progress every 100K
set net_inc=100
set read_inc=2000   # How often to update the mailbox reading counter
set write_inc=500   # How often to update the mailbox writing counter
#


-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩191 杜甫  詠懷古跡五首之二
搖落深知宋玉悲  風流儒雅亦吾師  悵望千秋一灑淚  蕭條異代不同時
江山故宅空文藻  雲雨荒臺豈夢思  最是楚宮俱泯滅  舟人指點到今疑


Re: [ANNOUNCE] 1.5.20 released

2009-06-14 Thread bill lam
> Mutt 1.5.20 is out at the usual locations. This release contains an

After hg pull and update. It failed to make or even make clean with error
message.

make: *** No rule to make target `m4/libgnutls.m4', needed by
`Makefile.in'

I can build earlier 1.5.19 version without problem. Any idea how to
fix it?

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: [ANNOUNCE] 1.5.20 released

2009-06-14 Thread bill lam
On Sun, 14 Jun 2009, Brendan Cully wrote:
> Silly autoconf. Try:
> autoreconf -i
> ./config.status --recheck
> ./config.status

I tried

$ autoconf -i ./config.status 
/usr/bin/m4:aclocal.m4:917: cannot open `m4/libgnutls.m4': No such file or 
directory
autom4te: /usr/bin/m4 failed with exit status: 1

$ ls m4
codeset.m4  funcdecl.m4  gettext.m4  gpgme.m4   iconv.m4  Makefile.am  
README
curslib.m4  funcs.m4 glibc21.m4  gssapi.m4  lcmessage.m4  progtest.m4  
types.m4

Apparently that libgnutls.m4 is not inside hg repository. Where can I get that 
file?

Linux debian 2.6.26-2-amd64 #1 SMP Thu May 28 21:28:49 UTC 2009 x86_64 GNU/Linux

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: [ANNOUNCE] 1.5.20 released

2009-06-14 Thread bill lam
Many thanks for detail steps and explanation. I compiled and am now
using the new mutt.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: [ANNOUNCE] 1.5.20 released

2009-06-15 Thread bill lam
On Mon, 15 Jun 2009, Gerard Robin wrote:
> On Mon, Jun 15, 2009 at 10:25:38AM +0800, bill lam wrote:
> >Date: Mon, 15 Jun 2009 10:25:38 +0800
> >From: bill lam 
> >To: mutt-users@mutt.org
> >Subject: Re: [ANNOUNCE] 1.5.20 released
> >
> >Many thanks for detail steps and explanation. I compiled and am now
> >using the new mutt.
> 
> Did you make a debian package ?
> If yes, can you show your file control ?

I just ./configure && make && make install.  ;-)

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


imap closed after leaving index screen for awhile

2009-07-19 Thread bill lam
I use imap server for gmail. When a read an email in the pager or
composing a long new message and if that takes more than several
minute, the connection to imap server become disconnected.  It seems
the connection to imap can only be maintained alive in the index page.
Is there any workaround?

Another issue not sure related to imap or not.  Suppose I mark read or
delete some messages in the index and press $ to update.  It seems
updated, but if the connection to imap became broken before closing
down mutt. The next time opening the mailbox index it still shows
those messages as new or not deleted.  How to tell mutt to really
flush changes when press $.  I use header and body cache if it
matters.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: imap closed after leaving index screen for awhile

2009-07-21 Thread bill lam
On Tue, 21 Jul 2009, Kyle Wheeler wrote:
> There's no quick answer to this, because it largely depends on why 
> you're being disconnected. For example, it could be that you have 
> imap_idle on, but a very high (or absurdly low) imap_keepalive (IDLE 
> may not be used for some reason while you're composing new messages). 
> What are your timeout- and imap-related settings?
> 

The followings is the imap and cache related entries.  Does the
imap_idle or imap_keepalive need to set explicitly in current HEAD
version of mutt?

# refresh imap inbox
# set imap_keepalive=300

set imap_list_subscribed="yes"

# Don't wait to enter mailbox manually
#unset imap_passive

# Automatically poll subscribed mailboxes for new mail (new in 1.5.11)
set imap_check_subscribed=yes

# Reduce polling frequency to a sane level
set mail_check=300

# And poll the current mailbox more often (not needed with IDLE in post 1.5.11)
set timeout=300

# keep a cache of headers for faster loading (2.5.9+?)
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies

set message_cache_clean=yes

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


  1   2   >