Re: Professionnel mails not threaded

2023-08-20 Thread steve

Hello,

Le 19-08-2023, à 17:52:26 +0200, Francesco Ariis a écrit :


Hello Steve,

Il 19 agosto 2023 alle 17:31 steve ha scritto:

I suspect my company's emails don't respect RFC xy, but I would expect
mutt to detect when a email is a reply to an email and not a new email,
and thus thread it to the original email.


Check the docs for `strict_threads` and `sort_re` and let us know if that
helps.

`strict_threads` in particular should be `no` by default.


And it wasn't in my config (don't ask me why). Defining to no helped.

Thanks !

s.


Professionnel mails not threaded

2023-08-19 Thread steve



Hi,

When my colleagues reply to one of my emails, the are never linked to my
original email. Mutt just list them as if they were new, like this:

- email1 from me
- other emails
- reply to email1

I would expect to have

- email1 from me
  -> reply to my email1
- other emails

I suspect my company's emails don't respect RFC xy, but I would expect
mutt to detect when a email is a reply to an email and not a new email,
and thus thread it to the original email.

(Not sure I'm very clear, English is not my mother tongue)


So I'm wondering if I'm doing something wrong with mutt, or is it on my
company's side that there's something that could be improved.

Thank you.

steve


[SOLVED] Re: filter on date

2023-06-02 Thread steve

Brilliant! Problem solved.

Thanks to every one who helped me.

  ~ steve ~ 



Le 02-06-2023, à 08:33:25 -0500, Tim Chase a écrit :


On 2023-06-02 14:06, steve wrote:

>You could filter on the Date: header with a regex.
> ~h'Date:.* [1] [A-Z]'

Now how could I invert this in order to delete all other messages?


I'd likely tag *all* messages:

 shift+t
 .
 enter

then control+t to untag the pattern above

 control+t
 ~h'Date:.* [1] [A-Z]'
 enter

which should leave the unwanted messages tagged, letting you use

 semicolon
 d

-tkc


Re: filter on date

2023-06-02 Thread steve

Le 02-06-2023, à 17:33:24 +0530, Bhaskar Chowdhury a écrit :


How could I do?



How about running it on every month end, so you don't have to run it like for
whole year


That could also be an approach.


(that was you were trying, right?)


Right. I have so many files that I just wanted to make some room now. I
can live with a couple of months of files also (did that for many
years).


If you want to keep only the 1st date pdf and remove rest of days in month
pdfs then you can simply do so , by doing

~d02/month/year-30/month/year ...likewise for the month having 31 days too.


Yes, obvious when I think about it. But I didn't want to do that for
every months of every year. So solution by Ofer is clearly very handy.


You can easily create an macro to bind it to a key to invoke that,so you
don't have to remember the syntax.


Sure.



Not sure, if it solve your owes. Or probably I misread your need.


No you didn't, thank you very much.

Best,

s.



Re: filter on date

2023-06-02 Thread steve

Le 02-06-2023, à 07:57:27 -0400, Ofer Inbar a écrit :


You could filter on the Date: header with a regex.
 ~h'Date:.* [1] [A-Z]'


Blinking fast, thanks !

Now how could I invert this in order to delete all other messages?

s.


filter on date

2023-06-02 Thread steve

Hi,

I receive every day pdf reports. I have now more than 1800 mails, which
takes a lot of space. Every first day of the month, the report is a
summary of the month, and I would like to only keep those one.

I know how to filter mail using ~d. But that's only for one specific
day. I tried something like

~d 1/*/* but got 'invalid month */*'

Also tried

~d 1/[1-12]/2022 but got 'invalid month [1-12]/2022'

How could I do?

Thanks,

s.


Re: unset email address for reply

2023-05-16 Thread steve

Dear Sander,

Thank you for your reply. I have followed your advice and added

folder-hook . unmy_hdr From:

in all and every files containing a folder-hook.

As of today, it seems that that solved the problem.

Thank you!

Have a nice day,
steve


Le 05-05-2023, à 16:40:34 +0200, Sander Smeenk via Mutt-users a écrit :


Quoting steve (dl...@bluewin.ch):


This only happens for particular folders, not all.


So this probably is a folder-hook somewhere.

You'd start by grep'ing for 'hook' or 'my_hdr From' in your configs.

I have a set of folder-hooks, but the first one is always:

| folder-hook . unmy_hdr From:

And following that are specific folder hooks e.g.:

| folder-hook .lists.mutt-users my_hdr From: Sander Smeenk 


The "." matches any folder i think, so it always unsets the header,
unless a specific match is found and it sets the header again.
I believe this is how it should work. ;)

HTH,
-Sndr.
--
| [ $[$RANDOM % 6] = 0 ] && rm -rf ~ || echo "You win!"
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7  FBD6 F3A9 9442 20CC 6CD2


unset email address for reply

2023-05-01 Thread steve

Hi,

(sorry for the rather bad subject text, it only shows my clumsy
knowledge of mutt) 


I'm using mutt 2.2.9 on Debian bookworm.

Sometimes, when I reply to a message, the To field shows an email
address taken from another folder where I have a hook. I don't want this
and I don't understand where it is coming from. Here is the path:

1) I go in folder A where I read a message

2) I hit 'c' to go in folder B

3) I read a message and hit 'r' to reply

4) I get correct recipient from folder B and also recipient from folder
   A which I don't want


This only happens for particular folders, not all.

I would like that when I go in folder B, all information from folder A
is forgotten so that when I reply in folder B, only recipient for folder
B is taken into account as well as correct From email address.

I have broken my configuration in many little files where I can fine-tune the
settings. But this was done years ago and I don't remember everything
now. I guess there is an active hook somewhere that brings along the
faulty setting. So my question is what should I look for? I have a
default "global" file that is sourced when going in a particular folder,
and it contains:

# Reset any headers that may have been set in other folder-hooks
unmy_hdr From:
unmy_hdr To:
unmy_hdr Reply-To:
#unmy_hdr Fcc:
#unmy_hdr Return-Receipt-To:
#unmy_hdr Organization:
#unmy_hdr X-URL:

which I would think would do the job, but it doesn't. I also have
several reply-hook, message-hook, etc, set.

Please help me debug this issue, it's driving me nuts.

Thanks you.

s.









Re: sample muttrc file for AOL email...

2023-04-13 Thread Steve Karmeinsky
On Thu, Apr 13, 2023 at 05:26:06AM -0500 or thereabouts, Lester Rees wrote:

>No, Gmail no longer allows Mutt to be used for it.  Google considers it
>to be a "less secure app."  Hence, they do not allow Mutt to be used
>with it.  I have tried and have failed since Google made that change to
>Gmail.

Well that is strange as this email is using mutt and a Google Workspace
account and I'm guessing you're getting it fine (yes you do need an app
password).

ignore *
unignore From:
unignore To:
unignore Reply-To:
unignore Mail-Followup-To:
unignore Subject:
unignore Date:
unignore Organization:
unignore Newsgroups:
unignore CC:
unignore BCC:
unignore Message-ID:
unignore X-Mailer:
unignore User-Agent:
unignore X-Junked-Because:
unignore X-SpamProbe:
set realname = "Steve Karmeinsky"
set from = "st...@gbnet.net"
#set use_from = yes
set envelope_from = yes
set smtp_url = "smtp://st...@gbnet.net@smtp.gmail.com:587/"
set smtp_pass="thisisverysecret"
set imap_user = st...@gbnet.net
set imap_pass="thisisverysecret"
set imap_list_subscribed=yes
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set trash = "=[Gmail]/Bin"
#set trash = "+[Gmail]/Trash"
#set trash = "+Trash"
set ssl_force_tls = yes
set ssl_starttls = yes
set smtp_authenticators = "login"
#set record="+[Gmail]/Sent Mail"
set record=""
# Activate caching, as it can greatly improve speed
set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file=~/.mutt/certificates
set mail_check = 30
set move = no
set imap_keepalive = 900

Seems to work for me

Steve

-- 
NetTek Ltd  UK mob +44 7775 755503
UK +44 20 3432 3735  /  US +1 (650) 423 1390
social id stevekennedyuk
Euro Tech News Blog http://eurotechnews.net


Re: searching across folders using mutt

2022-05-30 Thread steve

Le 30-05-2022, à 14:49:53 -0500, Ranjan Maitra a écrit :


Can mairix and notmuch also search within attachments?


I don't know but after a quick look, it seems that those tools only index
text files. 


Re: searching across folders using mutt

2022-05-29 Thread steve

Hi Greg,

Le dimanche 29 mai 2022 à 23:31, Greg Marks a écrit :



Is there a solution for searching across folders for those of us whose
e-mail is stored in mbox rather than maildir format?


I guess mairix can do that.

See https://gitlab.com/muttmua/mutt/-/wikis/UseCases/SearchingMail


Re: searching across folders using mutt

2022-05-29 Thread steve

Hi Ranjan,

notmuch will do exactly that.

see https://notmuchmail.org/mutttips/

best,

steve

Le 29-05-2022, à 10:40:27 -0500, Ranjan Maitra a écrit :


Dear friends,

I have now been using mutt for about 20 months or so, having graduated from 
sylpheed, and life is generally well, but for one issue, and that is searching 
across folders.

So, suppose I know that I have an email in some folder with "stuff" in the 
subject line. Now, I know how to search this (quite readily) in a folder. But when I do 
not know the folder it is stored in, so far, it has been simply about guessing the right 
folders. Sometimes I get lucky, and sometimes I put it away, and occasionally, I do get 
lucky on a timed-release format, but I was wondering if I can get rid of this reliance on 
luck, as both my years and size of folders go up.

Is there an easy way to do this in mutt? I would like to stick to simple tools 
(and stay in mutt) if possible.

My email is pulled in by fetchmail from a POP3 server (gmx) and processed by 
procmail into folders. I do not use IMAP. I thought I would put this in in case 
it was relevant.

Many thanks again for your suggestions, and best wishes,
Ranjan




Re: mutt 2.2.0 released

2022-02-12 Thread Steve Karmeinsky
On Sun, Feb 13, 2022 at 10:41:03AM +1100 or thereabouts, raf wrote:

> On Sat, Feb 12, 2022 at 01:41:14PM -0800, "Kevin J. McCarthy"  
> wrote:
> > Hello Mutt Users,
> > I'm pleased to announce the release of version 2.2.0.
[snip]
> Thanks so much for all you do.
> It's sad to hear that you'll have
> less time and energy for mutt now.
> I hope all will be well for you.

I would also like to convey thanks for all the hard work Kevin has put
in over the years for a product I could not live without and use daily.

I hope whatever Kevin is working on is a fruitful as mutt has been.

Thanks

Steve

-- 
NetTek Ltd  UK mob +44 7775 755503
UK +44 20 3432 3735  /  US +1 (650) 423 1390
social id stevekennedyuk
Euro Tech News Blog http://eurotechnews.net


Re: Using Gmail IMAP with Mutt

2021-09-03 Thread Steve Karmeinsky
On Thu, Sep 02, 2021 at 07:21:30PM +0200 or thereabouts, Jens John wrote:

> On Thu, 2 Sep 2021, at 19:12, David J. J. Ring, Jr. wrote:
> > What does gmail really want?  Gmail or GMail or something different?
> > Thanks in advance for your replies and help.  I'm sorry I'm confused 
> > but it is confusing.
> Accidentally, I think they changed something because by mbsync config broke 
> some time in August or July.
> I am now using "[Gmail]/All mail" & "[Gmail]/Sent Mail" (sic: yes, mail 
> lowercased and Mail uppercased for the other folder. Previously, I had been 
> using "[Gmail]/All Mail" (sic) (did no longer work).
> If in doubt, I would recommend using Thunderbird or another IMAP tool to 
> check which folders a vanilla gmail account presents. Gmail is only a legacy 
> account for me so I'm not exactly keeping up to date with the service.

In .muttrc I have

set realname = "Steve Karmeinsky"
set from = "st...@gbnet.net"
#set use_from = yes
set envelope_from = yes
set smtp_url = "smtp://st...@gbnet.net@smtp.gmail.com:587/"
set imap_user = st...@gbnet.net
set imap_list_subscribed=yes
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set trash = "=[Gmail]/Bin"
set ssl_force_tls = yes
set ssl_starttls = yes
set smtp_authenticators = "login"
set record=""
# Activate caching, as it can greatly improve speed
set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file=~/.mutt/certificates

Which works for me

Steve

-- 
NetTek Ltd  UK mob +44 7775 755503
UK +44 20 3432 3735  /  US +1 (650) 423 1390
social id stevekennedyuk
Euro Tech News Blog http://eurotechnews.net


Re: Adding text to subject when calling group

2021-06-09 Thread steve

Hello,

Nobody for this one?

I found that I could modify the subject with a folder-hook but that's
only half of the solution since it doesn't take care of the group alias
part.

Any help would be highly appreciated.

Steve

Le 02-06-2021, à 08:54:50 +0200, steve a écrit :


Hi,

In the alias file, I defined several users and with them defined a group
'groupX'. When creating a new message with 'm' and calling 'groupX', I
would like to add a fixed text to the subject line (only when the alias
'groupX' is called').

How could I do that? I failed to find that particular usecase on the
Net.

Thanks

Steve


Adding text to subject when calling group

2021-06-02 Thread steve

Hi,

In the alias file, I defined several users and with them defined a group
'groupX'. When creating a new message with 'm' and calling 'groupX', I
would like to add a fixed text to the subject line (only when the alias
'groupX' is called'). 


How could I do that? I failed to find that particular usecase on the
Net.

Thanks

Steve


signature and alternates

2021-04-07 Thread Steve Karmeinsky
This is my main email, but I have several alternates set-up.

In .muttrc I have

set signature=~/.signature
set realname = "Steve Karmeinsky"
set from = "st...@gbnet.net"
my_hdr X-Organisation: NetTek Ltd

I also have
send-hook . 'unmy_hdr From:'
send-hook . 'unmy_hdr X-Organisation:'
send-hook . 'unmy_hdr Reply-to:'

and then send-hooks with the overrides.

The only thing not working properly is setting the signature back to
normal after replying to an alternate.

Steve

-- 
NetTek Ltd  UK mob +44 7775 755503
UK +44 20 3432 3735  /  US +1 (650) 423 1390
social id stevekennedyuk
Euro Tech News Blog http://eurotechnews.net


Re: Gmail - no authenticators available

2021-02-09 Thread Steve Karmeinsky
On Tue, Feb 09, 2021 at 10:18:08PM +0100 or thereabouts, Øyvind A. Holm wrote:

> On 2021-02-09 12:31:31, Kevin J. McCarthy wrote:
> > On Tue, Feb 09, 2021 at 01:10:17PM -0500, Rob Pyott wrote:
> > > Still getting “no authenticators available” with Gmail.  I’ve 

snip

set realname = "Steve Karmeinsky"
set from = "st...@gbnet.net"
#set use_from = yes
set envelope_from = yes
set smtp_url = "smtp://st...@gbnet.net@smtp.gmail.com:587/"
set smtp_pass="Secret"
set imap_user = st...@gbnet.net
set imap_pass="Secret"
set imap_list_subscribed=yes
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set trash = "=[Gmail]/Bin"
set ssl_force_tls = yes
set ssl_starttls = yes
set smtp_authenticators = "login"
set record=""

Works for me, using GSuite app password

Steve

-- 
NetTek Ltd  UK mob +44 7775 755503
UK +44 20 3432 3735  /  US +1 (650) 423 1390
social id stevekennedyuk
Euro Tech News Blog http://eurotechnews.net


Re: GMail SMTP: no authenticators available?

2021-01-21 Thread Steve Karmeinsky
On Wed, Jan 20, 2021 at 08:26:11PM -0800 or thereabouts, Will Yardley wrote:

> On Wed, Jan 20, 2021 at 04:22:04PM -1000, Baron Fujimoto wrote:
> > The following in my muttrc was used successfully util this problem began:
> > set smtp_url = smtp://u...@example.org@smtp.gmail.com
> Do you have smtp_authenticators (unset by default) set?
> set smtp_url = "smtps://lu...@example.com@smtp.gmail.com"
> set smtp_authenticators = 'gssapi:login'
> Are you using an "app password"? Typically, you'll need to (at least I
> did)
> https://support.google.com/mail/answer/185833?hl=en-GB

I think that's much more likely the issue, though it may need a GSuite
domain administrator to enable the feature for users and then the user
can set one.

Steve

-- 
NetTek Ltd  UK mob +44 7775 755503
UK +44 20 3432 3735  /  US +1 (650) 423 1390
social id stevekennedyuk
Euro Tech News Blog http://eurotechnews.blogspot.com


Re: conditional index_format

2020-06-12 Thread steve

Hi,

Thanks for your answer.

Le 10-06-2020, à 09:58:05 -0700, Kevin J. McCarthy a écrit :


On Wed, Jun 10, 2020 at 04:11:58PM +0200, steve wrote:

When forwarding a message to recipient R, that message is listed as the
author (me) since I defined $index_format with the %n variable. This is
fine when I create a message or reply to a message, but it would be more
convenient to see the recipient's name when I forward a message.

So is it possible to have $index_format reflect this?


Starting in Mutt 1.11.0, there is index-format-hook and the %@name@ 
expando.  See <http://www.mutt.org/doc/manual/#index-format-hook>



Unfortunately, I'm using mutt version 1.10.1 on Debian Buster. So I'll
have to wait to upgrade to Bullseye to take advantage of this new
feature.

Best

Steve


conditional index_format

2020-06-10 Thread steve

Hi,

When forwarding a message to recipient R, that message is listed as the
author (me) since I defined $index_format with the %n variable. This is
fine when I create a message or reply to a message, but it would be more
convenient to see the recipient's name when I forward a message.

So is it possible to have $index_format reflect this?

More precisely, I would like to have

set index_format="%4C %Z %4c %d%-22.27n %2X %s"

when creating and reply to R

and 


set index_format="%4C %Z %4c %d%-22.27t %2X %s"

when forwarding to R.


Not sure I'm clear but that's the idea.

Many thanks.

Steve


Re: [Mutt] Going GUI...er

2020-04-05 Thread steve

Works like a charm.

Thanks Mihai.

Steve


Le 04-04-2020, à 22:30:05 +0200, Mihai Lazarescu a écrit :


On Saturday, April 04, 2020 at 19:18:42 +0200, steve wrote:


Le 04-04-2020, à 09:41:59 +0200, Vegard Svanberg a écrit :

However, I'm increasingly finding myself having to resort to 
various

tricks to deal with HTML only emails (with picture attachments),
calendar invites, and other oddities and awkward stuff people send.


I can display images, read pdf's, etc… but one thing I never managed to do is
open an html file containing images. I mean, I can send the html part to
firefox but the images don't follow.

How do you guys cope with that?


I'm using Christian Ebert's muttils from 
http://www.blacktrash.org/hg/muttils/ with a macro:


macro pager,index,attach M "viewhtmlmsg"

and viewhtmlmsg being a Python script (maybe created by muttils):

#!/usr/bin/python2
# $Id$

from muttils import viewhtmlmsgcommand
viewhtmlmsgcommand.run()

Best,
Mihai


Re: Going GUI...er

2020-04-04 Thread steve

Hi,

Le 04-04-2020, à 09:41:59 +0200, Vegard Svanberg a écrit :


Hi,

I love Mutt.


Me too.


However, I'm increasingly finding myself having to resort to various
tricks to deal with HTML only emails (with picture attachments),
calendar invites, and other oddities and awkward stuff people send.


I can display images, read pdf's, etc… but one thing I never managed to do is
open an html file containing images. I mean, I can send the html part to
firefox but the images don't follow.

How do you guys cope with that?

Thx


GSuite

2019-06-24 Thread Steve Karmeinsky
Might be useful for some folk using GSuite.

I was struggling to get deleted emails actually deleted (they had various
tags applied by GSuite/Gmail and wouldn't delete, so using something
Mail.app on Mac you'd still see them - under Important).

Anyway the following solved things

set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set trash = "=[Gmail]/Bin"

and seems to be expected bahaviour (at least it works for me)

Steve

-- 
NetTek Ltd  UK mob +44 7775 755503
UK +44 20 3432 3735  /  US +1 (650) 423 1390
social id stevekennedyuk
Euro Tech News Blog http://eurotechnews.blogspot.com


Re: segfault causes system freeze

2018-11-27 Thread steve

Hi There,

Just an update on this issue.

My machine just froze while NOT using mutt. I was in the terminal, typed
the few first letters of a command, then hit  and the machine
froze. So to my big despair, it is not a mutt issue; I bet it's more a
hardware issue, and that is bad.

Have a nice day,
Steve



Re: segfault causes system freeze

2018-11-24 Thread steve

Le 23-11-2018, à 09:52:59 -0800, Kevin J. McCarthy a écrit :


On Fri, Nov 23, 2018 at 07:30:00AM +0100, steve wrote:

I think it's when I just go back from editing with vim to the pager.


Also, are you using IMAP?


Yes I do via offlineimap.


It sounds like this may be triggered by offlineimap updating while you 
are in the middle of composing the message.


NeoMutt checks for new mail in the pager too, but it looks like in 
1.7.2 they botched the redraw-data updates, setting "max" before the 
index data structures were updated.


It looks like this is fixed in the latest version link posted by Jörg. 
However, I think it would be tricky to get Debian/Ubuntu to patch this 
for a non-security issue.  Your best bet would be to update.


You mean compiling myself the last git version? I'd like to stick to
Debian's version if possible.


Another workaround might be turning off $pager_index_lines.


Currently it's set to
pager_index_lines=9
which I find useful. 


Since the problem hasn't occurred for the 4 last days, I'll wait a bit
before your suggested workaround.

Thanks a lot for your help.

Have a nice weekend.

Steve


Re: segfault causes system freeze

2018-11-24 Thread steve

Le 23-11-2018, à 21:31:25 +0100, Jörg Sommer a écrit :


steve hat am Do 22. Nov, 16:19 (+0100) geschrieben:

Le 22-11-2018, à 16:09:50 +0100, Jörg Sommer a écrit :

> > #0  0x5592c9a59c68 in index_make_entry (s=0x7fff20afb090 "", l=1024, 
menu=, num=) at ../../curs_main.c:300
> > h = 0x5592cbef1670
> > flag = (MUTT_FORMAT_TREE | MUTT_FORMAT_MAKEPRINT | 
MUTT_FORMAT_ARROWCURSOR | MUTT_FORMAT_INDEX)
> > edgemsgno = 40
> > reverse = 
> > tmp = 
>
> This is here
> https://sources.debian.org/src/mutt/1.7.2-1+deb9u1/curs_main.c/#L300 and
> in the current version (of neomutt) here
> https://salsa.debian.org/mutt-team/neomutt/blob/master/curs_main.c#L550
>
> The best would be to create a bug report and if you don't care too much, I
> can send the developer the coredump in a *private* mail. He might dig out
> something more.

That would be really nice of you. But does it mean I also have to open a
bug report?


I think that's the best to do. Do you have reportbug installed? This eases
the creation of bug reports.


Yes I have. Problem, it asks me if I really want to report a bug since
my version is said to be outdated. Moreover, looking at the already
reported bug, some might be the same, or very close, as mine. And other
problem, I can not reproduce it at will. So not enough information yet.
And as Kevin said, it might be related to offlineimap. 


With therefore wait a bit and try to collect more info before opening a
bug.


Re: segfault causes system freeze

2018-11-22 Thread steve

Hi Kevin,

Le 22-11-2018, à 17:48:14 -0800, Kevin J. McCarthy a écrit :


On Thu, Nov 22, 2018 at 04:19:43PM +0100, steve wrote:
I would guess that one of the thread chains is broken. Does the 
crash happen everytime in the same mailbox?


That's a question I also asked myself. I don't know for now. I'll 
have to investigate a bit more. The problem is that it doesn't 
happen so often.


I'm not familiar with the changes NeoMutt may have made to their 
version, but if you can duplicate with a recent Mutt, I may be able 
investigate further.


I'm trying to duplicate but no occurrence for the last three days.

However, I do have a couple questions that may (or may not) be 
relevant. Do you always see the crashes in the pager, or is it random?  


I think it's when I just go back from editing with vim to the pager. 


Also, are you using IMAP?


Yes I do via offlineimap.

Thank you.

Best,
Steve


Re: segfault causes system freeze

2018-11-22 Thread steve

Le 22-11-2018, à 07:35:08 -0800, Felix Finch a écrit :


On 20181122, Nathan Stratton Treadway wrote:

On Thu, Nov 22, 2018 at 07:51:48 +0100, steve wrote:
> No. If switch to another console, and launch a 'ls' for example, the
> cursor goes to the line and then nothing happens. Ctlr-x doesn't do
> anything. Opening a new one and launching htop for example freeze the
> terminal. But was it funny, is that I can firefox still works as
> expected. At this stage I normally shutdown the computer physically.

Hmmm, interesting... the system is not truely locked up, but perhaps
it's now unable to launch new processes, or something like that.  (It
would be interesting to know if an instance of "htop" running on another
console continues keep running even after the segfault, for example.)


I have seen screen (the command!) leave the tty in a very confused state, where
it thinks the usable area is less than full size, such that scrolls for instance
only operate on a subsection.

Try "stty sane^J".  If using screen or tmux, try ^D to exit and ^A^C or ^B^C to
open a new session.  Sometimes I have cat'd a binary file by mistake and left
the tty so confused that I have to log out and back in.  Do you have ssh set up,
and do you have a second computer you can ssh in from?  Try ssh on that other
compputer just to have an independent tty available, and see if it behaves
normally after mutt locks things up.


I of course tried sshing the machine, but after password prompt, nothing
happened (I waited 3 minutes or so).



One problem with power cycling is the file system recovery after a power loss;
you can avoid that by starting a root sleep+reboot in the background, which you
abort if you don't need it, otherwise let it reboot for you if possible.

   sudo su -
   (sleep 300; reboot) &
   ^D


su was blocked too. In fact opening any new terminal left me with no
possibility to enter commands.



and on to your mutt crashing.  If mutt locks up, wait 5 minutes and see it it
reboots on its own.  If not, power cycle.  You can use "shutdown -h now" instead
of reboot if you want.


Doesn't work either. 




If nutt locks up but the other suggestions leave you with a working tty, or if
mutt doesn't lock up, you have 5 minutes to "sudo su -" again and kill the
sleep+reboot job.

Adjust the 300 second sleep to your patience; how quickly can you make mutt
lockup?  How often do you wnat to kill and restart that sleeper, and how long do
you want to wait for it to reboot after a lockup?

You can start similar background jobs to report interesting data and wait a few
minutes, then on reboot, check its logged output.

   while :; do date >>~/loggy; sleep 10; done &

You may need a nohup in there; try logging out with that running and make sure
it remans running.  If mutt locks up, not the exact time, wiat 5 minutes, power
cycle, and check ~/loggy to see how long it kept logging.


Thanks Felix for this lengthy help, but it looks a bit too much for me
of an action. I'm getting too old for this kind of fun  ;) That's why I
love Debian, it's so rock solid and stable that I don't need to go in
that kind of things (any more).


Best,
Steve


Re: segfault causes system freeze

2018-11-22 Thread steve

Le 22-11-2018, à 16:09:50 +0100, Jörg Sommer a écrit :


#0  0x5592c9a59c68 in index_make_entry (s=0x7fff20afb090 "", l=1024, menu=, num=) at ../../curs_main.c:300
h = 0x5592cbef1670
flag = (MUTT_FORMAT_TREE | MUTT_FORMAT_MAKEPRINT | 
MUTT_FORMAT_ARROWCURSOR | MUTT_FORMAT_INDEX)
edgemsgno = 40
reverse = 
tmp = 


This is here
https://sources.debian.org/src/mutt/1.7.2-1+deb9u1/curs_main.c/#L300 and
in the current version (of neomutt) here
https://salsa.debian.org/mutt-team/neomutt/blob/master/curs_main.c#L550

The best would be to create a bug report and if you don't care too much, I
can send the developer the coredump in a *private* mail. He might dig out
something more.


That would be really nice of you. But does it mean I also have to open a
bug report?


I would guess that one of the thread chains is broken. Does the crash
happen everytime in the same mailbox?


That's a question I also asked myself. I don't know for now. I'll have
to investigate a bit more. The problem is that it doesn't happen so
often.


Thank you very much for your help

Best,
Steve


Re: segfault causes system freeze

2018-11-22 Thread steve

Le 22-11-2018, à 02:09:46 -0500, Nathan Stratton Treadway a écrit :


On Thu, Nov 22, 2018 at 07:51:48 +0100, steve wrote:

No. If switch to another console, and launch a 'ls' for example, the
cursor goes to the line and then nothing happens. Ctlr-x doesn't do
anything. Opening a new one and launching htop for example freeze the
terminal. But was it funny, is that I can firefox still works as
expected. At this stage I normally shutdown the computer physically.


Hmmm, interesting... the system is not truely locked up, but perhaps
it's now unable to launch new processes, or something like that.  (It
would be interesting to know if an instance of "htop" running on another
console continues keep running even after the segfault, for example.)


I'll leave an htop running just in case.



[...]

No, nothing in syslog I think.


(It might be worth double-checking to make sure -- if for example [Byour
follow-on attempts to run "ls" and "htop" also show up as segfaults in
the log, that would certainly tell you something.)


Double checked and I'm pretty sure there is nothing else.


Yes, I think it might be a hardware problem triggered by a mutt
segfault. Still looking around.


(The distinction may not matter in the end, but off hand I'd suspect the
hardware fault [or whatever it is] is causing both the mutt segfault and
the other symptoms you are seeing.)


It's really only mutt (or neomutt…) that triggers the problem, no other
program.


Anyway, good luck tracking it down...


Thank you, I hope I can succeed (with your and Jörg nice help).

Best,
Steve


Re: segfault causes system freeze

2018-11-22 Thread steve

Le 21-11-2018, à 23:10:51 +0100, Jörg Sommer a écrit :


This does not tell me anything (I'm not a developer). Do you think I should
open a bug report on the Debian BTS?


Yes, this would be helpful. Do you have gdb installed? Can you run
`coredumpctl debug` and run `bt full` on the gdb prompt? This output would
be very helpful for the developer to see, what was the state before the
crash.


Ok, I attached the output of 'bt full' in gdb. Doesn't speak to me :)

Thanks.

Steve

#0  0x5592c9a59c68 in index_make_entry (s=0x7fff20afb090 "", l=1024, 
menu=, num=) at ../../curs_main.c:300
h = 0x5592cbef1670
flag = (MUTT_FORMAT_TREE | MUTT_FORMAT_MAKEPRINT | 
MUTT_FORMAT_ARROWCURSOR | MUTT_FORMAT_INDEX)
edgemsgno = 40
reverse = 
tmp = 
#1  0x5592c9a822bc in menu_redraw_index (menu=0x5592cbed50b0) at 
../../menu.c:323
buf = 
"\000\000\000\000\000\000\000\000p\231\353\060\000\177\000\000\377\377\377\377\000\000\000\000\065\000\000\000\000\000\000\000\000\261\257
 
\377\177\000\000@\341\370.\000\177\000\000\000\000\000\000\000\000\000\000\311\320\354\060\000\177\000\000\000\000\000\000\001\000\000\000\066\000\000\000\036\000\000\000
 \261\257 \377\177\000\000 
_\312\060\000\177\000\000\000\000\000\000\000\177\000\000\213?\355\060\000\177\000\000/home/st\036\001\254ɒU\000\000/INBOX/n\220\263\257
 \377\177\000\000\b\262\257 \377\177", '\000' , 
"\002\327\300˒U\000\000\000\262\257 
\377\177\000\000H\261\305˒U\000\000@\262\257 \377\177\000\000\210\261\257"...
i = 40
do_color = 
attr = 2098432
#2  0x5592c9a90d3b in mutt_pager (banner=banner@entry=0x0, 
fname=fname@entry=0x7fff20afc180 
"/home/steve/.mutt/tmp/mutt-paros-1000-1678-17662420033214884750", 
flags=, flags@entry=66, 
extra=extra@entry=0x7fff20afc150) at ../../pager.c:1864
do_new_mail = 
searchbuf = '\000' 
buffer = "-*-NeoMutt: =prof/trex [Msgs:51 Inc:8 43M]---(threads/date)", 
'-' , "(end)---", '\000' 
helpstr = "e:Quitter  -:PgPréc  :PgSuiv v:Voir attach.  
d:Effacer  r:Répondre  j:Suivant ?:Aide\000\000\000\003", '\000' 
tmphelp = "e:Quitter  -:PgPréc  :PgSuiv v:Voir attach.  
d:Effacer  r:Répondre  j:Suivant", '\000' , 
"\260g\355˒U\000\000@\344\370.\000\177\000\000\n\000\000\000\000\000\000\000|\203\355˒U\000\000\377\002\000\000\000\000\000\000\062\313\306."...
maxLine = 55
lastLine = 37
lineInfo = 0x5592cbed45f0
QuoteList = 0x0
i = 
j = 
ch = 
rc = 103
hideQuoted = 
q_level = 0
force_redraw = 0
lines = 
curline = 
topline = 0
oldtopline = 
err = 
first = 
r = 
wrapped = 
searchctx = 
redraw = 32
fp = 0x5592cbee43a0
last_pos = 3186
last_offset = 
old_smart_wrap = 
old_markers = 
sb = {st_dev = 2305, st_ino = 3672769, st_nlink = 1, st_mode = 33152, 
st_uid = 1000, st_gid = 1000, __pad0 = 0, st_rdev = 0, st_size = 3186, 
  st_blksize = 4096, st_blocks = 8, st_atim = {tv_sec = 1542825837, 
tv_nsec = 471228302}, st_mtim = {tv_sec = 1542825837, tv_nsec = 519226284}, 
  st_ctim = {tv_sec = 1542825837, tv_nsec = 519226284}, 
__glibc_reserved = {0, 0, 0}}
SearchRE = {buffer = 0x0, allocated = 0, used = 0, syntax = 0, 
  fastmap = 0xff00 , 
  translate = 0xff , 
re_nsub = 2971003703785480807, can_be_null = 0, regs_allocated = 0, 
  fastmap_accurate = 0, no_sub = 0, not_bol = 1, not_eol = 0, 
newline_anchor = 0}
SearchCompiled = 0
SearchFlag = 
SearchBack = 
has_types = 
index_status_window = 0x5592cbee4b70
index_window = 0x5592cbed5050
pager_status_window = 0x5592cbed5070
pager_window = 0x5592cbed5090
index = 0x5592cbed50b0
indexlen = 
indicator = 4
old_PagerIndexLines = 
index_hint = 0
oldcount = 
check = 
followup_to = 
#3  0x5592c9a4ea85 in mutt_display_message (cur=0x5592cbead5a0) at 
../../commands.c:225
info = {ctx = 0x5592cbd45ea0, hdr = 0x5592cbead5a0, bdy = 0x0, fp = 
0x0, idx = 0x0, idxlen = 0}
tempfile = 
"/home/steve/.mutt/tmp/mutt-paros-1000-1678-17662420033214884750\000\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\033[C\000\000"...
buf = 
"multipart/alternative\000\000\000\063\000\000\000\000\000\000\000\360¯ 
\377\177\000\000\250\227\353\060\000\177\000\000\020\000\000\000\000\000\000\000\311\320\354\060\000\177\000\000\000\000\000\000\001\000\000\000\066\000\000\000\036\000\0

Re: segfault causes system freeze

2018-11-21 Thread steve

Le 21-11-2018, à 23:10:51 +0100, Jörg Sommer a écrit :


steve hat am Mi 21. Nov, 19:50 (+0100) geschrieben:

# coredumpctl info
  PID: 1678 (mutt)
  UID: 1000 (steve)
  GID: 1000 (steve)
   Signal: 11 (SEGV)
Timestamp: Wed 2018-11-21 19:45:57 CET (17s ago)
 Command Line: mutt -y -n
   Executable: /usr/bin/mutt
Control Group: /user.slice/user-1000.slice/session-3.scope
 Unit: session-3.scope
Slice: user-1000.slice
  Session: 3
Owner UID: 1000 (steve)
  Boot ID: 75e02422e0584081937ef6fe13f1e8ba
   Machine ID: 63a22f7a1c2437b0703353c75343f80e
 Hostname: box.maison.mrs
  Storage: 
/var/lib/systemd/coredump/core.mutt.1000.75e02422e0584081937ef6fe13f1e8ba.1678.154282595700.lz4
  Message: Process 1678 (mutt) of user 1000 dumped core.
   Stack trace of thread 1678:
   #0  0x5592c9a59c68 index_make_entry (mutt)
   #1  0x5592c9a822bc menu_redraw_index (mutt)
   #2  0x5592c9a90d3b mutt_pager (mutt)
   #3  0x5592c9a4ea85 mutt_display_message (mutt)
   #4  0x5592c9a5df9c mutt_index_menu (mutt)
   #5  0x5592c9a3ef16 main (mutt)
   #6  0x7f002ec182e1 __libc_start_main (libc.so.6)
   #7  0x5592c9a3ef8a _start (mutt)


This does not tell me anything (I'm not a developer). Do you think I should
open a bug report on the Debian BTS?


Yes, this would be helpful. Do you have gdb installed? Can you run
`coredumpctl debug` and run `bt full` on the gdb prompt? This output would
be very helpful for the developer to see, what was the state before the
crash.


I will do this this afternoon.

Thank you.

Steve


Re: segfault causes system freeze

2018-11-21 Thread steve

Hi,

Le 21-11-2018, à 17:51:39 -0500, Nathan Stratton Treadway a écrit :


On Tue, Nov 20, 2018 at 12:42:02 +0100, steve wrote:

I have a new box for about two months and it appears that each time mutt
segfaults, the console freezes and I have to hard stop the machine. Here
is what I have in /var/log/kernel.log:


When you say "the console freezes": are you able to log in normally
using another virtual terminal or ssh session or anything? 


No. If switch to another console, and launch a 'ls' for example, the
cursor goes to the line and then nothing happens. Ctlr-x doesn't do
anything. Opening a new one and launching htop for example freeze the
terminal. But was it funny, is that I can firefox still works as
expected. At this stage I normally shutdown the computer physically.


Or is the
system fully locked up, no longer responding to pings, etc.?  Does the
syslog file show any activity at all between the mutt segfault and the
restart-after-reboot messages?


No, nothing in syslog I think.


If a Mutt segfault is really able to lock up the system entirely, that
is a sign of a bigger problem with your kernel and/or hardware (i.e. a
user process such as Mutt should not be able to lock up the entire
system, no matter how it crashes).  Tracking down the Mutt coredump may
help you narrow down what part of the broader system is failing, but
really it seems like you are trying to figure out what system-wide
problem Mutt happens to be tickling


Yes, I think it might be a hardware problem triggered by a mutt
segfault. Still looking around.

Thank you,
Steve


Re: segfault causes system freeze

2018-11-21 Thread steve

Hi,

Mutt crashed just after hitting 'r'. Here is the output of 


# coredumpctl info
  PID: 1678 (mutt)
  UID: 1000 (steve)
  GID: 1000 (steve)
   Signal: 11 (SEGV)
Timestamp: Wed 2018-11-21 19:45:57 CET (17s ago)
 Command Line: mutt -y -n
   Executable: /usr/bin/mutt
Control Group: /user.slice/user-1000.slice/session-3.scope
 Unit: session-3.scope
Slice: user-1000.slice
  Session: 3
Owner UID: 1000 (steve)
  Boot ID: 75e02422e0584081937ef6fe13f1e8ba
   Machine ID: 63a22f7a1c2437b0703353c75343f80e
 Hostname: box.maison.mrs
  Storage: 
/var/lib/systemd/coredump/core.mutt.1000.75e02422e0584081937ef6fe13f1e8ba.1678.154282595700.lz4
  Message: Process 1678 (mutt) of user 1000 dumped core.
   
   Stack trace of thread 1678:

   #0  0x5592c9a59c68 index_make_entry (mutt)
   #1  0x5592c9a822bc menu_redraw_index (mutt)
   #2  0x5592c9a90d3b mutt_pager (mutt)
   #3  0x5592c9a4ea85 mutt_display_message (mutt)
   #4  0x5592c9a5df9c mutt_index_menu (mutt)
   #5  0x5592c9a3ef16 main (mutt)
   #6  0x7f002ec182e1 __libc_start_main (libc.so.6)
   #7  0x5592c9a3ef8a _start (mutt)


This does not tell me anything (I'm not a developer). Do you think I should
open a bug report on the Debian BTS?

Thanks.

Best,
Steve


Re: segfault causes system freeze

2018-11-21 Thread steve

Le 21-11-2018, à 08:53:53 +0100, Jörg Sommer a écrit :


steve hat am Mi 21. Nov, 06:42 (+0100) geschrieben:

Le 20-11-2018, à 21:19:05 +0100, Jörg Sommer a écrit :

> > > Do you use systemd? Can you install the packages systemd-coredump and
> > > mutt-dbgsym? After a crash you can run `coredumpctl info -1` and post the
> >
> > There is no mutt-dbgsym in stretch, only jessie and sid. I installed
> > systemd-coredump. Will launch the command after next freeze.
>
> You have to add the following line to /etc/apt/sources.list
>
> deb http://ftp.de.debian.org/debian-debug/ stable-debug main non-free contrib

Thanks, I didn't know about that repo. Installed now, waiting for the
next freeze. Can I run the command after a reboot?


Yes. Coredumpctl should capture the crash dump and you can inspect it
later, if it was successful. But maybe the crash causes the kernel can not
even write the core dump out to disk.


Thank you for the explanations.

Best,
Steve


Re: segfault causes system freeze

2018-11-20 Thread steve

Le 20-11-2018, à 21:19:05 +0100, Jörg Sommer a écrit :


> Do you use systemd? Can you install the packages systemd-coredump and
> mutt-dbgsym? After a crash you can run `coredumpctl info -1` and post the

There is no mutt-dbgsym in stretch, only jessie and sid. I installed
systemd-coredump. Will launch the command after next freeze.


You have to add the following line to /etc/apt/sources.list

deb http://ftp.de.debian.org/debian-debug/ stable-debug main non-free contrib


Thanks, I didn't know about that repo. Installed now, waiting for the
next freeze. Can I run the command after a reboot?


Re: segfault causes system freeze

2018-11-20 Thread steve

Le 20-11-2018, à 14:29:30 +0100, Jörg Sommer a écrit :


steve hat am Di 20. Nov, 12:42 (+0100) geschrieben:

Hi There,

I have a new box for about two months and it appears that each time mutt
segfaults, the console freezes and I have to hard stop the machine. Here
is what I have in /var/log/kernel.log:

Nov 19 15:54:17 box kernel: [ 7970.303276] mutt[13832]: segfault at 8 ip 
55a9d9996c68 sp 7fff5e7f47c0 error 4 in mutt[55a9d9963000+115000]
Nov 19 15:54:17 box kernel: [ 7970.303284] Code: e1 00 01 41 89 cb 0f 84 c6 00 
00 00 8b 4a 2c 03 8a 90 00 00 00 48 63 52 1c 39 d1 0f 8e cc 00 00 00 45 8b
54 92 fc 49 8b 58 68 <48> 8b 53 08 48 85 d2 75 26 eb 3d 0f 1f 44 00 00 44 3b 51 
38 41 0f


Do you use systemd? Can you install the packages systemd-coredump and
mutt-dbgsym? After a crash you can run `coredumpctl info -1` and post the


There is no mutt-dbgsym in stretch, only jessie and sid. I installed
systemd-coredump. Will launch the command after next freeze.

Thank you

Steve



segfault causes system freeze

2018-11-20 Thread steve

Hi There,

I have a new box for about two months and it appears that each time mutt
segfaults, the console freezes and I have to hard stop the machine. Here
is what I have in /var/log/kernel.log:

Nov 19 15:54:17 box kernel: [ 7970.303276] mutt[13832]: segfault at 8 ip 
55a9d9996c68 sp 7fff5e7f47c0 error 4 in mutt[55a9d9963000+115000]
Nov 19 15:54:17 box kernel: [ 7970.303284] Code: e1 00 01 41 89 cb 0f 84 c6 00 
00 00 8b 4a 2c 03 8a 90 00 00 00 48 63 52 1c 39 d1 0f 8e cc 00 00 00 45 8b
54 92 fc 49 8b 58 68 <48> 8b 53 08 48 85 d2 75 26 eb 3d 0f 1f 44 00 00 44 3b 51 
38 41 0f

I don't understand the above message.


I'm using NeoMutt 20170113 (1.7.2) from Debian stretch.

What should I do/try?

Thanks.

Best,
Steve


Re: Aliases

2018-11-19 Thread steve

Le 19-11-2018, à 06:20:29 -0800, Felix Finch a écrit :


Now if I want to add joe to the CC field, I cannot use the alias, I must
enter it manually. This case happens so often for me that I'm looking
for a way to simplify this process. I don't know if using aliases is the
right way to go, I don't see how to add joe to the group group1 AND ask
that it goes in the CC filed and not in the TO field.


You can use aliases in the editor, they just don't autocomplete.  Put "joe" in
the Cc: header with the editor; when mutt picks up the edited email, it expands
it.


This is fantastic! And it works for any number of aliases, in To or Bcc
fields. And even after reediting the message.

Exactly what I needed.


Thank you very much.

Best,
Steve


Aliases

2018-11-19 Thread steve

Hi,

I'm using the alias functionality very often, but there is one thing
lacking or that I haven't found yet.

Let's say I have a group alias like this

alias group1 a,b,c,d

and a simple one like this

alias joe j...@example.com

Now, I would like to create a new message with m, then the TO field
appears and I type group1 which fills that field with the four
recipients. Then I get the subject field and then I can edit the message
with my editor, vim in my case.

Now if I want to add joe to the CC field, I cannot use the alias, I must
enter it manually. This case happens so often for me that I'm looking
for a way to simplify this process. I don't know if using aliases is the
right way to go, I don't see how to add joe to the group group1 AND ask
that it goes in the CC filed and not in the TO field.

Maybe should I try to create some kind of template pre-filled? 


Any help and/or ideas would be highly appreciated.

Thank.

Best,
Steve


Re: [SOLVED] Re: Quote multiple messages in new message

2018-01-20 Thread steve

Le 20-01-2018, à 14:35:03 +0100, Simon Ruderich a écrit :


Note that this will add in-reply-to headers which you might not
expect if you want to create a new message.


Right. But it's that of a hassle to modify the headers. Including text
is much more.

Have a nice Sunday,
Steve



[SOLVED] Re: Quote multiple messages in new message

2018-01-19 Thread steve

Le 17-01-2018, à 16:42:53 -0800, Claus Assmann a écrit :


On Wed, Jan 17, 2018, steve wrote:


 I tried to tag some messages
with T then type ;m but this create an empty new message.


Did you try "reply"?  ;r


Stupidly (or so), I didn't…

And it does exactly what I wanted. Thank you.

And thanks for the others for their input.

Best,
Steve



Quote multiple messages in new message

2018-01-17 Thread steve

Hi,

I would like to create a new message containing quotations of others
messages (in order to avoid copy-pasting). I tried to tag some messages
with T then type ;m but this create an empty new message. I've searched
the web with many different key words but failed to find a solution.

Help would be highly appreciated.

Best
Steve



group-reply Bcc

2018-01-03 Thread Steve Schmerler
Hi

I have asked this some time ago [1] but I may have not been specific
enough. I'll give it another shot.

I have write_bcc=yes set and therefore a copy of a sent mail will have
the Bcc header set and filled with recipients. I'd like to 
to that mail and wonder how to make the reply mail get the Bcc header
filled.  doesn't do that. Is there any setting that I may
have overlooked in the manual?

If not, I should be able to write a macro which extracts the Bcc from
the mail when replying. I'm thinking along the lines of 
and "formail -x Bcc" for extracting the header and my_hdr for setting
it, but I have kind of a hard time coming up with a working macro, so if
someone has some clever hints, that'll be great. Thanks!

best,
Steve

[1] https://marc.info/?l=mutt-users=144239490327363=2


Re: Mutt - Neomutt and Debian Stretch

2017-06-29 Thread steve

Hi leo,

I have the same setup as you do (debian stretch+mutt).

On [1], one can read:

This package is built with the NeoMutt patchset, which includes a number
of additional features compared to the stock Mutt.

Which I don't interpret as you do; debian's mutt is compiled with the
NeoMutt patchset, but it's mutt and not neomutt.

So you have mutt ;)

Best,
Steve

[1] https://packages.debian.org/stretch/mutt


Re: sidebar_whitelist not working

2017-05-08 Thread Steve Schmerler
On Mar 21 12:08 -0500, Arturo wrote:
> 
> Hello, I have a ton of Gmail labels/folders i've setup over the years that I 
> don't want
> to see all the time in the sidebar.  But there are a few I'd like to be
> there whether or not they contain new mail.

If you use Gmail and IMAP, you could also  (u) from the
ones you don't want to see. You may also need to

set imap_check_subscribed=yes

for this to be useful.

best,
Steve


[solved] Re: Encoding issue with attachment

2017-04-26 Thread steve

Le 26-04-2017, à 09:41:21 +0200, Michael Tatge a écrit :




* On Wed, Apr 26, 2017 08:45AM +0200 steve (dl...@bluewin.ch) muttered:

I have some issue with some attachment that I get when wanting to save
them. For instance, I get this:

./=?iso-8859-1?Q?Convocation_et_Agenda_Comit=E9_Strat=E9gique_2017.04.02?==?iso-8859-1?Q?_-_V2.pdf?=
How can I solve this problem?


set rfc2047_parameters


Works like a charm.

Many thanks
Steve


Encoding issue with attachment

2017-04-26 Thread steve

Hello,

As said in the subject, I have some issue with some attachment that I
get when wanting to save them. For instance, I get this:

./=?iso-8859-1?Q?Convocation_et_Agenda_Comit=E9_Strat=E9gique_2017.04.02?==?iso-8859-1?Q?_-_V2.pdf?=


We see that the 'é' became '=E9' and some more junk.

Interestingly, I received other attachment from the same server (MS
exchange) which don't show this behaviour.

How can I solve this problem?

Thank you and have a nice day.

Steve


Re: on limiting and pattern modifiers

2017-03-14 Thread steve

Hi there,

I don't know what happened between last week and today, but now it
works… Maybe an update or something.

Anyway, thanks for the consideration and help.

Best,
Steve


Re: on limiting and pattern modifiers

2017-03-12 Thread steve

Thanks for the answers.

As a matter of fact I tried in another mail directory (the mutt one) and
it works. Specifically I tried with Tim Ye, which has the same kind of 


"First Name" <first.n...@example.com>

as what causes me a problem, and here no problem.

So it's a kind of a mystery right now for me.

For privacy reason, I cannot provide you with my other folder where the
problem arises.

Would you have any hints on how I could try to debug this problem ?

Have a nice Sunday.

Steve



on limiting and pattern modifiers

2017-03-10 Thread steve

Hi,

When using '~f EXPR', I noticed that EXPR is matched only in the
 not in the name in front on it, as I would expect it.
For example,

~f john 


will match

From: John Doe <john@example.com>

but 


~f John

won't.

Is there a way that either 'john or John' match this From line?


Thanks,
Steve

ps: I'm using mutt 1.5.23 on Debian Jessie


Re: can't read sent encrypted mail

2016-10-12 Thread Steve Schmerler
On Oct 07 21:02 -0700, Kevin J. McCarthy wrote:
> On Sat, Oct 08, 2016 at 02:46:42AM +0200, Peter P. wrote:
[...]
> > How would I add my own key to the encryption in gpgme?
> 
> You could try adding an 'encrypt-to' setting in your ~/.gnupg/gpg.conf file.

Sorry for being late. I hit the same problem as Peter -- Debian's config
sets crypt_use_gpgme=yes in /etc/Muttrc.d/gpg.rc as of 1.7.x

I had the encrypt-to set in ~/.gnupg/gpg.conf before, which has the
downside that it will *always* encrypt with my key also outside of mutt,
where I might not want that. That's why I like the option of setting
--encrypt-to in gpg.rc using the classic interface -- restrict the
encrypt-to to mutt. Since gpgme is a gpg API, there seems to be no
gpgme.conf or such where one could set this option. Therefore, I'll use
the classic interface as long as it exists :)

best,
Steve


Re: crypt-hook: truncated list of gpg recipients passed to pgpewrap

2016-07-28 Thread Steve Schmerler
On Jul 27 19:19 -0700, Kevin J. McCarthy wrote:
> I think I see the problem.  Mutt is using a fixed buffer of size 1024
> when expanding the %r parameter.  I think when the system was designed,
> no one anticipated expanding 50+ keys in a single gpg invocation.  :-)

Yes, I was suspecting something like that. 

> Right now, the best I can suggest is trying gpgme instead.  I'll work on
> a solution for a future release.

Thanks! I'll give gpgme a spin. I didn't find that much documentation,
though. I only need to set 

crypt_use_gpgme
crypt_use_pka

instead of defining the various pgp_* variables (usually shipped in
gpg.rc)? Do they have any effect, then? Thanks, again.

best,
Steve


crypt-hook: truncated list of gpg recipients passed to pgpewrap

2016-07-26 Thread Steve Schmerler
Hi all

The following is related to [1], i.e. use multiple crypt-hook commands.
I'm using something like this[*]

crypt-hook mailing.l...@company.com EX9B197029581FAC
crypt-hook mailing.l...@company.com 4C95T7E7F627637D
crypt-hook mailing.l...@company.com 74464897317CDA88
crypt-hook mailing.l...@company.com FECEC90758BB1D95
crypt-hook mailing.l...@company.com 866BAB720X7E9L98

Running this with mutt -d2, I see in the debug log that the list of
recipients is passed to pgpewrap, but truncated as follows (lines
broken):

[2016-07-26 14:49:12] mutt_pgp_command: /usr/lib/mutt/pgpewrap gpg2 
--batch --quiet --no-verbose --textmode --output - --encrypt
--encrypt-to  --sign -u Y --armor --always-trust 
-- -r 0xEX9B197029581FAC 0x4C95T7E7F627637D 0x74464897317CDA
-- /tmp/mutt-foo-1000-aaa-bb

i.e. mutt 

* stops at the third[**] key 74464897317CDA88 (length 16) and
* passes a truncated version 74464897317CDA (length 14) to pgpewrap

which then gives me a "gpg: skipped: Invalid user ID". The related pgp
setting is

set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg2 
%?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output
%- --encrypt --encrypt-to  --sign %?a?-u %a? --armor
%--always-trust -- -r %r -- %f"

Does anybody know what's going on here (Debian, Mutt 1.6.0
(2016-04-01))? Any hint is appreciated. Thank you very much!

best,
Steve



[1]  http://marc.info/?l=mutt-users=146850542227714=2

[*]  The key ids are fetched from
   gpg2 --list-keys --with-colons company.com | grep ^pub:f: | cut -d: -f5

[**] In my tests, I have 64 keys in total and the truncated one is number
 54.



Re: gpg groups or encrypt to multiple recipients (mailing list)

2016-07-15 Thread Steve Schmerler
On Jul 14 07:07 -0700, Kevin J. McCarthy wrote:
> crypt-hook mailing.l...@company.com key1
> crypt-hook mailing.l...@company.com key2
> crypt-hook mailing.l...@company.com keyN
> unset crypt_confirmhook

That's much better, indeed. I'm now using something like this in a
script which I souce:

gpg2 --list-key | sed -nre 's/.*<(.*@company\.com)>.*/crypt-hook 
mailing.l...@company.com \1/p'

Thank's a lot!

best,
Steve


gpg groups or encrypt to multiple recipients (mailing list)

2016-07-14 Thread Steve Schmerler
Hi

I'd like to ask what approach people have to send encrypted mail to
multiple mailing list recipients in mailing list via a mailing list
address (say mailing.l...@company.com).

Sadly, my company's policy is to not have a mailing list key and let the
mail server re-encrypt the mail. I know it sucks, but I need to send
encrypted mail to the list anyway. I'm aware of [1,2] and used the
approach in [2]:

# .gnupg/gpg.conf
group 0x12345678 = key1 key2 .. keyN

# muttrc 
crypt-hook mailing.l...@company.com 0x12345678

This is OK for me, apart from making up a hex key -- this is really
awkward (I literally used 0x12345678).

Are there other workarounds in use? The solution above can't be the only
one.

Apart from the gpg group thing, I would have been fine with the option
of interactively selecting the keys to encrypt to in the PGP menu,
independently from the actual recipient's address. Is this possible?
Thanks!

best,
Steve

[1] https://dev.mutt.org/trac/ticket/2873
[2] https://dev.mutt.org/trac/ticket/973


Re: How to color diffs in a patch-mail?

2016-06-21 Thread steve

Hi Matthias,

I use colordiff.

In my ~/.mailcap, I have

text/x-diff;   cat %s | colordiff; copiousoutput
text/x-patch;  cat %s | colordiff; copiousoutput

Best,
Steve


About saving outgoing messages

2015-09-29 Thread steve

Hi there!

Let's say I'm sending a message to mom and dad and writing it from the 
Inbox folder. Once this message is sent, it is saved in $record=Sent 
folder.


Now if I write the message from within the family/mom folder, it gets 
saved in the family/mom folder since I have defined


set record=+family/mom

in a file being sourced when I enter the family/mom folder.

but I don't have a copy of this message in the family/dad folder.

So I have two questions here. First, say I have n recipients in the 
From: line, is it possible to save a copy of the message n times, each 
in the right folder? If so, how can I do that (and as a corollary, is it 
a good policy?)


A second, how can I manage to save a message in the right folder even if 
I'm not writing it in that folder?


I've been playing with folder-hook and fcc-hook but never managed to get 
where I would like.


Thanks for any help.

 Steve


keep Fcc/Bcc when replying

2015-09-16 Thread Steve Schmerler
Hello all

This is probably trivial, however I could not find the appropriate
section in the manual.

I have a message that I sent and which may include Cc, Bcc and Fcc
headers.

Ho do I reply, including all Cc + Fcc + Bcc recipients?
 seems to work only 

* for Cc
* when the message is not from myself

while the Bcc and Fcc headers are never taken over to the reply. Right
now I'm saving the to-be-replied-to mail, compose the reply and then
copy the Bcc header from the saved one.

best,
Steve


Re: collapse threads automatically after imap mailbox update

2015-09-12 Thread Steve Schmerler
On Sep 12 09:16 -0500, Jeff Melton wrote:
> Your mail made it to the list, yes.

OK thanks for the info.

best,
Steve


collapse threads automatically after imap mailbox update

2015-09-06 Thread Steve Schmerler
Hello all

I'm using 

folder-hook . "push "

to collapse threads. 

Recently, I started using imapfilter since one of the imap servers to
which I'm connecting has no sieve support.

The problem is now that when imapfilter alters the mailbox that I am
currently viewing (move mail, ...), then mutt will uncollapse all
threads. Is there a way to collapse them automatically after a mailbox
update? Thanks for any hints!

best,
Steve


Re: lunch

2015-06-12 Thread steve
  Café du marché à midi (j'ai réservé à cette heure-là, possible pour
  vous ? )



Re: Reply to all CC's but not to From

2015-06-12 Thread steve
Hi David,

Le 10-06-2015, à 11:17:22 -0500, David Champion a écrit :

 * On 10 Jun 2015, steve wrote: 
Hi,
  
I often receive a message like this:
  
From: A
To: Me, X, Y, Z
CC: others
  
I would like to answer like this:
  
From: Me
To: X, Y, Z
  
so A and others are discarded. For the time being, I'm copy pasting
addresses to achieve this, so it's not very convenient.
  
Is this possible to do (and easy)?
 
 You can't prescriptively discard the sender from the recipient list. The
 easiest approach is to set edit_headers in your muttrc, so you can
 manually fix them in the editor.
  
  That's a pity but thanks for the tip, I'll give it a try.

  Best,
  Steve


Re: lunch

2015-06-12 Thread steve
Le 12-06-2015, à 11:34:45 +0200, steve a écrit :

   Café du marché à midi (j'ai réservé à cette heure-là, possible pour
   vous ? )

  Sorry for this one… it seems like my conf is not 100% correct.


Reply to all CC's but not to From

2015-06-10 Thread steve
  Hi,

  I often receive a message like this:

  From: A
  To: Me, X, Y, Z
  CC: others

  I would like to answer like this:

  From: Me
  To: X, Y, Z

  so A and others are discarded. For the time being, I'm copy pasting
  addresses to achieve this, so it's not very convenient.

  Is this possible to do (and easy)?

  Thanks.

  Steve


Display image in attached html file

2014-11-11 Thread steve
  Hi all,

  I'm receiving reports in html containing images. In mutt, those images
  are separated from the html file. For example, when I press 'v', I see
  the html file on one line and the image on another. Pressing 'enter'
  fires up firefox to display the html file. Problem, the image will not
  show in that page (it doesn't find the image's address).

  I've been looking around for a solution but failed until now, so
  that's the reason I'm posting here.

  How could I achieve that?

  Thank you,
  Steve

  


Re: Display image in attached html file

2014-11-11 Thread steve
Le 11-11-2014, à 21:09:07 +1100, Erik Christiansen a écrit :

 On 11.11.14 10:54, steve wrote:
  For example, when I press 'v', I see
  the html file on one line and the image on another. Pressing 'enter'
  fires up firefox to display the html file. 
 
 What happens when you press down-arrow, to highlight the image, then
 press enter?
 
   You mean a kind of selection of images? I tried but I cannot
   highlight the html file and the image files all together.

 If the problem is lack of of an entry in /etc/mailcap to match the
 filetype of the image, then you'd have an error message. What does it
 say?

  No, html file and images file are properly defined in the mailcap
  file (I can go on an image and press 'enter' and the image displays
  correctly).

  Thanks.



Re: Display image in attached html file

2014-11-11 Thread steve
  Hi Peter,

  Thanks for your answer.

Le 11-11-2014, à 08:18:42 -0500, Peter Davis a écrit :

 On Tue, Nov 11, 2014 at 10:54:27AM +0100, steve wrote:
Hi all,
  
I'm receiving reports in html containing images. In mutt, those images
are separated from the html file. For example, when I press 'v', I see
the html file on one line and the image on another. Pressing 'enter'
fires up firefox to display the html file. Problem, the image will not
show in that page (it doesn't find the image's address).
  
I've been looking around for a solution but failed until now, so
that's the reason I'm posting here.
  
How could I achieve that?
 
 When I want to see an html message as html, including images, etc., I
 pipe it through mhonarc and to a browser, using this command:
 
 macro pager B :unset wait_key\npipe-messagemhonarc -rcfile ~/.m2h_rcfile 
 -single | browser\n:set wait_key\n
 
 MHonArc nicely adds the message header to the HTML body so it's all
 very readable in the browser. The resource file, .m2h_rcfile, lets you
 configure options for including or not including various MIME types,
 including images.
  
  Thanks for the tip but unfortunately it doesn't work here. When I
  press 'B' in the pager, it opens iceweasel on the homepage (and not
  with the desired html file). On the command line one can then read:

  Warning: No end boundary delimiter found in message body

  Processing stopped, signal caught: SIGPIPE

  After some more searching, it seems that mhonarc doesn't support
  (well?) multipart/related content-type messages.

  Any (other) ideas?

  Many thanks,
  Steve


[SOLVED] Re: Display image in attached html file

2014-11-11 Thread steve
  Brilliant!

  For me, calling viewhtmlmsg directly (no mutt_viewhtmlmsg script)
  in the macro was enough:

  macro index,pager B pipe-messageviewhtmlmsg -s -b iceweaselenter

  
  Thanks a LOT.

  Steve
  


residual configuration

2012-12-19 Thread steve
Hi mutt-users,

I have a problem that is driving me mad which I'm failing to solve myself.

Let's say I'm reading a message in the mutt folder. Then I hit 'c' to change to
a folder containing a new message. I read that message and then hit 'r' to
reply to it. And I see in the To: line the right address, but also, and that's
what is driving me crazy, the address of the mutt-users mailing list (from the
previous folder).

I would like to reset the configuration when I change folder and then read a
new configuration file for that specific folder. I have tried to put 

unhook *

at the beginning of the new configuration file but it doesn't work, I still see
this residual email address in the To: line.

I also tried to launch mutt with -d2 but I don't see anything that helps me.
I'm turning in circles so I need some help.

Any ideas how to solve this issue?


Many thanks in advance,
steve


[Solved] Re: residual configuration

2012-12-19 Thread steve
Found it, it was a missing

unmy_hdr To:

in one of the configuration files.

sorry for the noise.

Have a nice day,
steve




Re: keep headers fixed in pager

2012-11-13 Thread steve
Le 06-10-2012, à 12:17:08 +0200, Marco Giusti (marco.giu...@gmail.com) a écrit :

 On Wed, Sep 26, 2012 at 10:20:56PM +0200, steve wrote:
  Hi,
  
  Is it possible, while reading a mail, to keep the headers fixed while 
  scrolling
  down the message? I experienced many times when I have to go back to the 
  top of
  the message to see who has been CCied for example. Keeping chosen headers 
  fixed
  would be really useful (in some circumstances).
  I tried to dig the archives for a solution but since I'm not sure I've got 
  the
  right keywords, my search failed.
 
 rough but I think it does what you need, but I would not use it

Thanks Marco, unfortunately I haven't had time yet to dig in your code.


Re: keep headers fixed in pager

2012-10-05 Thread steve
Hi Adam,

Thank you for your answer.

But your suggestion seems (unfortunately) much too complicated for me. I guess
I'll have to live with this. But I'm curious to know how people deal with the
issue I raised. Do people simply scroll back to the top to get this info ? Just
curious.

Have a nice day,
steve


Re: keep headers fixed in pager

2012-10-02 Thread steve
Hi again,

Is my question so obvious or is it simply not possible?

Thank you

Le 26-09-2012, à 22:20:56 +0200, steve (dl...@bluewin.ch) a écrit :

 Hi,
 
 Is it possible, while reading a mail, to keep the headers fixed while 
 scrolling
 down the message? I experienced many times when I have to go back to the top 
 of
 the message to see who has been CCied for example. Keeping chosen headers 
 fixed
 would be really useful (in some circumstances).
 I tried to dig the archives for a solution but since I'm not sure I've got the
 right keywords, my search failed.
 
 Thank in advance for your help.
 
 steve
 


Re: keep headers fixed in pager

2012-10-02 Thread steve
Le 02-10-2012, à 17:34:25 +1000, Cameron Simpson (c...@zip.com.au) a écrit :

 On 02Oct2012 08:34, steve dl...@bluewin.ch wrote:
 | Is my question so obvious or is it simply not possible?
 
 I think it is not possible. It seems to me that mutt pages the output of
 $display_filter, which includes the message headers. Very cool if you
 want to filter the displayed headers, but inflexible with respect to
 your wish.

Ok, too bad.

Thank you for your answer.

steve


Re: keep headers fixed in pager

2012-10-02 Thread steve
Le 02-10-2012, à 10:31:42 -0400, Peter Davis (p...@pfdstudio.com) a écrit :

 On Tue, Oct 02, 2012 at 01:21:13PM +0200, steve wrote:
  Le 02-10-2012, à 17:34:25 +1000, Cameron Simpson (c...@zip.com.au) a écrit :
  
   On 02Oct2012 08:34, steve dl...@bluewin.ch wrote:
   | Is my question so obvious or is it simply not possible?
   
   I think it is not possible. It seems to me that mutt pages the output of
   $display_filter, which includes the message headers. Very cool if you
   want to filter the displayed headers, but inflexible with respect to
   your wish.
  
  Ok, too bad.
 
 You could write your own pager and tell mutt to use that instead of the
 built-in one, but that may be more effort than it's worth. (I don't know
 what it's worth to you.)

I dream I could :)


Re: keep headers fixed in pager

2012-09-27 Thread steve
  Is it possible, while reading a mail, to keep the headers fixed while 
  scrolling
  down the message? I experienced many times when I have to go back to the 
  top of
  the message to see who has been CCied for example. Keeping chosen headers 
  fixed
  would be really useful (in some circumstances).
 
 Could maybe changing “pager_format” resolve your problem?

I don't see how it could. Would you please suggest an example ?


keep headers fixed in pager

2012-09-26 Thread steve
Hi,

Is it possible, while reading a mail, to keep the headers fixed while scrolling
down the message? I experienced many times when I have to go back to the top of
the message to see who has been CCied for example. Keeping chosen headers fixed
would be really useful (in some circumstances).
I tried to dig the archives for a solution but since I'm not sure I've got the
right keywords, my search failed.

Thank in advance for your help.

steve


Re: mutt deletes attachement before libreoffice tries to open it

2012-06-22 Thread steve
Hi,


Le 26-04-2012, à 08:07:42 -0300, Marcelo Luiz de Laia (marcelol...@gmail.com) a 
écrit :

 On Thu, 26 Apr 2012, Jostein Berntsen wrote:
 
  It seems like most of your entries are bound to openoffice(soffice) instead
  of libreoffice. Try to change all entries to libreoffice instead.
  
  Jostein
  
 
 Thank you very much, but, it dosen't solve that problem.
 
 If libreoffice is alread running, I coundn't open the attachment.

I fell on your post while searching the web for a solution to the exact same 
issue than yours.
This problem arises only when trying to open a document with libreoffice while 
libreoffice is already opened.

Have you found a solution?

I'm running mutt 1.5.21 on Debian wheezy.

Thank you.

Best regards,
Steve



regexp and pattern limit

2012-04-02 Thread steve
Hi,

I'm trying to write a regexp in order to capture some words to put them
in color. I have a line like this in my .muttrc:

color body red default 
\etch\|((L|l)enny)|((S|s)queeze)|((S|s)arge)|((P|p)otato)

I want to catch only etch, but not fetch nor fetchera (or whatever
combination). So I tried the \word\ syntax without success. I also
tried the Perl way \bword\b which fails too.

I'm no regex guru, so could someone help me please?

Thanks in advance,
Steve 


[SOLVED] Re: regexp and pattern limit

2012-04-02 Thread steve

Dear mutt users,

Thanks for all of your replies.

\\(e|E)tch\\

does exactly was I was looking for.

Have a nice day,
Steve


limit to threads with certain number of messages

2011-07-21 Thread Steve Schmerler
Hello

Is there a way to limit to threads that have only a certain number of
messages in it, something like ~(~M 10). I found no pattern modifier to
do that. The only related thread I could dig out is

http://thread.gmane.org/gmane.mail.mutt.user/18902/focus=19085

Thanks for any hints.

best,
Steve


Re: limit to threads with certain number of messages

2011-07-21 Thread Steve Schmerler
On Jul 21 11:35 +0200, Jostein Berntsen wrote:
 You might have to patch mutt with this patch to get the ~Z modifier:
 
 http://does-not-exist.org/mail-archives/mutt-users/msg19738.html

Ah thanks. I think I remember that message. I had to search web archives
because I deleted messages from last year. Strangely, the thread did
not show up at gmane.org, but I just checked and it does show up at
markmail.org.

best,
Steve


Re: ispell with vim

2011-05-16 Thread steve
Hi,

Le 16-05-2011, à 00:17:36 -0700, Robert Holtzman (hol...@cox.net) a écrit :

 BTW, how do you add words to the Vim spell checker? Running a search
 turned up nothing of value.

zg

with the word under the cursor (in normal mode).

See  :h zg

Have a nice day,
Steve


Re: Abbreviate full imap folder names

2010-09-27 Thread Steve Schmerler
On Sep 25 01:22 +0300, Cristopher Thomas wrote:
 On Mon, Sep 13, 2010 at 17:30, Steve Schmerler elcort...@googlemail.com 
 wrote:
  Hi
 
  In the folder browser, can I abbreviate things like
     11     0  imaps://imap.gmail.com/INBOX
     12     0  imaps://imap.gmail.com/mutt-users
  to, say
     11     0  gmail/INBOX
     12     0  gmail/mutt-users
 
 I don't know if you've found a solution yet, but offlineimap makes
 this possible.  Setting up 'nametrans' allows offlineimap to read from
 a folder on the imap server, eg '[Gmail]All Mail', and write to a
 local folder such as 'archive', and vice-versa.

Ah ok good to know. I'll keep that in mind should I switch to
offlineimap one day. Thank you.

best,
Steve


default directory for change-dir

2010-09-21 Thread Steve Schmerler
Hi

I really like mutt, but fiddling with IMAP is driving me nuts sometimes
:) I think I do not understand some fundamental behavior. Say I have two
IMAP accounts. In the browser:

 1 0  imaps://imap.gmail.com/
 2 0  imaps://imap.gmail.com/INBOX
 3 0  imaps://imap.gmail.com/foo
 4 0  imaps://mail.messagingengine.com:992/
 5 0  imaps://mail.messagingengine.com:992/INBOX
 6 0  imaps://mail.messagingengine.com:992/bar

I'm using 
set imap_passive=no
set imap_check_subscribed=yes
set imap_list_subscribed=yes
and have all subscribed folders in the browser. Very nice.

But say I want to enter imaps://imap.gmail.com/ anyway to see
unsubscribed sub-folders. Highlighting it and pressing Enter puts me in
imaps://imap.gmail.com/INBOX. So I figure that I have to 
change-dir imaps://imap.gmail.com/

It seems that change-dir has a default dir, which seems to be the
current dir where Mutt is running. So, pressing c in the browser gives
me my HOME as default dir If I started Mutt there.
Chdir to: /home/elcorto

This is problematic when I construct macros:
macro browser ,gm change-dirimaps://imap.gmail.com
macro browser ,fm change-dirimaps://mail.messagingengine.com:992
Then, I get (,gm):
Chdir to: /home/elcorto/imaps://imap.gmail.com

I tried unsetting $folder and $spoolfile but the default dir is still
there. Is there a way to unset this default dir? Or am I totally off the
track here? Thanks for your help.

best,
Steve


Re: default directory for change-dir

2010-09-21 Thread Steve Schmerler
On Sep 22 00:46 +0200, Rado S wrote:

 See wiki - guide - /Folders + /Actions

I assume that you are referring to the section TAB completion in
editor mode. That kind of explains where the default dir comes from
(the internal browsing directory for the next directory scan). Who
knew.

 See editor bindings and use kill-line.

That did it. This is very useful. Another command learned.
macro browser ,gm change-dirkill-lineimaps://imap.gmail.comenter

Thank you!

best,
Steve


Abbreviate full imap folder names

2010-09-13 Thread Steve Schmerler
Hi

In the folder browser, can I abbreviate things like
11 0  imaps://imap.gmail.com/INBOX
12 0  imaps://imap.gmail.com/mutt-users
to, say
11 0  gmail/INBOX
12 0  gmail/mutt-users

This is with
set folder_format=%2C %5N  %f

I found this thread [1]. Has the situation changed in the meantime?
Thanks.

[1] http://thread.gmane.org/gmane.mail.mutt.user/20058

best,
Steve


Re: abook: query notes field

2010-09-03 Thread Steve Schmerler
On Sep 02 17:38 -0700, Chip Camden wrote:
 
 Sorry to respond to myself -- but this version has minor improvements.

That's neat! Thanks for the nice script.

So it is either parse-it-yourself or use a full-fledged LDAP. If I
script the parser myself, I might as well set up a small sqlite db to
hold my contacts. There is no real need to use abook, then. Thanks.

best,
Steve


abook: query notes field

2010-09-02 Thread Steve Schmerler
Hi

Say I have abook entries like

[0]
name=Bob B.
email=...@gmail.com
nick=bob
notes=friend,coworker

[1]
name=Alice A.
email=al...@gmail.com
nick=alice
notes=friend

Is it possible to query the notes field?
abook --mutt-query friend
abook --mutt-query coworker

abook returns Not found in that case and seems to search only in the
name and email fields.

The background is that I want to high-jack the notes field to tag
entries with an arbitrary (comma separated) list of tags (friend,
coworker) and, for instance, send a mail to all people with the
friend tag.

If that is not possible, what other address book systems do people use
which can handle tags which can be queried?

Thanks.

best,
Steve


Re: Suggestion when saving mails

2010-07-21 Thread Steve Searle
Around 07:56pm on Wednesday, July 21, 2010 (UK time), Roger scrawled:

 Since I'm always saving/moving email to $HOME/.maildir/.Spam... you
 would think Mutt would catch-on after the 10th email. ;-)

I attach the following macros to the z key in my .muttrc

 macro index z s=mutt/spam\n move message to spam
 macro pager z s=mutt/spam\n move message to spam

And then i can just z(ap) any nasty spam.

Steve

-- 
 
 Play Champions - my free football predictions game at:
http://www.stevesearle.com/champs/about.html

 22:10:44 up 18 days, 10:21,  1 user,  load average: 0.24, 0.10, 0.12


pgpMp0K2eW0Dp.pgp
Description: PGP signature


Re: How to save email plus word attachments as one text file

2010-06-14 Thread Steve Brown
On Mon, Jun 14, 2010 at 12:45:20PM -0700, Gary Johnson wrote:
 On 2010-06-14, Steve Brown wrote:
  It has come to pass that I need to save some of these emails as a text 
  file, pretty much as it is in Mutt's pager. That is, the email body, 
  then the text of the attachments, concatenated into one file. I just 
  need plain text, nothing fancy at all.
[...] 
 If I understand you correctly, this is really easy to do, and the
 functions to do it are built in.  To save a copy of the message, use
 the decode-copy function bound by default to EscC, or to save the
 message and mark the original for deletion, use the decode-save
 function bound by default to Escs.  You can find both of these in
 the help menus for the index and the pager.  The decode- versions of
 these functions will use filters defined in your mailcap file to
 decode the attachments from Word to plain text, just as in the
 pager, as they are written to the specified files along with the
 message bodies.

Absolutely spot on!

Thank you very much.


Re: set From: based on To:

2010-03-18 Thread steve
Hi Patrick,

Le 17-03-2010, à 11:21:59 -0400, Patrick Shanahan (ptilopt...@gmail.com) a 
écrit :

 * steve dl...@bluewin.ch [03-17-10 11:00]:
  Le 17-03-2010, à 09:51:24 -0400, Patrick Shanahan (ptilopt...@gmail.com) a 
  écrit :
   What if you send a *new* message to a...@example.com?
  
  If I'm in inbox, the From: header is correct.
   
   What do you mean in my default inbox?
  
  It's the folder where all non-sorted (by procmail) goes. If you send me
  a private email it will go there.
  
   
My first idea was something like :

reply-hook '~t ^...@foo.bar$ 'set from=m...@foo.bar'
   
   if it is *to* you, set from *you* ???
  
  Perhaps I'm not reading that reply-hook correctly. I read:
  (sorry for the english, it's not my mother tongue, as you probably
  noticed it)
  
  For each mail addressed to m...@foo.bar, set the From header to
  m...@foo.bar when replying to it.   
 
 I believe we do have a communication problem :^).  In your reply, the
 From address needs to be *your* address, not who the message was
 *from*.  That prompted by earlier question about to/from *you*.
 
 OR, I don't understand at all.  (quite possible  :^)

No you didn't, it's me who was a bit tired yesterday and wasn't clear
enough, sorry.

To sum up, here is what I want to do:

you send me a private message to the address I use for this list and I
want to answer with this same address. I hit 'r' and actualy the From
header is not set to dl...@ch but to my default address.  
 
   reply-hook '^...@foo\.bar$ set from=m...@foo.bar'
  
  Mutt tells me that there is a syntax error; it doesn't complain anymore
  with the following line:
  
  reply-hook '^...@foo\.bar$' 'set from=m...@foo.bar'
 
  But anyway, it doesn't do what is expected.
 
 reply-hook '^...@foo\.bar$' 'set from=dl...@bluewin.ch

So here, if you send me a mail to m...@foo.bar, I would reply with
dl...@blch, that's correct? If so, it's not what I want. I want to
reply with m...@foo.bar. 

What I don't understant is that since I have, say 5 different addresses,
me1, me2, ..., m25, I should write five different lines like the above
one? It seems awkward to me. Am I totally confused?


 I would still use send-hook.

I hear that, I'll follow your advice (if I can).

   
   send-hook . unmy_hdr From:
   send-hook me 'my_hdr From: your perferred default'
   send-hook m...@foo.bar set from=m...@foo.bar
   send-hook m...@foo.bar 'my_hdr From: m...@foo.bar'
  
  Ok I tried that (I don't really understand why the two last lines are
  needed *together*, but that's beside the point now) and still the same.
 
 They are not.  They are two different situations, one using set from
 and the other using my_hdr.  I would use one or the other, not both.
 They were provided as examples.

Ah ok... but then what's the difference between them?


s.


set From: based on To:

2010-03-17 Thread steve
Hi mutt-users,

I have several addresses and when someone I don't know sends me an email,
this one goes in my inbox (procmail default). Now if I hit 'r', the From
header will be automaticaly set to my default email, which is sometimes
not the preferred behaviour, I would like to use the email address the
sender used. For example:

I receive an email with:

From: a...@example.com
To: m...@foo.bar

(I don't have any special settings for a...@example.com)

I hit 'r' and I get:

From: defa...@email.bar
To: a...@example.com


but I would like to have:

From: m...@foo.bar
To: a...@example.com


How can I do this? Should I use a reply-hook? reverse_name? I'm a bit
confused here.

Many thanks in advance for your help.

steve


Re: set From: based on To:

2010-03-17 Thread steve

Hi Patrick,

Thanks replying to me.


Le 17-03-2010, à 08:29:40 -0400, Patrick Shanahan (ptilopt...@gmail.com) a 
écrit :

 * steve dl...@bluewin.ch [03-17-10 04:53]:
  I receive an email with:
  
  From: a...@example.com
  To: m...@foo.bar
  
  (I don't have any special settings for a...@example.com)
  
  I hit 'r' and I get:
  
  From: defa...@email.bar
  To: a...@example.com
  
  
  but I would like to have:
  
  From: m...@foo.bar
  To: a...@example.com
  
  
  How can I do this? Should I use a reply-hook? reverse_name? I'm a bit
  confused here.
 
 I would choose, send-hook, but from TFM:

Why use send-hook when it's only for replying to messages? When I'm in
my default inbox and I hit 'm', I get the correct address.

 
 19. Change Settings Based Upon Message Recipients
 
Usage:
 
reply-hook [!]pattern command  
   
send-hook [!]pattern command   
   
send2-hook [!]pattern command  
   
   
   
These commands can be used to execute arbitrary configuration commands 
   
based upon recipients of the message. pattern is used to match the 
   
message, see Message Matching in Hooks for details. command is executed
   
when pattern matches.  
   
   
   
reply-hook is matched against the message you are replying_to, instead 
   
of the message you are sending. send-hook is matched against all   
   
messages, both new and replies.
   

I have already read that, I suppose I didn't express myself very
well, please forgive me. My first idea was something like :

reply-hook '~t ^...@foo.bar$' 'set from=m...@foo.bar'

but this doesn't work, I still get my default address in the From:
header. And if it worked, I then should have to add as many lines as
email addresses I have, only changing me1 with me2 and so forth, and
this seems strange to me.   
  

Then I tried:

reply-hook '~t ^...@foo.bar$' 'my_hdr From: m...@foo.bar'

same thing. I'm missing something but I don't know what.


Help would be highly appreciated.

Thanks,
s.



Re: set From: based on To:

2010-03-17 Thread steve
Le 17-03-2010, à 09:04:38 -0400, peng shao (shallp...@gmail.com) a écrit :

 On Wed, Mar 17, 2010 at 4:52 AM, steve dl...@bluewin.ch wrote:
  Hi mutt-users,
 
  I have several addresses and when someone I don't know sends me an email,
  this one goes in my inbox (procmail default). Now if I hit 'r', the From
  header will be automaticaly set to my default email, which is sometimes
  not the preferred behaviour, I would like to use the email address the
  sender used. For example:
 
  I receive an email with:
 
  From: a...@example.com
  To: m...@foo.bar
 
  (I don't have any special settings for a...@example.com)
 
  I hit 'r' and I get:
 
  From: defa...@email.bar
  To: a...@example.com
 
 
  but I would like to have:
 
  From: m...@foo.bar
  To: a...@example.com
 
 
  How can I do this? Should I use a reply-hook? reverse_name? I'm a bit
  confused here.
 
  Many thanks in advance for your help.
 
  steve
 
 
 Hi,

Hi Peng,

 I am not sure if I am correct but if you just simply want
 From: m...@foo.bar
 To: a...@example.com
 
 Then simple
 
 set envelope_from =yes
 set reverse_name=yes
 alternates m...@foo.bar|defa...@email.bar
 
 should be enough.

well it's not here :-(

 But usually this is not the good way because you
 surely don't want your realname, signature to be identical to default
 in general. So I would suggest you to use reply-hook. Notice don't
 forget to set default reply-hook at first.

I put

reply-hook . 'unmy_hdr From:'
reply-hook '~t m...@foo.bar' 'my_hdr From: m...@foo.bar'

and it still doesn't work as expected...
 
 One thing more about the alternates: you should set your mta to be
 aware of m...@foo.bar. I have only had experience on msmtp and if
 m...@foobar is not an independent accout in msmtprc then msmtp will use
 the default account in msmtp to send the mail out.

I use esmtp and I don't have any information regarding my addresses.
Maybe that's the problem (but I doubt).

In any case, thank you for your help Peng.

Steve 


Re: set From: based on To:

2010-03-17 Thread steve
Le 17-03-2010, à 09:51:24 -0400, Patrick Shanahan (ptilopt...@gmail.com) a 
écrit :

 * steve dl...@bluewin.ch [03-17-10 09:14]:
I receive an email with:

From: a...@example.com
To: m...@foo.bar

(I don't have any special settings for a...@example.com)

I hit 'r' and I get:

From: defa...@email.bar
To: a...@example.com


but I would like to have:

From: m...@foo.bar
To: a...@example.com


How can I do this? Should I use a reply-hook? reverse_name? I'm a bit
confused here.
   
   I would choose, send-hook, but from TFM:
  
  Why use send-hook when it's only for replying to messages? When I'm in
  my default inbox and I hit 'm', I get the correct address.
 
 What if you send a *new* message to a...@example.com?

If I'm in inbox, the From: header is correct.
 
 What do you mean in my default inbox?

It's the folder where all non-sorted (by procmail) goes. If you send me
a private email it will go there.

 
  My first idea was something like :
  
  reply-hook '~t ^...@foo.bar$ 'set from=m...@foo.bar'
 
 if it is *to* you, set from *you* ???

Perhaps I'm not reading that reply-hook correctly. I read:
(sorry for the english, it's not my mother tongue, as you probably
noticed it)

For each mail addressed to m...@foo.bar, set the From header to
m...@foo.bar when replying to it.   

 reply-hook '^...@foo\.bar$ set from=m...@foo.bar'

Mutt tells me that there is a syntax error; it doesn't complain anymore
with the following line:

reply-hook '^...@foo\.bar$' 'set from=m...@foo.bar'

But anyway, it doesn't do what is expected.

  but this doesn't work, I still get my default address in the From:
  header. And if it worked, I then should have to add as many lines as
  email addresses I have, only changing me1 with me2 and so forth, and
  this seems strange to me.   
  

  
  Then I tried:
  
  reply-hook '~t^...@foo.bar$' 'my_hdr From: m...@foo.bar'
 
 reply-hook '~t m...@foo\.barr my_hdr From: m...@foo.bar'

Sorry for the misspelling, but doesn't work either.
 
  same thing. I'm missing something but I don't know what.
 
 As I said earlier, I would use send-hook:
 
 send-hook . unmy_hdr From:
 send-hook me 'my_hdr From: your perferred default'
 send-hook m...@foo.bar set from=m...@foo.bar
 send-hook m...@foo.bar 'my_hdr From: m...@foo.bar'

Ok I tried that (I don't really understand why the two last lines are
needed *together*, but that's beside the point now) and still the same.


Thank you for your help, but as Rado said in another message, I guess
I've got a messed up configuration and I should figure out why (I'm sure
it's not mutt's fault). I'm trying to fine-tune my configuration with
several files in which I source other file(s) and surely I've missed
lots of mutt's finesse (in french)... this one issue is already a
long-lasting one, and I'm lacking energy and time to start the whole
thing from the beginning (but I should, I know).

Once more, thanks alot for your help!

I love mutt, it's great, I'd love to master it totally (yes I also have
strange dreams...:-)), but unfortunately I'm far from it :-(


s.


Re: Fastmail Drafts folder not visible

2010-01-27 Thread Steve S
On Jan 27 08:56 +0100, Kirill Miazine  wrote:
[...] 
 Oh, I also notice that you set imap_list_subscribed. Can you unset it
 and see if Drafts appears then?

OK, that was it. I had

set imap_check_subscribed=yes
set imap_list_subscribed=yes
set my_fastmail=imaps://mail.messagingengine.com:992
account-hook $my_fastmail set imap_user=$my_user_imap_fastmail \
imap_pass=$my_pass_imap_fastmail
folder-hook $my_fastmail set spoolfile=$my_fastmail \
folder=$my_fastmail record=+'Sent Items' postponed=+Drafts \
trash=+Trash

Here, $imap_check_subscribed would get all folder names from the server
for me. Nice. I don't have to list them all one by one in mailboxes.

If I explicitly add $my_fastmail/Drafts to mailboxes, I see the
folder. Apparently, the server considers me not subscribed to Drafts and
therefore doesn't tell Mutt about that. 

[...]
 Ok. Regarding aliases - I'm not aware of how to add aliases for
 accounts.
 
 I'm using one Mutt with one IMAP account, but I'm running two instances
 of Mutt in separate tmux/screen windows. The mutts share some basic
 configuration and have an account-specific configuration file that
 define account-specific settings and hooks:
 
 alias cl-mutt '/usr/local/bin/mutt -e source ~/.mutt/muttrc-cl'
 alias km-mutt '/usr/local/bin/mutt -e source ~/.mutt/muttrc-km'

But you also see the full URL of each folder in the folder browser?
That's no big deal, just curious.

Thank you for your help.

best,
Steve


Fastmail Drafts folder not visible

2010-01-26 Thread Steve S
I noticed that some people on the list are Fastmail users, so someone
might have some tips. First, my muttrc part for fastmail IMAP:


set imap_passive=no
set my_fastmail=imaps://mail.messagingengine.com
set imap_check_subscribed=yes
set imap_list_subscribed=yes

mailboxes $my_fastmail

account-hook $my_fastmail \
set imap_user=$my_user_imap_fastmail \
imap_pass=$my_pass_imap_fastmail

folder-hook $my_fastmail \
set spoolfile=$my_fastmail/INBOX \
folder=$my_fastmail/INBOX \
record=+'Sent Items' \
postponed=+Drafts \
trash=+Trash


In the folder browser, all folders are listed *except* for +Drafts:

imaps://mail.messagingengine.com
imaps://mail.messagingengine.com/INBOX
imaps://mail.messagingengine.com/INBOX.Trash
imaps://mail.messagingengine.com/INBOX.Sent Items
imaps://mail.messagingengine.com/INBOX.work


When I postpone a message, it gets uploaded to fastmail and I can see
the message in the web interface, where the Drafts folder is visible.
It's just that it is not listed in Mutt. Thanks for all hints.

best,
Steve


  1   2   3   4   >