Re: Displaying mails in thread mode

2008-11-26 Thread Anders Karlsson
* Jaime Tarrant <[EMAIL PROTECTED]> [20081126 07:59]:
> * Chengqi(Lars) Song ([EMAIL PROTECTED]) wrote:
> > Hello,
> > 
> > How to display mails in thread mode like Gmail does? Could you paste
> > your thread-mode related settings? Thanks.
> > 
> > Best
> > Lars
> >
> Hi Lars, 
> 
> From within mutt, you can change the mail sort order by pressing "o" and then
> "t" for threads, or "d" for date received - there are many other options too.
>
> You can also configure default behaviour in your .muttrc:
> 
> Set the default sort order (will apply to all folders/mailboxes):
> 
>   folder-hook .  set sort=threads
> 
> To set a folder/mailbox specific one:
> 
>   folder-hook "folder-name" set sort=date-received

This was talked about on mutt-dev in the last day or two. The advise
then was:

set sort=threads
set sort_aux=last-date

I dug the following out and is using this myself on 1.5.18

# sort by threads
set sort=threads
# sort threads on newest received message in thread
set sort_aux=reverse-last-date-received

This makes it behave quite similar to GMail. You can of course make
these a folder-hook if you like.

HTH,

-- 
Anders Karlsson <[EMAIL PROTECTED]>
All-Round Linux Tinkerer & RHCE


Re: Customize To: field

2008-11-17 Thread Anders Karlsson
* Michael Elkins <[EMAIL PROTECTED]> [20081118 06:47]:
> On Mon, Nov 17, 2008 at 09:32:52PM -0800, Brendan Cully wrote:
> > Seems fine. Does anyone object?
> 
> I think this makes sense.  The user is already requesting that it be
> displaying this way in the index, so it should not be a problem to
> display it this way when replying. 
> 
> me

Will this patch apply to 1.5.18 and will it be included in 1.5.19?
Also, when is 1.5.19 due? :)

Thanks!

-- 
Anders Karlsson <[EMAIL PROTECTED]>
All-Round Linux Tinkerer & RHCE


Re: From variable and multiple account

2008-11-16 Thread Anders Karlsson
* Alberto Rizzi <[EMAIL PROTECTED]> [20081116 21:51]:
> Anders Karlsson ha scritto:
[snip]
> > The way I have done it, because I use maildir's (through offlineimap)
> > under ~/Mail, my folder-hook's are simply
> > 
> > folder-hook  set from="[EMAIL PROTECTED]"
> > folder-hook  set from="[EMAIL PROTECTED]"
> > folder-hook  set from="[EMAIL PROTECTED]"
> > 
> > I have not tried this with GMail account or similar yet, but if I get
> > a chance to, I'll let you know what I find.
> > 
> 
> Under each account I have several folders. In this mailinglist account
> (fastmail) I have 10 folder, one for each mailing list I am subscribed
> to. I don't want to write a folder hook for each folder

I have subfolders too, and I need only enough of a pattern that the
path is unique and the from field is set correctly.

In ~/Mail, I have foldername1, foldername2 and foldername3, underneath
each of those, there is INBOX and various other folders as per what is
on each IMAP server that offlineimap sync's in. In my "foldername3" I
have mailing list subscriptions to among other things this list.

Hope this helped,

-- 
Anders Karlsson <[EMAIL PROTECTED]>
All-Round Linux Tinkerer & RHCE


Re: From variable and multiple account

2008-11-16 Thread Anders Karlsson
* Alberto Rizzi <[EMAIL PROTECTED]> [20081116 20:53]:
> I'm not new to mutt but only now I have time to try to solve some
> problems with mutt, problems that I have since I use mutt.
> This is the first of a long series of email.
> 
> I have four imap accounts (personal, 2 university, mailing list) and I
> want to use four different "Form:" header depending on the folder I am
> in. In thunderbird I can configure a different From: addresse for each
> account and then when I compose an email, it choose the correct sender
> address based on the selected folder.
> 
> How can I do this with mutt?
> account-hook get executed only the first time I open a folder on that
> account, so if I open the inbox on personal account, then inbox on uni
> account and then again inbox on personal account, this time the account
> hook doesn't get run and the from variable has the value from the uni
> account.
> 
> Maybe I can use a folder-hook but how can I create the correct regexp?
> How?
> 
> I use mutt 1.5.18, reverse_name=no, realname should be always the same
> for each account, I want to change only the from variable.

The way I have done it, because I use maildir's (through offlineimap)
under ~/Mail, my folder-hook's are simply

folder-hook  set from="[EMAIL PROTECTED]"
folder-hook  set from="[EMAIL PROTECTED]"
folder-hook  set from="[EMAIL PROTECTED]"

I have not tried this with GMail account or similar yet, but if I get
a chance to, I'll let you know what I find.

-- 
Anders Karlsson <[EMAIL PROTECTED]>
All-Round Linux Tinkerer & RHCE


Re: Unicode and Mutt

2008-11-03 Thread Anders Karlsson
* Dave Feustel <[EMAIL PROTECTED]> [20081103 14:03]:
> I saved a few messages to mutt folders that had Russian or Asian
> Characters in the subject line. Now when I look at those saved messages
> the Russian/Asian characters are no longer displayed. Is there any way
> to make mutt work with UTF-8 so that email message text does not get
> screwed up?
> 
> Thanks.
> 

mutt (at least the version I have) works fine with Unicode characters
as long as your terminal and LANG settings handle it. I run mutt in
urxvt, and with the font "xft:DejaVu Sans Mono-10". This does display
most kanji, chinese and cyrillic characters I have come across. LANG
is set to en_GB.utf8.

HTH,

-- 
Anders Karlsson <[EMAIL PROTECTED]>
All-Round Linux Tinkerer & RHCE


Re: synchronization of two maildirs

2008-10-28 Thread Anders Karlsson
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [20081029 02:03]:
> Andrew Haninger [EMAIL PROTECTED] wrote:
> > On Tue, Oct 28, 2008 at 5:53 PM,  <[EMAIL PROTECTED]> wrote:
> > > So I am looking at programs that would synchronize two maildirs.
> > Correct me if I'm wrong, but isn't maildir just a directory of tiny
> > files, each one an email?
> > 
> > What's wrong with rsync?
> 
> If I read and delete an email from my laptop, I would like it to be
> deleted at the desktop too. For that, I need to run rsync otherway but
> that could delete the new mail arrived at the desktop.

As others have pointed out - offlineimap is your best bet here. If you
need help configuring it, drop me a line off-list. I run it between
three different computers, keeping mail in sync.

-- 
Anders Karlsson <[EMAIL PROTECTED]>
All-Round Linux Tinkerer & RHCE


Re: Rolling in sidebar, other mutt-ng type bits?

2008-10-28 Thread Anders Karlsson
* Derek Martin <[EMAIL PROTECTED]> [20081028 21:07]:
> On Sun, Oct 26, 2008 at 11:46:38AM +0100, Anders Karlsson wrote:
> > As long as you specify your mailfolders with "mailboxes", you can use
> > "c" or "y" to change to a folder with new mail or get quick overview
> > of the folders with new mail. You just won't see how many unread there
> > are - but do you really care about that?
> 
> Yes?  Sometimes? :)

I used to think I did. Until I could really not be bothered with that
detail any more. I use Sieve server-side to filter out in folders on
my private mail accounts, and my work account is "all in one bucket"
because it's all important.

I action and archive pretty much everything at once if I can,
otherwise I Flag it and I have a push command to set a view filter on
the INBOX. My inbox is my ToDo list pretty much.

"How many unread do I have" lost importance once I were receiving
several hundred e-mails a day and it instead became important to
quickly be able to scan subject lines and decide - "keep, action,
flag, archive or delete?"

procmail or Sieve to slice and dice your mail into folders, and then
you can check with 'y' which ones (and you then know what's important
and what's not) has new mail.

I still hear your point however, so - as you said - the point is not
lost on me. :)

> > The sidebar patch, which I did use for a while, was quickly discarded
> > for eating up screen realestate I could ill afford to be without. And
> > if you keep hiding the sidebar, why bother patching it in in the first
> > place?
> 
> While your point is not lost on me (i'm a screen real estate monger
> too), that seems like a silly argument against the feature...  A lot
> of folks I work with use MS Outlook (and for that matter, almost
> everything they use) in fullscreen mode, and switch back and forth
> with alt-tab -- even when they're using larger resolution external
> monitors.  Same goes for some (but a much smaller percentage of) Linux
> users, using GUI mail applications.  Screen real estate is not much of
> a limiting factor these days...  You have many options, e.g. make your
> font smaller, minimize apps or hide them under other ones, get a
> bigger (or another) monitor, etc.

My usecase is - I work in technical support, I travel to visit
customers regularly and I don't want a luggable laptop just to get big
screen. I have a 12.1" screen, 1024x768, and that will have to do.
I also use my terminal window maximised and need, due to eyesight, to
use a 11pt font. I'd love to use 6x12 or 6x10 as I could do years ago,
but that don't work for me anymore.

So - fitting things in on the screen is still an issue. As long as the
patch is fixed to address the issues that were highlighted by
developers and it's not on by default, then I have no objections to it
(because I'll still never see it).

> I have always wanted mutt to have a 3-paned design, much like most any
> modern GUI-oriented mail reader.  I use wide windows mainly so I can
> see more of the subject line in the index, so I would want a top
> pane which is the full width of the window, to see a partial index
> view.  Then the remaining lower portion I would split between the side
> bar, and the mutt viewer window.  If someone were to reimplement the
> sidebar patch, I would hope that configuration were possible, and I
> would very eagerly await such functionality smoothly integrated into
> Mutt. :)

I'm one of those dino's that like mutt, screen, irssi, emacs and
elinks. GUI e-mail readers have always bugged me something chronic,
and the UI of them seems to get in the way more often that they help
you. The 3-pained design - yeah, might work occasionally, but I always
end up back in mutt because "it just works" and I've now stopped
trying to use the GUI ones.

The rest of the point you make - I'm totally cool with. :)

Cheers!

-- 
Anders Karlsson <[EMAIL PROTECTED]>
All-Round Linux Tinkerer & RHCE


Re: Rolling in sidebar, other mutt-ng type bits?

2008-10-28 Thread Anders Karlsson
* Derek Martin <[EMAIL PROTECTED]> [20081028 20:48]:
> On Sun, Oct 26, 2008 at 11:31:20PM +1300, Chris Bannister wrote:
> > So pressing 'c' doesn't bring up next mailbox with new mail?
> 
> The answer is maybe -- it depends on what mail folder format you're
> using, and also what exactly you consider to be "new" mail.  If you're
> using mbox folders, and you've visited a folder that has new mail in
> it, then leave, mutt will no longer consider that mail to be new
> (regardless of how you have the relevant variables set), and won't
> show you that folder again until additional messages are delivered to
> it.  By contrast, if you are using maildir, mutt WILL consider that
> mail to be new until you've actually read it (and it's therefore been
> moved to the "cur" directory of the maildir folder).

mutt 1.5.18; use "set nomark_old"

Works with imap(s), maildir and mbox. I have it running here. ;-)
What I have not tried is MH folders, because I have never had a reason
to.

-- 
Anders Karlsson <[EMAIL PROTECTED]>
All-Round Linux Tinkerer & RHCE


Re: Rolling in sidebar, other mutt-ng type bits?

2008-10-26 Thread Anders Karlsson
* tchomby <[EMAIL PROTECTED]> [20081025 13:04]:
> It's a shame the sidebar patch is so problematic. What do mutt users
> who don't use the sidebar patch do instead? The aim is to have a list
> of folders, which I know mutt can do, and for each folder say how many
> emails are in it and how many of those are unread, or at least say
> which folders contain new mail. It's to solve the problem where you
> are subscribed to a large number of email lists, for example, and
> filter mail from each list into its own folder, then you don't want to
> have to open each folder just to see if there's anything new in it.
> What's the best solution in mutt?

As long as you specify your mailfolders with "mailboxes", you can use
"c" or "y" to change to a folder with new mail or get quick overview
of the folders with new mail. You just won't see how many unread there
are - but do you really care about that?

The sidebar patch, which I did use for a while, was quickly discarded
for eating up screen realestate I could ill afford to be without. And
if you keep hiding the sidebar, why bother patching it in in the first
place?

/Anders


Re: email chess

2008-09-06 Thread Anders Karlsson
* Russell L. Harris <[EMAIL PROTECTED]> [20080906 07:43]:
> Years ago, running Window$, I used an application which automated the
> process of playing chess via email.  I don't remember the details, but
> an email with a chess game file (.pgn ?) would launch an application
> similar to xboard, and the chess application would create a game file
> (.pgn ?)  for mailing.  The automation did away with almost all of the
> hassle.
> 
> Is there a Linux package (or perhaps an extension to mutt) which
> facilitates playing chess via email?

http://linux.about.com/library/cmd/blcmdl6_cmail.htm seems to match
what you want to do. Comes with the xboard package according to the
page.

http://www.develia.org/documents.php?l=2&f=3&p=chessonlinux should
also give you something to read.

IIRC, when I tried to do this a couple years back, I ended up with
cmail and xboard as the docs in the package was enough to get me going
relatively easy.

> 
> Alternatively, is there a good HOWTO on email chess?
> 
> RLH
> 

HTH,

-- 
Anders Karlsson <[EMAIL PROTECTED]>
All-Round Linux Tinkerer & RHCE