Re: Change list of folders accessible via 'c' or 'y' for multiple IMAP accounts

2012-02-24 Thread Oon-Ee Ng
On Thu, Feb 23, 2012 at 3:11 PM, Oon-Ee Ng ngoonee.t...@gmail.com wrote:
 Hi, I'm using dovecot locally on my laptop (with offlineimap) for
 multiple accounts (name and name2). Just setting mutt up now for that
 (previously using evolution).

 I'm using folder-hooks to set the following to the appropriate values:-
 set from = ngoonee.t...@gmail.com
 set imap_user=name
 set imap_pass=password
 set realname = Ng Oon-Ee
 set folder=imap://name@localhost/
 set spoolfile=+/

 for both accounts

 Works fine for the 'default' account which I start in. However when I
 change account using c - imap://name2@localhost, the folders list
 expands to include all the folders in account 'name' and 'name2' while
 the IMAP folders list (accessible using 'y') shows the folders of the
 previous account (name).

 I've tried using unmailboxes, but the lists don't change in content
 (trying to access folders from the wrong account gives a 'does not
 exist' error though). Am stumped at the moment, what am I missing?

Trying to script workarounds using macros and having problems with a
peculiar (to my mind) behaviour.

In the pager and index, change-folder suggests a path, but if I
start typing i-m-a-p-:-/-/ it will show imap://

However, in the browser, change-folder appends what I type to the
current path, so for example it will first show:-

Chdir to: imap://name@localhost/

and after calling my macro which simply runs
change-folderimap://name2@localhost the result will be
Chdir to: imap://name@localhost/hange-folderimap://name2@localhost

It seems to me to be buggy in two ways, first that change-folder is
spelt out in that way, and secondly that the default behaviour is
auto-appending. Am I doing something wrong or is this a bug?


Viewing html documents

2012-02-24 Thread Ranousse
On Debian squeeze (Mutt 1.5.20), I used to have the following line in
mutt mailcap file
   text/html; w3m '%s'; nametemplate=%s.html

Thus if I received an html message that was not readable by mutt, I went
to the attachment window and could see the message with w3m.

After an upgrade to Mutt 1.5.21 (Debian backports), it does not work
anymore. Pressing enter in the attachment window shows the html file as
a text file (source file).


Seeing this, I tried another solution.
Add in .muttrc:
  auto_view text/html

and in mailcap file:
text/html; w3m -I %{charset} -T text/html; copiousoutput

It works. But I'm not fully satisfied by this solution.
Many people (the ones using gmail for instance) send html messages that
are in fact almost text files. Because they use standard gmail interface
with default configuration that I guess has html enabled by default.
These messages can be read by mutt without the use of a browser with a
better rendering I think (  for cited messages are more clearly shown
for instance, and it avoids the yellow message at the beginning about
using auto_view). So I preferred my old configuration (use mutt to read
html message by default, and a browser only when the email is not
readable).


Is there still a way to achieve this ? Or better solutions maybe...

Thank you.


Re: Viewing html documents

2012-02-24 Thread Paul

On Friday, 24 February, 2012 at 11:14:04 GMT, Ranousse wrote:

After an upgrade to Mutt 1.5.21 (Debian backports), it does not work
anymore. Pressing enter in the attachment window shows the html file as
a text file (source file).


Try 'm', for view-mailcap, instead of enter.

--

.


Re: Viewing html documents

2012-02-24 Thread Ranousse
On Fri, Feb 24, 2012 at 12:01, Paul wrote:
 On Friday, 24 February, 2012 at 11:14:04 GMT, Ranousse wrote:
 After an upgrade to Mutt 1.5.21 (Debian backports), it does not work
 anymore. Pressing enter in the attachment window shows the html file as
 a text file (source file).
 
 Try 'm', for view-mailcap, instead of enter.
 
 -- 
 
 .

Thanks.