unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Patrick Totzke <patricktotzke@gmail.com>
To: Sepp Tannhuber <sepp.tannhuber@yahoo.de>,
	"notmuch@notmuchmail.org" <notmuch@notmuchmail.org>
Subject: Re: [alot] announcing v0.3.3
Date: Wed, 12 Sep 2012 08:00:19 +0200	[thread overview]
Message-ID: <20120912060019.17430.88468@brick.lan> (raw)
In-Reply-To: <1347379152.53604.YahooMailNeo@web171402.mail.ir2.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 3526 bytes --]

Quoting Sepp Tannhuber (2012-09-11 17:59:12)
> Hi Patrick,
> 
> thank you for answering and for this really good mail client!
pleasure :)

> > One reason I have not bothered to implement this so far is that in the long run,
> > I want to have urwid Tree widgets as top level widgets in thread buffers.
> > This would also allow "move to next sibling/parent" and so on.
> I did not know that it would be so complicated. But nice to hear that development
> is going on.
Yea, trees in urwid are a bit messed up atm. alot's thread buffer uses its own
archaic widget layout, which is eventually to be replaced.

> > So you can of course use this method to set an "Attach" header, but as of now
> > alot will not interpret and remove this when reading the edited text.
> Exactly!

I think this will not so hard to do. Could you open up a feature request issue
on github for this?

> > When you see the "to>" prompt, type in some prefix of a (realname part of a)
> > contact from abook and hit <tab>.
> This was my assumption. But it is not working here. Obviously I make a mistake. Here is my
> config:
> -- BEGIN ~/.config/alot/config --
> theme = solarized_dark
> editor_cmd = 'vim +/^$ "+normal j" "+:set textwidth=80" "+:set ft=mail"'
> 
> [accounts]
> 
>     [[work]]
>         realname = Joseph Tannhuber
>         address = jtannhuber@work.de
>         signature = ~/.signature
>         sendmail_command = msmtp --account=work -t
>         sent_box = maildir:///home/sepp/Maildir/Sent
>         draft_box = maildir:///home/sepp/Maildir/Drafts
>         [[[abook]]]
>             type = abook
> -- END --
> Is there anything missing?

No, that's what I use as well.
Note that this variant assumes your contact file is ~/.abook/addressbook. I'm not aware of format
issues for different abook versions so far. Also note that this will complete case-sensitive
strings of the format "Firstname Lastname <address>".

To debug this you can replay this introspect session and see how far you get.
Start alots python shell (pyshell command), then:

        >>> from alot.settings import settings
        >>> settings.get_addressbooks()
        [<alot.addressbooks.MatchSdtoutAddressbook object at 0x2890a10>, <alot.addressbooks.AbookAddressBook object at 0x2776650>]
        >>> settings.get_addressbooks()[0]
        <alot.addressbooks.MatchSdtoutAddressbook object at 0x2890a10>
        >>> A=settings.get_addressbooks()[0]
        >>> A.get_contacts()
        [... CONTACT TUPLES HERE...]

Hope this helps. Otherwise don't hesitate to open a bug report on github.

> By the way: Is it possible to set the X11 urgency hint flag when new mail arrives? In principle
> one can use the visual bell in the terminal. Then alot must only invoke a shell command:
>   echo -e "\b"

Well, alot does not pull your mails itself, so has no means of knowing when new mail arrives.
I personally use a mail indicator widget I wrote for my window manager that periodically
checks the notmuch index for new mail: http://awesome.naquadah.org/wiki/Notmuch_mail_integration

Alot can of course fire shell commands. What it is lacking at the moment is the ability to periodically
fire custom (alot-)commands. This feature would not be hard to implement, but so far I did not bother
to do so as I considered mail-fetching not part of alots responsibility.
But you're not the first one to want this, so I guess it'd be worth it.

Cheers,
/p

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAlBQJPMACgkQlDQDZ9fWxarsEgCdECmuKvUzDiZS4ChnDYl3PFXc
htEAnRf71MKbfUB7hsb2bspxjL68cFLj
=aVya
-----END PGP SIGNATURE-----

  reply	other threads:[~2012-09-12  6:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-09 15:34 [alot] announcing v0.3.3 Patrick Totzke
2012-09-10 17:55 ` Sepp Tannhuber
2012-09-11  7:47   ` Patrick Totzke
2012-09-11 15:59     ` Sepp Tannhuber
2012-09-12  6:00       ` Patrick Totzke [this message]
2012-09-12  7:33 ` Christophe-Marie Duquesne
  -- strict thread matches above, loose matches on Subject: below --
2012-09-12 14:17 Sepp Tannhuber
     [not found] ` <20120912184907.15407.89499@brick.lan>
2012-09-12 19:24   ` Joseph Tannhuber
2012-09-13 21:15 ` Sepp Tannhuber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120912060019.17430.88468@brick.lan \
    --to=patricktotzke@gmail.com \
    --cc=notmuch@notmuchmail.org \
    --cc=sepp.tannhuber@yahoo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).