Re: Mailing list folders

2016-11-02 Thread Chris Green
On Wed, Nov 02, 2016 at 08:08:32AM +0500, Mihail Konev wrote:
> Hi list,
> 
> What is the supposed way of keeping messages from a mailing list in a
> dedicated folder?
> 
> Right now I'm using
> 
> folder-hook +INBOX 'macro index \Cw "T~h \"To: 
> mailing-list\";s\Cu=mailing-list$"' 
> 
> 
> i.e. tag everything "To: mailing-list", then move all tagged messages to 
> "=mailing-list" folder.
> 
> Which works for a single list.
> 
> But this looks improper, unreliable,
> and unefficient (has to purge messages for every list; requires to press
> Ctrl-W).
> 
> I tried appending a second "T~h...$" for a different list,
> but this shuffled message destinations (were it typos, bugs, or whatever).
> 
> This just seems not to be the intended way.

I have a dedicated Python script (run from ~/.forward) to do this.
It's designed so that simply adding an entry to a config file for a
mailing list does everthing that's required:-
Directs mailing list messages to a dedicated folder
Creates an alias for sending mail to the mailing list
Adds the list to 'subscribe' and 'list' in muttrc
Does various extras like removing [mailing list name] from the subject line

-- 
Chris Green


Re: Mailing list folders

2016-11-02 Thread Darac Marjal

On Wed, Nov 02, 2016 at 08:08:32AM +0500, Mihail Konev wrote:

Hi list,

What is the supposed way of keeping messages from a mailing list in a
dedicated folder?

Right now I'm using

 folder-hook +INBOX 'macro index \Cw "T~h \"To: 
mailing-list\";s\Cu=mailing-list$"'

i.e. tag everything "To: mailing-list", then move all tagged messages to 
"=mailing-list" folder.

Which works for a single list.

But this looks improper, unreliable,
and unefficient (has to purge messages for every list; requires to press
Ctrl-W).

I tried appending a second "T~h...$" for a different list,
but this shuffled message destinations (were it typos, bugs, or 
whatever).


This just seems not to be the intended way.


As noted by other people, this is better suited to your MDA (mail 
delivery agent). Whether that be procmail or mailfilter or sieve or 
whatever, these are the basic rules that I use:


if header "list-post" exists and matches /if header "list-id" exists and matches /<([a-z_0-9-]+)[.@]/ or 
/^\\s*
move it to folder $1

if header "x-list-id" exists and matches /<([a-z_0-9-]+)\./
move it to folder $1

if header "x-mailing-list" exists and matches /\s*([a-z_0-9-]+)@?/
move it to folder $1

if header "x-loop" exists and matches /^\s*(a-z_0-9-]+)@?/
move it to folder $1

if header "from" matches /owner-([a-z_0-9-]+)-outgoing@/ or 
/owner-([a-z_0-9-]+)@/ or if header "Sender" matches 
/owner-([a-z_0-9-]+)@/

move it to folder $1

if header "from" matches /([a-z_0-9-]+)-request@/
move it to folder $1

That seems to cover most mailing lists I'm subscribed to and, in case 
you hadn't worked it out, moves messages into folders based on the 
mailing list's name. Feel free to adapt to your own needs and implement 
however you need to depending on your particular MDA.




--
For more information, please reread.


Re: Mailing list folders

2016-11-02 Thread cs

On 02Nov2016 08:08, Mihail Konev  wrote:

What is the supposed way of keeping messages from a mailing list in a
dedicated folder?

Right now I'm using

 folder-hook +INBOX 'macro index \Cw "T~h \"To: 
mailing-list\";s\Cu=mailing-list$"'

i.e. tag everything "To: mailing-list", then move all tagged messages to 
"=mailing-list" folder.

Which works for a single list.

But this looks improper, unreliable,
and unefficient (has to purge messages for every list; requires to press
Ctrl-W).

I tried appending a second "T~h...$" for a different list,
but this shuffled message destinations (were it typos, bugs, or whatever).

This just seems not to be the intended way.


I've got a python program that watches my (Maildir) inbox, where the mail 
system deposits my messages. I files them according to rules from a config 
file. I just use mutt to visit the places the messages have been filed.

-- Cameron Simpson 


Re: mutt configuring multiple accounts and reading multiple accounts

2016-11-02 Thread ge...@riseup.net
Hi Jude,

On 16-10-30 10:41:03, Jude DaShiell wrote:
> For now, I am reading gmail quite successfully with mutt.  I would
> like to find out how to add more accounts to my .muttrc file and once
> added how to read email from those accounts when other accounts in the
> .muttrc file are not the default account.
> panix.com and comcast.net are two of the additional accounts I'd like
> to be able to read remotely as well as mac.com and yahoo.com.  Where
> should I be reading to find this information?

I'm using screen since a long long time to run multiple mutt instances,
each one with a different account, sharing a common .muttrc, and
multiple "per-instance" .muttrc. If that sounds interesting, have a look
at [1]: A setup similar to mine is described there.

If you are in the need of further details, don't hesitate!

Good luck and all the best,
Georg


[1] http://www.cmdln.org/2008/11/07/how-i-tamed-my-mutt/


signature.asc
Description: Digital signature


Behaviour of viewing an attachment

2016-11-02 Thread Guy Gold
Hi List.

In mutt 1.5.23 (from repo), when I'd like to view a message part
in a browser, I'd type "v", view the attachment menu, etc. 

On mutt from source (1.7.1), that same action won't trigger
firefox, but rather keep viewing the attachment using w3m (which
is great as a default in the pager, but if I'm already in the
attachment menu, it means I'm looking for something extra). 

I've copied /etc/mailcap to $muttHOME/etc.

Here's the debug sequence from 1.7.1

[2016-11-02 08:35:36] Checking mailcap file: /home/guy/.mailcap
[2016-11-02 08:35:36] Checking mailcap file: 
/home/guy/apps/mutt/share/mutt/mailcap
[2016-11-02 08:35:36] Checking mailcap file: /home/guy/apps/mutt/etc/mailcap
[2016-11-02 08:35:36] mailcap entry:
[2016-11-02 08:35:36] mailcap entry:
[2016-11-02 08:35:36] mailcap entry:
[2016-11-02 08:35:36] mailcap entry:
[2016-11-02 08:35:36] mailcap entry:
[2016-11-02 08:35:36] mailcap entry: 
application/vnd.oasis.opendocument.database; soffice --nologo --base '%s'; 
edit=soffic

and from 1.5.23

[2016-11-02 08:32:52] Checking mailcap file: /home/guy/.mailcap
[2016-11-02 08:32:52] Checking mailcap file: /usr/share/mutt/mailcap
[2016-11-02 08:32:52] Checking mailcap file: /etc/mailcap
[2016-11-02 08:32:52] mailcap entry:
[2016-11-02 08:32:52] mailcap entry:
[2016-11-02 08:32:52] mailcap entry:
[2016-11-02 08:32:52] mailcap entry:
[2016-11-02 08:32:52] mailcap entry:
[2016-11-02 08:32:52] mailcap entry: 
application/vnd.oasis.opendocument.database; soffice --nologo --base '%s'; 
edit=soffic

any ideas ?
Thank you. 
-- 
Guy Gold
Cambridge, Massachusetts


Re: Mailing list folders

2016-11-02 Thread Grant Edwards
On 2016-11-02, Mihail Konev  wrote:

> What is the supposed way of keeping messages from a mailing list in a
> dedicated folder?

I used to use procmail for this.

Now I use slrn and news.gmane.org instead.

-- 
Grant Edwards   grant.b.edwardsYow! Let's send the
  at   Russians defective
  gmail.comlifestyle accessories!