Re: EMACS error "Package html2text is obsolete"

2018-11-05 Thread Ralph Seichter
* Istvan Marko:

> It defaults to shr as long as emacs was compiled with libxml.

Thanks Istvan, that was the clue I needed. I rebuilt EMACS using libxml2
and now rendering HTML works.

-Ralph
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: EMACS error "Package html2text is obsolete"

2018-11-05 Thread Istvan Marko
Tomi Ollila  writes:

>> When I open a HTML message in the EMACS UI, the error message "Package
>> html2text is obsolete!" is displayed. Is it possible to configure
>> Notmuch to use SHR/EWW instead of html2text?
>
> You probably have somewhere something like:
>
> (setq mm-text-html-renderer 'html2text)
>
> ?
>
> If so, drop that.
>
> (then, it should default to 'shr since emacs 24...)

It defaults to shr as long as emacs was compiled with libxml. Otherwise
it tries to find various external commands, html2text amongst them. So I
guess Ralph could also be running an emacs install built without libxml
support.

(defcustom mm-text-html-renderer
  (cond ((fboundp 'libxml-parse-html-region) 'shr)
((executable-find "w3m") 'gnus-w3m)
((executable-find "links") 'links)
((executable-find "lynx") 'lynx)
((locate-library "html2text") 'html2text)
(t nil))
...
)

-- 
Istvan
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: EMACS error "Package html2text is obsolete"

2018-11-05 Thread Tomi Ollila
On Sat, Nov 03 2018, Ralph Seichter wrote:

> Hello list,
>
> I tried to access https://notmuchmail.org/pipermail/notmuch/ several
> times today, but it always resulted in a connection error, so I am
> now trying the mailing list.
>
> When I open a HTML message in the EMACS UI, the error message "Package
> html2text is obsolete!" is displayed. Is it possible to configure
> Notmuch to use SHR/EWW instead of html2text?

You probably have somewhere something like:

(setq mm-text-html-renderer 'html2text)

?

If so, drop that.

(then, it should default to 'shr since emacs 24...)

>
> -Ralph
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: How do you sync your mail constantly?

2018-11-05 Thread Tomas Nordin
Hello Vika

Vika Shleina  writes:

> Hello list! I encountered a bit of an UX issue, I think. How do you
> synchronize mail constantly and index it with notmuch? 

I use offlineimap for syncing. Works perfect for me. I am syncing two
mail accounts this way, using some mail service providers. Offlineimap
works by keep running and I have it configured to sync every 4 minutes.
Then I have a hook (postsynchook) in the offlineimap config that calls a
script where I index and tag stuff with notmuch. It shouldn't be
difficult to move messages between folders during that script, I guess
before indexing with notmuch.

> My current setup is mbsync in pre-hook, then post hook: alot + alot
> move-mode + mbsync + notifymuch. All of this is run manually. The thing
> is - I need to sync all folders since I move mails (so my INBOX would
> not get clogged by mailing list messages when I'm viewing it on mobile).

I do some refiling of mailing-list items, but semi-manually. I have
key-bindings to mark messages with a tag 'rfile' and then in the 'hello'
buffer I have a another key-binding to trigger the actual move between
folders. I put those list-messages in a folder 'archive' which is not
synced and hence gets deleted from server. (Not sure if this was also
your concern but anyway).

Happy Notmuching
--
Tomas
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch