Re: Newbie Help for multiple signatures

2024-07-22 Thread MN Repair
It seems we were not on the same page. I was thinking of hosting a 
mailing list. We as a group found someone with mailing list software and 
he will host it. Thank you for your input.

-- 
MN Repair

In days of yore Sun, Jul 21, 2024 at 10:07:55AM -0700, 
googly.negotiator...@aceecat.org quoth thus:
> On Sat, Jul 20, 2024 at 04:09:20PM GMT, Kurt Hackenberg wrote:
> 
> > >   https://neomutt.org/guide/configuration.html#lists
> 
> > It might not help.  MN Repair earlier said this:
> 
> > > I do not have internet access. My email service is a 3rd party
> > > private APN. So please exclude links in your answers.
> 
> Mea culpa. Here's the section I linked:
> 
>   14. Mailing Lists
> 
>   Usage:
> 
>   lists [ -group name ...] regex [ regex ...]
>   unlists { * | regex ... }
>   subscribe [ -group name ...] regex [ regex ...]
>   unsubscribe { * | regex ... }
> 
>   NeoMutt has a few nice features for handling mailing lists. In order
>   to take advantage of them, you must specify which addresses belong
>   to mailing lists, and which mailing lists you are subscribed
>   to. NeoMutt also has limited support for auto-detecting mailing
>   lists: it supports parsing mailto: links in the common List-Post:
>   header which has the same effect as specifying the list address via
>   the lists command (except the group feature). Once you have done
>   this, the  function will work for all known
>   lists. Additionally, when you send a message to a known list and
>   $followup_to is set, NeoMutt will add a Mail-Followup-To header. For
>   unsubscribed lists, this will include your personal address,
>   ensuring you receive a copy of replies. For subscribed mailing
>   lists, the header will not, telling other users' mail user agents
>   not to send copies of replies to your personal address.
> 
>   Note
> 
>   The Mail-Followup-To header is a non-standard extension which is not
>   supported by all mail user agents. Adding it is not bullet-proof
>   against receiving personal CCs of list messages. Also note that the
>   generation of the Mail-Followup-To header is controlled by the
>   $followup_to configuration variable since it's common practice on
>   some mailing lists to send Cc upon replies (which is more a group-
>   than a list-reply).
> 
>   More precisely, NeoMutt maintains lists of regular expressions for
>   the addresses of known and subscribed mailing lists. Every
>   subscribed mailing list is known. To mark a mailing list as known,
>   use the list command. To mark it as subscribed, use subscribe .
> 
>   You can use regular expressions with both commands. To mark all
>   messages sent to a specific bug report's address on Debian's bug
>   tracking system as list mail, for instance, you could say
> 
>   subscribe [0-9]+.*@bugs.debian.org
> 
>   as it's often sufficient to just give a portion of the list's e-mail 
> address.
> 
>   Specify as much of the address as you need to to remove
>   ambiguity. For example, if you've subscribed to the NeoMutt mailing
>   list, you will receive mail addressed to
>   neomutt-us...@neomutt.org. So, to tell NeoMutt that this is a
>   mailing list, you could add lists neomutt-users@ to your
>   initialization file. To tell NeoMutt that you are subscribed to it,
>   add subscribe neomutt-users to your initialization file instead. If
>   you also happen to get mail from someone whose address is
>   neomutt-us...@example.com, you could use lists
>   ^neomutt-users@neomutt\\.org$ or subscribe
>   ^neomutt-users@neomutt\\.org$ to match only mail from the actual
>   list.
> 
>   The -group flag adds all of the subsequent regular expressions to
>   the named address group in addition to adding to the specified
>   address list.
> 
>   The ???unlists??? command is used to remove a token from the list of
>   known and subscribed mailing-lists. Use ???unlists *??? to remove all
>   tokens.
> 
>   To remove a mailing list from the list of subscribed mailing lists,
>   but keep it on the list of known mailing lists, use unsubscribe .
> 
> -- 
> Ian


Re: Newbie Help for multiple signatures

2024-07-21 Thread googly . negotiator862
On Sat, Jul 20, 2024 at 04:09:20PM GMT, Kurt Hackenberg wrote:

> >   https://neomutt.org/guide/configuration.html#lists

> It might not help.  MN Repair earlier said this:

> > I do not have internet access. My email service is a 3rd party
> > private APN. So please exclude links in your answers.

Mea culpa. Here's the section I linked:

  14. Mailing Lists

  Usage:

  lists [ -group name ...] regex [ regex ...]
  unlists { * | regex ... }
  subscribe [ -group name ...] regex [ regex ...]
  unsubscribe { * | regex ... }

  NeoMutt has a few nice features for handling mailing lists. In order
  to take advantage of them, you must specify which addresses belong
  to mailing lists, and which mailing lists you are subscribed
  to. NeoMutt also has limited support for auto-detecting mailing
  lists: it supports parsing mailto: links in the common List-Post:
  header which has the same effect as specifying the list address via
  the lists command (except the group feature). Once you have done
  this, the  function will work for all known
  lists. Additionally, when you send a message to a known list and
  $followup_to is set, NeoMutt will add a Mail-Followup-To header. For
  unsubscribed lists, this will include your personal address,
  ensuring you receive a copy of replies. For subscribed mailing
  lists, the header will not, telling other users' mail user agents
  not to send copies of replies to your personal address.

  Note

  The Mail-Followup-To header is a non-standard extension which is not
  supported by all mail user agents. Adding it is not bullet-proof
  against receiving personal CCs of list messages. Also note that the
  generation of the Mail-Followup-To header is controlled by the
  $followup_to configuration variable since it's common practice on
  some mailing lists to send Cc upon replies (which is more a group-
  than a list-reply).

  More precisely, NeoMutt maintains lists of regular expressions for
  the addresses of known and subscribed mailing lists. Every
  subscribed mailing list is known. To mark a mailing list as known,
  use the list command. To mark it as subscribed, use subscribe .

  You can use regular expressions with both commands. To mark all
  messages sent to a specific bug report's address on Debian's bug
  tracking system as list mail, for instance, you could say

  subscribe [0-9]+.*@bugs.debian.org

  as it's often sufficient to just give a portion of the list's e-mail address.

  Specify as much of the address as you need to to remove
  ambiguity. For example, if you've subscribed to the NeoMutt mailing
  list, you will receive mail addressed to
  neomutt-us...@neomutt.org. So, to tell NeoMutt that this is a
  mailing list, you could add lists neomutt-users@ to your
  initialization file. To tell NeoMutt that you are subscribed to it,
  add subscribe neomutt-users to your initialization file instead. If
  you also happen to get mail from someone whose address is
  neomutt-us...@example.com, you could use lists
  ^neomutt-users@neomutt\\.org$ or subscribe
  ^neomutt-users@neomutt\\.org$ to match only mail from the actual
  list.

  The -group flag adds all of the subsequent regular expressions to
  the named address group in addition to adding to the specified
  address list.

  The “unlists” command is used to remove a token from the list of
  known and subscribed mailing-lists. Use “unlists *” to remove all
  tokens.

  To remove a mailing list from the list of subscribed mailing lists,
  but keep it on the list of known mailing lists, use unsubscribe .

-- 
Ian


Re: Newbie Help for multiple signatures

2024-07-20 Thread Kurt Hackenberg
On Sat, Jul 20, 2024 at 10:56:08AM -0700, 
googly.negotiator...@aceecat.org wrote:



On Sat, Jul 20, 2024 at 08:55:24AM GMT, MN Repair wrote:


Using Mutt 1.7.2. My manual stops at chapter 10. I need basic help
to get started once. Mind sharing chapter 14 ?


My manual stops at chapter 10 too.  Its chapter 3 (Configuration) has a 
section 14 named "Mailing Lists".



  https://neomutt.org/guide/configuration.html#lists

...

I think this is a case where a search engine (e.g. dukgo) would've
helped.


It might not help.  MN Repair earlier said this:


I do not have internet access. My email service is a 3rd party private
APN. So please exclude links in your answers.


Re: Newbie Help for multiple signatures

2024-07-20 Thread googly . negotiator862
On Sat, Jul 20, 2024 at 08:55:24AM GMT, MN Repair wrote:

> Using Mutt 1.7.2. My manual stops at chapter 10. I need basic help
> to get started once. Mind sharing chapter 14 ?

The header of your mail says:

   User-Agent: NeoMutt/20170113 (1.7.2)

which explains the difference, and strictly speaking it means that
your question is out of scope here (AFAIK neomutt has its own mailing
list stable). But, as a neomutt user myself, I can point you:

   https://neomutt.org/guide/configuration.html#lists

This document covers the current version but AFAIK this area has not
changed in a long while, at least from a user POV.

I think this is a case where a search engine (e.g. dukgo) would've
helped.

-- 
Ian


Re: Newbie Help for multiple signatures

2024-07-20 Thread MN Repair
Using Mutt 1.7.2. My manual stops at chapter 10. I need basic help to 
get started once. Mind sharing chapter 14 ?
-- 
MN Repair

In days of yore Sat, Jul 20, 2024 at 01:15:20PM +0200, Rene Kita quoth thus:
> On Sat, Jul 20, 2024 at 06:47:09AM -0400, MN Repair wrote:
> [...]
> > I am still baffled on the mailing list setup
> [...]
> > In days of yore Wed, Jul 17, 2024 at 07:51:34PM -0400, MN Repair quoth thus:
> [...]
> > >  Also I am baffled on how to add a mailing list. Could someone give me a 
> > > good example ? 
> 
> What exactly are you struggling with? Did you read Ch. 14. Mailing Lists
> of the fine manual[0]?
> 
> 0: On my Debian-based system the manual can be found in
>/usr/share/doc/mutt/html. Other systems may vary.


Re: Newbie Help for multiple signatures

2024-07-20 Thread Rene Kita
On Sat, Jul 20, 2024 at 06:47:09AM -0400, MN Repair wrote:
[...]
> I am still baffled on the mailing list setup
[...]
> In days of yore Wed, Jul 17, 2024 at 07:51:34PM -0400, MN Repair quoth thus:
[...]
> >  Also I am baffled on how to add a mailing list. Could someone give me a 
> > good example ? 

What exactly are you struggling with? Did you read Ch. 14. Mailing Lists
of the fine manual[0]?

0: On my Debian-based system the manual can be found in
   /usr/share/doc/mutt/html. Other systems may vary.


Newbie Help for multiple signatures

2024-07-17 Thread MN Repair
Hello
 Can someone give me an example of using a different signature file 
based on the send to address ? I have only 1 email address but would 
prefer a different signature for a certain address I send to.

 Also I am baffled on how to add a mailing list. Could someone give me a 
good example ? 

I do not have internet access. My email service is a 3rd party private 
APN. So please exclude links in your answers. If this topic has been 
covered already, sorry for the bother. 

PS My first post here. I am better at fixing engines, etc than tweaking 
Mutt :)
-- 
MN Repair



Newbie thanks to all for configuration help

2023-04-12 Thread Dan Dunfee


Thanks to all those who provided info recently for setting up a mutt 
configuration
to use gmail. I will soon be trying the valuable info suggested.

Thanks again,

Dan

-- 
XR


Re: Newbie help for an imap gmailg connection

2023-04-11 Thread Kevin J. McCarthy

On Tue, Apr 11, 2023 at 05:32:38PM -0400, Dan Dunfee wrote:
What are the steps to get this additional gmail "app password" for use 
as "secret_app_password" in muttrc?


My information may be out of date, but I believe Google first requires 
"2-step verification" to be enabled before an "app password" can be 
generated.


This can be done at


Once that's done, an app password can be generated at the bottom of that
same page.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: Newbie help for an imap gmailg connection

2023-04-11 Thread Patrick Shanahan
* Dan Dunfee  [04-11-23 17:34]:
> Hello Anton,
> 
> I wrote:
> 
> > > I want to connect using imap with an gmail account which I hear requires
> > > some additional security steps these days.
> > > [...]
> >
> > For me gmail with mutt via imap to read and smtp to send works fine.
> > Some time ago i created "app password" via gmail web interface and it
> > works just perfect since approximately 6 months that way.
> 
> What are the steps to get this additional gmail "app password" for use as
> "secret_app_password" in muttrc?
> 
> Thanks,
> 
> Dan
> > >
> > > Has anyone info/experience about such a mutt imap gamil connection 
> > > possibility?
> > >
> >
> > here is relevant snippet from my .muttrc:
> >
> > # Smtp settings for gmail sending {
> > set smtp_url = "smtps://anton.sharo...@smtp.gmail.com"
> > set smtp_pass = "my_very_secret_app_password"
> > # }
> >
> > # gmail imap specific {
> > set ssl_starttls=yes
> > set ssl_force_tls=yes
> > set imap_user = "anton.sharo...@gmail.com"
> > set imap_pass = "my_very_secret_app_password"
> > set spoolfile = imaps://imap.gmail.com/bSpool
> > # gmail imap specific }
> >
> > i have configured via gmail web interface a filter to assign a label
> > "bSpool" to every incoming mail. That way, working with them in mutt
> > allows me to just delete messages, which i read, via mutt - and gmail
> > removes the label "bSpool" from them as a result. At the same time all
> > messages are still kept on server labeled potenially somehow differently
> > (my labels were configured long ago before i started to use mutt, and i
> > like to keep all messages in my gmail box anyway to access them from
> > other devices).
> >
> > i saw as well recommendation to use:
> >
> >
> > set spoolfile = imaps://imap.gmail.com/INBOX
> >
> >
> > and suspect it will really delete messages from gmail server if you
> > delete them from within mutt - but it was never my goal and i never
> > tested such possibility.
> >
> > Hope that helps, Anton
> >


just google for "gmail app password"

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
Photos: http://wahoo.no-ip.org/piwigo   paka @ IRCnet oftc


Re: Newbie help for an imap gmailg connection

2023-04-11 Thread Dan Dunfee
Hello Anton,

I wrote:

> > I want to connect using imap with an gmail account which I hear requires
> > some additional security steps these days.
> > [...]
>
> For me gmail with mutt via imap to read and smtp to send works fine.
> Some time ago i created "app password" via gmail web interface and it
> works just perfect since approximately 6 months that way.

What are the steps to get this additional gmail "app password" for use as
"secret_app_password" in muttrc?

Thanks,

Dan
> >
> > Has anyone info/experience about such a mutt imap gamil connection 
> > possibility?
> >
>
> here is relevant snippet from my .muttrc:
>
> # Smtp settings for gmail sending {
> set smtp_url = "smtps://anton.sharo...@smtp.gmail.com"
> set smtp_pass = "my_very_secret_app_password"
> # }
>
> # gmail imap specific {
> set ssl_starttls=yes
> set ssl_force_tls=yes
> set imap_user = "anton.sharo...@gmail.com"
> set imap_pass = "my_very_secret_app_password"
> set spoolfile = imaps://imap.gmail.com/bSpool
> # gmail imap specific }
>
> i have configured via gmail web interface a filter to assign a label
> "bSpool" to every incoming mail. That way, working with them in mutt
> allows me to just delete messages, which i read, via mutt - and gmail
> removes the label "bSpool" from them as a result. At the same time all
> messages are still kept on server labeled potenially somehow differently
> (my labels were configured long ago before i started to use mutt, and i
> like to keep all messages in my gmail box anyway to access them from
> other devices).
>
> i saw as well recommendation to use:
>
>
> set spoolfile = imaps://imap.gmail.com/INBOX
>
>
> and suspect it will really delete messages from gmail server if you
> delete them from within mutt - but it was never my goal and i never
> tested such possibility.
>
> Hope that helps, Anton
>

-- 
XR


Re: Newbie help for an imap gmailg connection

2023-04-11 Thread Patrick Shanahan
* Anton Sharonov  [04-11-23 15:44]:
> Hi, Dan,
> 
> On Tue, Apr 11, 2023 at 01:36:08PM -0400, Dan Dunfee wrote:
> > [...]
> > I want to connect using imap with an gmail account which I hear requires
> > some additional security steps these days.
> > [...]
> 
> For me gmail with mutt via imap to read and smtp to send works fine.
> Some time ago i created "app password" via gmail web interface and it
> works just perfect since approximately 6 months that way.
> 

I did the same using fetchmail.

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
Photos: http://wahoo.no-ip.org/piwigo   paka @ IRCnet oftc


Re: Newbie help for an imap gmailg connection

2023-04-11 Thread Anton Sharonov
Hi, Dan,

On Tue, Apr 11, 2023 at 01:36:08PM -0400, Dan Dunfee wrote:
> [...]
> I want to connect using imap with an gmail account which I hear requires
> some additional security steps these days.
> [...]

For me gmail with mutt via imap to read and smtp to send works fine.
Some time ago i created "app password" via gmail web interface and it
works just perfect since approximately 6 months that way.

> 
> Has anyone info/experience about such a mutt imap gamil connection 
> possibility?
>

here is relevant snippet from my .muttrc:

# Smtp settings for gmail sending {
set smtp_url = "smtps://anton.sharo...@smtp.gmail.com"
set smtp_pass = "my_very_secret_app_password"
# }

# gmail imap specific {
set ssl_starttls=yes
set ssl_force_tls=yes
set imap_user = "anton.sharo...@gmail.com"
set imap_pass = "my_very_secret_app_password"
set spoolfile = imaps://imap.gmail.com/bSpool
# gmail imap specific }

i have configured via gmail web interface a filter to assign a label
"bSpool" to every incoming mail. That way, working with them in mutt
allows me to just delete messages, which i read, via mutt - and gmail
removes the label "bSpool" from them as a result. At the same time all
messages are still kept on server labeled potenially somehow differently
(my labels were configured long ago before i started to use mutt, and i
like to keep all messages in my gmail box anyway to access them from
other devices).

i saw as well recommendation to use:


set spoolfile = imaps://imap.gmail.com/INBOX


and suspect it will really delete messages from gmail server if you
delete them from within mutt - but it was never my goal and i never
tested such possibility.

Hope that helps, Anton


Newbie help for an imap gmailg connection

2023-04-11 Thread Dan Dunfee


Hello group,

I have no experience with mutt configuration and only a little knowledge of 
using
mutt.  I want to connect using imap with an gmail account which I hear requires
some additional security steps these days.

Has anyone info/experience about such a mutt imap gamil connection possibility? 
 I
use a mac in terminal; with mutt available using a macports port installation:

mutt @2.2.9 with possible installation choices:

Variants: autocrypt, db4, debug, gdbm, [+]gnutls, gpgme, [+]idn, [+]imap, lmdb,
[+]pop, sasl, [+]smtp, sqlite3, ssl

Any help greatly appreciated, a configuration almost ready to go for imap with
gmail best of all. I happen to be a blind computer user.

Dan

-- 
XR


Re: [help] Disabling email notification not working

2022-09-11 Thread Kurt Hackenberg

On Sun, Sep 11, 2022 at 04:45:55PM -0400, Kurt Hackenberg wrote:


This example



Woops. I missed a character in copy-paste, and should have given a web 
reference anyway:



Re: [help] Disabling email notification not working

2022-09-11 Thread Kurt Hackenberg

On Sun, Sep 11, 2022 at 06:28:30PM +, Charles via Mutt-users wrote:


set folder = imap://...
set spoolfile = imap://.../INBOX

mailboxes -nonotify -nopoll $spoolfile
set timeout = 10
set mail_check = 600
set new_mail_command = "/bin/mpv /noise.mp3"


With this setup, I should not get a notification for a new email, yet, I do.


I don't know exactly what happens there, but two things look 
questionable: $folder and $spoolfile.


According to the Mutt manual, $folder is the pathname of a local 
directory, default ~/Mail, that contains your local mailboxes. That 
seems to be different from what Mutt means by "a folder": a set of 
messages, like an mbox file, a maildir, or an IMAP folder. (A "mailbox" 
is a folder that can receive new incoming mail.) One purpose of $folder 
-- maybe the only purpose -- is to give a value for the shortcut "+" or 
"=", used in pathnames of folders and mailboxes.


This example

shows $folder generalized to mean the top of an IMAP tree, but again 
it's a place where multiple folders/mailboxes live. Note that example 
sets $folder to imap://host1/, not imap://host1/INBOX. Possibly that 
example sets it just to use the shortcut "+".


$spoolfile, another pathname (default empty string) seems to have 
originally been about the old original Unix mechanism for delivering 
mail into local files, back when every Unix machine where people read 
mail, ran an MTA. The MTA delivered incoming mail for Unix user "fred" 
into, say, /var/mail/fred, an mbox file. When Fred ran a mail reader, 
it moved his new mail from that system spool file to another mbox file 
in his home directory, default ~/mbox. The Mutt variable $spoolfile, 
according to the manual, is a way to specify a non-default location of 
that system spool file. Maybe $spoolfile has been generalized from that 
original meaning to mean something with IMAP; possibly setting 
$spoolfile implies polling.


You might try not setting either of those Mutt variables, and see what 
happens.


[help] Disabling email notification not working

2022-09-11 Thread Charles via Mutt-users
Hello,

> set folder = imap://...
> set spoolfile = imap://.../INBOX
>
> mailboxes -nonotify -nopoll $spoolfile
> set timeout = 10
> set mail_check = 600
> set new_mail_command = "/bin/mpv /noise.mp3"

With this setup, I should not get a notification for a new email, yet, I do.
I receive a notification about 20 seconds after I sent myself an email with 
another email address. With mail_check, I should get the notification only 
after 10 minutes. How come?
And with -nonotify and -nopoll, I should not even get the notification.
I tried unmailboxes $spoolfile and I still get the notification and hear 
noise.mp3.
I tried running mutt with the -n option, still doesn't work. (I have mutt 2.2.7)
And and I do get "Reading configuration file '~/.mutt.rc'" in the debug log 
file.

Hope somebody has a little time to help me out.

Sent with [Proton Mail](https://proton.me/) secure email.

Re: Key is not bound. Press '?' for help. - keycode

2022-08-04 Thread Chris Narkiewicz via Mutt-users
On Thu, Jul 28, 2022 at 02:50:56PM -0700, Kevin J. McCarthy wrote:
> Try ':exec what-key' and see if that helps.

It helps! It seems that Mutt is receiving 'a' instead of C-up.

Thank you, now I need to troubleshoot urxvt.

Cheers,
Chris


Re: Key is not bound. Press '?' for help. - keycode

2022-07-28 Thread Kevin J. McCarthy

On Thu, Jul 28, 2022 at 10:36:48PM +0100, Chris Narkiewicz via Mutt-users wrote:

I need to see what mutt actually see, not what X11 sends.


Try ':exec what-key' and see if that helps.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: Key is not bound. Press '?' for help. - keycode

2022-07-28 Thread Kurt Hackenberg

On 2022/07/28 16:23, Chris Narkiewicz via Mutt-users wrote:


I configured a shortcut - C- and C- - to naviage the sidebar.
It works, but on some terminal, pressing this shortcut yields

Key is not bound.  Press '?' for help.

This is puzzling and I suspect that the terminal sends something
else. Is there a way to display the key combination that was
actually received by mutt, so I know what is wrong with the terminal?

The terminal in question is urxvt on OpenBSD.


How about if you run a hex dump program from the command line in that 
terminal emulator? Like this (in an xterm):


~$ hexdump
^[[1;5A
000 5b1b 3b31 4135 000a
007
~$

(I typed C-  C-D. Saw no output until C-D (EOF).)


Re: Key is not bound. Press '?' for help. - keycode

2022-07-28 Thread Chris Narkiewicz via Mutt-users
On Thu, Jul 28, 2022 at 04:58:30PM -0400, Patrick Shanahan wrote:
> xev and showkey

It's the terminal that does something weird,
or s-lang. xev won't help here.

There is no showkey on OpenBSD.

I need to see what mutt actually see, not what X11 sends.

Cheers,
Chris Narkiewicz


signature.asc
Description: PGP signature


Re: Key is not bound. Press '?' for help. - keycode

2022-07-28 Thread Patrick Shanahan
* mutt users list  [07-28-22 16:25]:
> Hi,
> 
> I configured a shortcut - C- and C- - to naviage the sidebar.
> It works, but on some terminal, pressing this shortcut yields
> 
> Key is not bound.  Press '?' for help.
> 
> This is puzzling and I suspect that the terminal sends something
> else. Is there a way to display the key combination that was
> actually received by mutt, so I know what is wrong with the terminal?
> 
> The terminal in question is urxvt on OpenBSD.

xev and showkey
showkey needs to be ran in a console terminal w/o X.
if you are running wayland, I dunno

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
Photos: http://wahoo.no-ip.org/piwigo   paka @ IRCnet oftc


Key is not bound. Press '?' for help. - keycode

2022-07-28 Thread Chris Narkiewicz via Mutt-users
Hi,

I configured a shortcut - C- and C- - to naviage the sidebar.
It works, but on some terminal, pressing this shortcut yields

Key is not bound.  Press '?' for help.

This is puzzling and I suspect that the terminal sends something
else. Is there a way to display the key combination that was
actually received by mutt, so I know what is wrong with the terminal?

The terminal in question is urxvt on OpenBSD.

Best regards,
Chris Narkiewicz


signature.asc
Description: PGP signature


Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-27 Thread raf
On Sat, Nov 27, 2021 at 12:36:54PM +0100, Mihai Lazarescu  
wrote:

> On Friday, November 26, 2021 at 23:41:46 -0600, mai...@email.com wrote:
> 
> > Basically, if the email is postponed and called from the draft, it uses my 
> > work account (because that is set up to be the default). Is it possible to 
> > set things up so that mutt will look at the sending address (@email dot com 
> > or the work address, say) and decide to use the appropriate smtp?
> 
> send2-hook seems the closest, but it's only triggered after edits:
> 
> http://www.mutt.org/doc/manual/#send2-hook
> 
> «send2-hook is matched every time a message is changed, either by editing
> it, or by using the compose menu to change its recipients or subject.
> send2-hook is executed after send-hook, and can, e.g., be used to set
> parameters such as the $sendmail variable depending on the message's sender
> address.»
> 
> For other cases you may want to define macros to manually change the roles,
> e.g.:
> 
> macro index,pager,compose  ":set from = ...:set smtp_url 
> = ...:set smtp_pass = ...:set smtp_url"
> 
> The last :set smtp_url just displays the current SMTP URL so you can double
> check that you called the right macro. :-)
> 
> Best,
> Mihai

When I have had to do things based on the sender address,
I had to "set editor" to a script that would perform the
necessary modifications to the email before and after
invoking the real editor on the file.

cheers,
raf



Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-27 Thread Mihai Lazarescu

On Friday, November 26, 2021 at 23:41:46 -0600, mai...@email.com wrote:


Basically, if the email is postponed and called from the draft, it uses my work 
account (because that is set up to be the default). Is it possible to set 
things up so that mutt will look at the sending address (@email dot com or the 
work address, say) and decide to use the appropriate smtp?


send2-hook seems the closest, but it's only triggered after edits:

http://www.mutt.org/doc/manual/#send2-hook

«send2-hook is matched every time a message is changed, either 
by editing it, or by using the compose menu to change its 
recipients or subject. send2-hook is executed after send-hook, 
and can, e.g., be used to set parameters such as the $sendmail 
variable depending on the message's sender address.»


For other cases you may want to define macros to manually change 
the roles, e.g.:


macro index,pager,compose  ":set from = ...:set smtp_url = ...:set 
smtp_pass = ...:set smtp_url"

The last :set smtp_url just displays the current SMTP URL so 
you can double check that you called the right macro. :-)


Best,
Mihai


Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-26 Thread maitra
On Fri Nov26'21 05:53:54PM, Mihai Lazarescu wrote:
> From: Mihai Lazarescu 
> Date: Fri, 26 Nov 2021 17:53:54 +0100
> To: mutt-users@mutt.org
> Subject: Re: [Mutt] help on complicated per-folder or per-sender sending
>  email hooks
>
> On Thursday, November 25, 2021 at 18:32:50 -0600, mai...@email.com wrote:
>
> > I had a few more questions. Is it possible to have a hook based on where 
> > the email is coming to? So, if I am in this folder, then I use the above, 
> > but I am wondering if I can have a hook that says something like if the 
> > e-mail was sent to mai...@email.com then use the same account.
>
> reverse_name may help if you always want to reply using the address on which
> you received the message.
>
> For more flexibility, you may want to unset reverse_name and look at
> reply-hook and/or send-hook and send2-hook instead, e.g.:
>
> reply-hook  '.' 'set from = [your address when no match]
> reply-hook  '~h @([-[:alnum:]_]+\.)*somedomain\.com' 'set from = ...'
>
> and send-to counterparts:
>
> send-hook   '! ~Q' 'set from = [your address when no match]
> send-hook   '~t @([-[:alnum:]_]+\.)*somedomain\.com' 'set from = ...'
> send2-hook  '~t @([-[:alnum:]_]+\.)*somedomain\.com' 'set from = ...'
>
> > Also, how do I give multiple folders for a hook? So, in the above, if I am 
> > in mutt or R or fedora, etc, I can use that account? Or do I specify one 
> > hook for each folder?
>
> This should do:
>
> folder-hook '(mutt|R|fedora)' 'set ...'
>

Mihai,

Thanks very much again! So I have found a flaw in my setup. Basically, if the 
email is postponed and called from the draft, it uses my work account (because 
that is set up to be the default). Is it possible to set things up so that mutt 
will look at the sending address (@email dot com or the work address, say) and 
decide to use the appropriate smtp?

Many thanks and best wishes,
Ranjan


Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-26 Thread Mihai Lazarescu

On Thursday, November 25, 2021 at 18:32:50 -0600, mai...@email.com wrote:


I had a few more questions. Is it possible to have a hook based on where the 
email is coming to? So, if I am in this folder, then I use the above, but I am 
wondering if I can have a hook that says something like if the e-mail was sent 
to mai...@email.com then use the same account.


reverse_name may help if you always want to reply using the 
address on which you received the message.


For more flexibility, you may want to unset reverse_name and look 
at reply-hook and/or send-hook and send2-hook instead, e.g.:


reply-hook  '.' 'set from = [your address when no match]
reply-hook  '~h @([-[:alnum:]_]+\.)*somedomain\.com' 'set from = ...'

and send-to counterparts:

send-hook   '! ~Q' 'set from = [your address when no match]
send-hook   '~t @([-[:alnum:]_]+\.)*somedomain\.com' 'set from = ...'
send2-hook  '~t @([-[:alnum:]_]+\.)*somedomain\.com' 'set from = ...'


Also, how do I give multiple folders for a hook? So, in the above, if I am in 
mutt or R or fedora, etc, I can use that account? Or do I specify one hook for 
each folder?


This should do:

folder-hook '(mutt|R|fedora)' 'set ...'


Many thanks again for your help, Mihail!


Glad I can help.

Mihai


Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-25 Thread maitra
On Wed Nov24'21 06:21:06PM, Mihai Lazarescu wrote:
> From: Mihai Lazarescu 
> Date: Wed, 24 Nov 2021 18:21:06 +0100
> To: mutt-users@mutt.org
> Subject: Re: [Mutt] help on complicated per-folder or per-sender sending
>  email hooks
>
> On Wednesday, November 24, 2021 at 10:23:31 -0600, Ranjan Maitra wrote:
>
> > set smtp_url="smtp://yourusern...@smtp.example.com:587/"
> > set smtp_pass="Your1!Really2@AweSome3#Password"
> >
> > But what do I do about the work email that uses postfix?
>
> If you unset smtp_url mutt should connect to port 25 on localhost to send,
> where should listen postfix properly configured for work in your case.
>
> > 2. I want e-mails in a few folders (basically the ones attached
> > to mailing lists) to use a specific account. For example, I
> > have a folder called mutt, and I would like to be able to use
> > this email address that I am using to be my account whenever I
> > send emails from this folder. Otherwise, I would like emails
> > sent to a specific account also be responded to from that
> > account.
>
> I think you want to use folder-hook recipes, something like:
>
> folder-hook .  'unset smtp_url'
> folder-hook 'mutt' 'set from = mai...@email.com; set 
> smtp_url="smtp://yourusern...@smtp.example.com:587/"; set 
> smtp_pass="Your1!Really2@AweSome3#Password"'

Thanks very much for this. This was very helpful to understand and get started.

It turns out that I had to play around a bit more, and set ssl etc, but it 
looks like it is working. The following was helpful on this account: 
https://bbs.archlinux.org/viewtopic.php?id=159584.

I had a few more questions. Is it possible to have a hook based on where the 
email is coming to? So, if I am in this folder, then I use the above, but I am 
wondering if I can have a hook that says something like if the e-mail was sent 
to mai...@email.com then use the same account.

Also, how do I give multiple folders for a hook? So, in the above, if I am in 
mutt or R or fedora, etc, I can use that account? Or do I specify one hook for 
each folder?

Many thanks again for your help, Mihail!

Best wishes,
Ranjan





Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-24 Thread Mihai Lazarescu

On Wednesday, November 24, 2021 at 10:23:31 -0600, Ranjan Maitra wrote:


set smtp_url="smtp://yourusern...@smtp.example.com:587/"
set smtp_pass="Your1!Really2@AweSome3#Password"

But what do I do about the work email that uses postfix?


If you unset smtp_url mutt should connect to port 25 on localhost 
to send, where should listen postfix properly configured for work 
in your case.



2. I want e-mails in a few folders (basically the ones attached
to mailing lists) to use a specific account. For example, I
have a folder called mutt, and I would like to be able to use
this email address that I am using to be my account whenever I
send emails from this folder. Otherwise, I would like emails
sent to a specific account also be responded to from that
account.


I think you want to use folder-hook recipes, something like:

folder-hook .  'unset smtp_url'
folder-hook 'mutt' 'set from = mai...@email.com; set 
smtp_url="smtp://yourusern...@smtp.example.com:587/"; set 
smtp_pass="Your1!Really2@AweSome3#Password"'

Mihai


help on complicated per-folder or per-sender sending email hooks

2021-11-24 Thread Ranjan Maitra
Dear friends,

I finally and successfully moved my work email to mutt a few months ago and it 
has been working all right so far, but for two of my unresolved issues which I 
would like to finally address, with some help and advice.

My second issue is on improving search abilities, but I want to first resolve 
the first issue which is that I would like to be able to use mutt for all my 
work e-mail, and this will handle the sending mail aspect through postfix. This 
is what my current setup does and this works, but it only works for my work 
email and sending from there.

For my personal email addresses (two in number), I want to have the following 
setup:

1. Use mutt's in-built sendmail to send emails from here. From here: 
https://gitlab.com/muttmua/mutt/-/wikis/MuttFaq/Sendmail
I think I know what to do for these personal emails. Specifically, I can do the 
following:

set smtp_url="smtp://yourusern...@smtp.example.com:587/"
set smtp_pass="Your1!Really2@AweSome3#Password"

(copied from there). But what do I do about the work email that uses postfix?

2. I want e-mails in a few folders (basically the ones attached to mailing 
lists) to use a specific account. For example, I have a folder called mutt, and 
I would like to be able to use this email address that I am using to be my 
account whenever I send emails from this folder. Otherwise, I would like emails 
sent to a specific account also be responded to from that account.

Now, I know that the way to go about doing all this is using hooks (which I 
have only some basic familiarity with now), but I am a bit lost as to how to go 
about doing the above, and looking around

Can someone please point me to some resources, or advice on how to go about 
doing this?

I use fetchmail and procmail to get email into folders and so imap, etc is not 
important to me: I guess i am old-school.

Thanks for any advice you are able to give, and my best wishes,
Ranjan


Re: Help testing 1.11 BETA tarball

2018-11-06 Thread benfitzg
On Tue, Nov 06, 2018 at 06:38:13PM -0800, Kevin J. McCarthy wrote:
> Hi Everyone,
> 
> The 1.11 release is coming up in about three weeks.  This time I'm
> trying something different and have prepared a BETA tarball to get
> testing/feedback in advance.  The translation files haven't been updated
> yet, but the tarball is at: .

I built mutt tonight from https://gitlab.com/muttmua/mutt.git hash c9ab855,
works great. Last update was *today* but not sure if it's 1.11.

Just wanted to thank you for all the work you do on this *amazing* mail
client. I use it every day at work. My email load there is unmanageable when
using ms outlook.

thanks,

-- 
Ben Fitzgerald


Help testing 1.11 BETA tarball

2018-11-06 Thread Kevin J. McCarthy
Hi Everyone,

The 1.11 release is coming up in about three weeks.  This time I'm
trying something different and have prepared a BETA tarball to get
testing/feedback in advance.  The translation files haven't been updated
yet, but the tarball is at: .

The long list of changes is at the bottom of this email, but there are
three main features I'd like to especially note for testing/feedback:

1. IMAP CONDSTORE and QRESYNC support.

If your IMAP server supports QRESYNC, please enable $imap_qresync and
$imap_condstore.  (Alas, Gmail users should not do this.  It doesn't
support QRESYNC and enabling CONDSTORE actually appears to slow Gmail
down.)

In theory, QRESYNC should make it much faster to open mailboxes, after
the initial sync.  I've tried to test this with FastMail and Dovecot,
but I don't really use IMAP daily.  It would be nice to hear from
others whether the feature works for you.

How do you test for support?  Enable 'mutt -d 2', connect to the server
and disconnect.  Then peek in ~/.muttdebug0: grep for 'CAPABILITY' and
then for 'QRESYNC' inside those lines.

2. Inotify mailbox monitoring.

This is enabled by default (but can be turned off with
--disable-filemonitor).  This should allow Mutt to notice mailbox
changes much faster.  Note that standard polling still occurs via
$mail_check and $timeout, so inotify overflows shouldn't result in Mutt
failing to notice new mail.

3. Dynamic $index_format content using patterns.

See 
for an explanation and examples.  This is fairly general purpose, but
can be used to dynamically format dates for instance.  I just added
this, so would appreciate some testing.


How to compile
==

On Debian-derived distros, I recommend
% sudo apt build-dep mutt
% sudo apt install libkyotocabinet-dev

Here's the configuration I use, as a starting point.  If you use
another header cache backend, you'll need to fiddle with the last few
arguments:

% ./configure   \
--prefix=/usr/local \
--with-mailpath=/var/mail   \
--enable-debug  \
--enable-fcntl  \
--enable-gpgme  \
--enable-hcache \
--enable-imap   \
--enable-smtp   \
--enable-pop\
--enable-sidebar\
--enable-compressed \
--with-curses   \
--with-gnutls   \
--with-sasl \
--with-gss  \
--with-idn2 \
--with-mixmaster\
--without-gdbm  \
--without-bdb   \
--without-qdbm  \
--without-tokyocabinet  \
--with-kyotocabinet

You may need to use --with-idn instead, if your system doesn't have a
new IDN2 installed.  Also, note that you may want to remove your old
header cache files when updating, especially if you compiled with a
different backend.


The longer list of updates:
===
(though I may have missed a few things)

* inotify mailbox monitoring on Linux

* OAUTHBEARER support for IMAP, SMTP and POP
  See 
https://gitlab.com/muttmua/mutt/commit/798f749eeeb98ed04028521a2eb3e505c1a83574

*  manually updates mailbox statistics, like $mail_check_stats 
when set

* Thread limited views, e.g. ~(pattern), now show new mail as it arrives.

* -z and -Z options now work for IMAP mailboxes

* IMAP CONDSTORE and QRESYNC support.
  Set $imap_condstore and/or $imap_qresync to try them out.
  Note that GMail doesn't support QRESYNC and enabling CONDSTORE can actually
  make it slower, so please don't enable for GMail.

* $abort_noattach now skips quoted lines (as defined by $quote_regexp and 
$smileys).

* The initial IMAP message downloading can be aborted with Ctrl-C.

*  composes a message to the sender of the selected
  message.  (This also works from the attachment menu)

* Address book queries now support multibyte (multicolumn) output

* pgpring has been renamed to mutt_pgpring.

* Cert prompts now show sha-256 and sha-1

* Non-threaded $sort_aux "reverse-" settings now actually work

* Gnu info formatted documentation is generated.

* index-format-hook and the new %@name@ expando for $index_format all
  dynamic index formats using pattern matching.
  See https://muttmua.gitlab.io/mutt/manual-dev.html#index-format-hook

Thanks everyone!

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: Need some help with send-hook and folder-hook, their order in muttrc

2017-11-11 Thread Jason
On Tue, Nov 07, 2017 at 10:17:04AM +, Chris Green wrote:
> I want messages sent from one particular folder to have a different
> From: address.
> 
> Currently the only settings I have in my muttrc that affect the From:
> address are:-
> 
> send-hook .  'my_hdr From: Chris Green '
> ...
> ...
> send-hook ~l 'my_hdr From: Chris Green '
> 
> 
> I use the c...@isbd.net address for all my mailing lists.
> 
> 
> I'd like to make it so that when I'm in a particular folder (which
> will probably be called 'cl') my From: address will also be
> c...@isbd.net. 
> 
> So I need to add something like:-
> 
> folder-hook cl 'my_hdr From: Chris Green '
> 
> However I'm a little unclear what else I need, do I need something
> like:-
> 
> folder-hook . 'my_hdr From: Chris Green '
> 
> and does it go before or after the specific 'cl one?  Plus, do these
> two settings make the send-hook setting of my From: address redundant?
> I still need the 'send hook ~l' one of course.
> 

Couldn't you just do something like this:

folder-hook . 'set from=ch...@isbd.co.uk; set realname="Chris Green"'
folder-hook /path/to/cl 'set from=c...@isbd.net; set realname="Chris Green"'

The first line sets the default and the second line sets it for the cl
folder. Although I'm not sure how this interacts with your send-hook
lines; maybe you'd need to remove the 'send-hook . ' line.

-- 
Jason



Re: Need some help with send-hook and folder-hook, their order in muttrc

2017-11-10 Thread Chris Green
On Tue, Nov 07, 2017 at 09:32:09PM +, David Woodfall wrote:
> > On Tue, Nov 07, 2017 at 08:49:06AM -0800, Ian Zimmerman wrote:
> > > On 2017-11-07 10:17, Chris Green wrote:
> > > 
> > > > I'd like to make it so that when I'm in a particular folder (which
> > > > will probably be called 'cl') my From: address will also be
> > > > c...@isbd.net.
> > > >
> > > > So I need to add something like:-
> > > >
> > > > folder-hook cl 'my_hdr From: Chris Green '
> > > >
> > > > However I'm a little unclear what else I need,
> > > 
> > > If you use my_hdr in folder hooks at all, you probably need something
> > > like this line, from my own .muttrc:
> > > 
> > > folder-hook . "unmy_hdr to from reply-to bcc newsgroups x-loosely-listed"
> > > 
> > > >From my experience, you'll never be able to keep track of them
> > > individually and add the return-to-default hook for each header 
> > > separately.
> > > 
> > OK, it seems to get rather messy.
> > 
> > I think it may be easier to have a macro which
> > 
> >Changes my_hdr
> >Sends the message
> >Changes my_hdr back
> > 
> > -- 
> > Chris Green
> 
> What I do is have a hooks file which runs other hooks files depending
> on the folder:
> 
Ah, now that's clever, it might well do exactly what I need in a way
that I can understand, thanks.


> My .mutt/hooks:
> 
> folder-hook 'imaps://domain/.*' source ~/.mutt/default
> folder-hook =lists/* source ~/.mutt/listhook
> 
> My .mutt/default
> 
> my_hdr From: David Woodfall 
> set sort=threads
> 
> My .mutt/listhook:
> 
> set collapse-all
> set sort=threads
> my_hdr From: David Woodfall 
> 
Thanks for that, it looks very close to the sort of thing I want to do.

-- 
Chris Green


Re: Need some help with send-hook and folder-hook, their order in muttrc

2017-11-07 Thread David Woodfall

On Tue, Nov 07, 2017 at 08:49:06AM -0800, Ian Zimmerman wrote:

On 2017-11-07 10:17, Chris Green wrote:

> I'd like to make it so that when I'm in a particular folder (which
> will probably be called 'cl') my From: address will also be
> c...@isbd.net.
>
> So I need to add something like:-
>
> folder-hook cl 'my_hdr From: Chris Green '
>
> However I'm a little unclear what else I need,

If you use my_hdr in folder hooks at all, you probably need something
like this line, from my own .muttrc:

folder-hook . "unmy_hdr to from reply-to bcc newsgroups x-loosely-listed"

>From my experience, you'll never be able to keep track of them
individually and add the return-to-default hook for each header separately.


OK, it seems to get rather messy.

I think it may be easier to have a macro which

   Changes my_hdr
   Sends the message
   Changes my_hdr back

--
Chris Green


What I do is have a hooks file which runs other hooks files depending
on the folder:

My .mutt/hooks:

folder-hook 'imaps://domain/.*' source ~/.mutt/default
folder-hook =lists/* source ~/.mutt/listhook

My .mutt/default

my_hdr From: David Woodfall 
set sort=threads

My .mutt/listhook:

set collapse-all
set sort=threads
my_hdr From: David Woodfall 

The default file will set the header back after it has been changed in
the lists folder.


Re: Need some help with send-hook and folder-hook, their order in muttrc

2017-11-07 Thread Chris Green
On Tue, Nov 07, 2017 at 08:49:06AM -0800, Ian Zimmerman wrote:
> On 2017-11-07 10:17, Chris Green wrote:
> 
> > I'd like to make it so that when I'm in a particular folder (which
> > will probably be called 'cl') my From: address will also be
> > c...@isbd.net. 
> > 
> > So I need to add something like:-
> > 
> > folder-hook cl 'my_hdr From: Chris Green '
> > 
> > However I'm a little unclear what else I need, 
> 
> If you use my_hdr in folder hooks at all, you probably need something
> like this line, from my own .muttrc:
> 
> folder-hook . "unmy_hdr to from reply-to bcc newsgroups x-loosely-listed"
> 
> >From my experience, you'll never be able to keep track of them
> individually and add the return-to-default hook for each header separately.
> 
OK, it seems to get rather messy.

I think it may be easier to have a macro which

Changes my_hdr
Sends the message
Changes my_hdr back

-- 
Chris Green


Re: Need some help with send-hook and folder-hook, their order in muttrc

2017-11-07 Thread Ian Zimmerman
On 2017-11-07 10:17, Chris Green wrote:

> I'd like to make it so that when I'm in a particular folder (which
> will probably be called 'cl') my From: address will also be
> c...@isbd.net. 
> 
> So I need to add something like:-
> 
> folder-hook cl 'my_hdr From: Chris Green '
> 
> However I'm a little unclear what else I need, 

If you use my_hdr in folder hooks at all, you probably need something
like this line, from my own .muttrc:

folder-hook . "unmy_hdr to from reply-to bcc newsgroups x-loosely-listed"

>From my experience, you'll never be able to keep track of them
individually and add the return-to-default hook for each header separately.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet, fetch the TXT record for the domain.


Need some help with send-hook and folder-hook, their order in muttrc

2017-11-07 Thread Chris Green
I want messages sent from one particular folder to have a different
From: address.

Currently the only settings I have in my muttrc that affect the From:
address are:-

send-hook .  'my_hdr From: Chris Green '
...
...
send-hook ~l 'my_hdr From: Chris Green '


I use the c...@isbd.net address for all my mailing lists.


I'd like to make it so that when I'm in a particular folder (which
will probably be called 'cl') my From: address will also be
c...@isbd.net. 

So I need to add something like:-

folder-hook cl 'my_hdr From: Chris Green '

However I'm a little unclear what else I need, do I need something
like:-

folder-hook . 'my_hdr From: Chris Green '

and does it go before or after the specific 'cl one?  Plus, do these
two settings make the send-hook setting of my From: address redundant?
I still need the 'send hook ~l' one of course.

-- 
Chris Green


Re: need some help about organize message in mutt

2016-08-06 Thread Erik Christiansen
On 06.08.16 06:56, Patrick Shanahan wrote:
> 
> You will forgive "senior" memory :)

Am bailing out the same canoe daily, here.
The stuff which has moved from memory to "forgettery" is horrifying.
The only saving grace is that most of it comes back with a peek at old
notes, and a bit of keyboard thumping.

Erik


Re: need some help about organize message in mutt

2016-08-06 Thread Patrick Shanahan
* Erik Christiansen  [08-06-16 02:16]:
 [...] 
> In contrast, that http link is up, so either method should work.
> 
> > I still receive mail from the procmail list, several in the last two
> > weeks, but few...
> 
> That's curious, as the last message in my procmail inbox is from June
> 3rd. My mail log also shows none more recent, so it's not just that I've
> deleted more recent arrivals.
> 
> Viewing the archive by date:
> http://mailman.rwth-aachen.de/pipermail/procmail/2016-June/date.html
> confirms that the most recent post is Fri Jun 3 00:56:14 CEST 2016.
> 
> Gabriel, it is a low-traffic list, so a quiet period does not confirm
> that the list is down. Would you like to post a query, then we'll see.
> 
> Patrick, could you please confirm newer traffic? As a long-term
> subscriber, I'd be irked by having been spontaneously dropped off.
> There's then also be the archive to be fixed.

You will forgive "senior" memory :)

You are correct, last I have archived but not necessarily last mail there,
is:
  Date: Thu, 2 Jun 2016 16:56:14 -0600
  From: "@lbutlr" 
  To: procm...@lists.rwth-aachen.de
  Subject: Re: Working sms time check?
  
-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


Re: need some help about organize message in mutt

2016-08-06 Thread Gabriel Philippe
On Sat, Aug 6, 2016 at 8:10 AM, Erik Christiansen
 wrote:
> Ah, yes, a DNS "dig" on procmail.org fails, and a visit to:
> http://www.procmail.org/   gives:
> "Site hosting in transit, information will be back up shortly."

According to archive.org, this has not changed since at least the
beginning of 2016.


> However, from the headers of a recent list post we have:
>
> List-Subscribe:
> ,
> 

Well, this is a German university and probably not official, but at
least I'm now there and have said "hi". Thanks Erik!

-- 
Gabriel


Re: need some help about organize message in mutt

2016-08-05 Thread Erik Christiansen
On 04.08.16 09:27, Patrick Shanahan wrote:
> * Gabriel Philippe  [08-04-16 09:25]:
> > On Tue, Aug 2, 2016 at 1:00 PM, Erik Christiansen
> >  wrote:
> > > Subscribing to the procmail mailing list would help while learning.
> > 
> > Does it still exist? procmail.org is down for several months.
> > 
> > >From the manual page of procmail: "There exists a mailinglist for
> > questions relating to any program in the procmail package:
> >  for subscription requests.".
> > Hoewever:
> > 550 5.1.1 : Recipient address
> > rejected: User unknown

Ah, yes, a DNS "dig" on procmail.org fails, and a visit to:
http://www.procmail.org/   gives:
"Site hosting in transit, information will be back up shortly."
However, from the headers of a recent list post we have:

List-Subscribe:
<http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail>,
<mailto:procmail-requ...@lists.rwth-aachen.de?subject=subscribe>

In contrast, that http link is up, so either method should work.

> I still receive mail from the procmail list, several in the last two
> weeks, but few...

That's curious, as the last message in my procmail inbox is from June
3rd. My mail log also shows none more recent, so it's not just that I've
deleted more recent arrivals.

Viewing the archive by date:
http://mailman.rwth-aachen.de/pipermail/procmail/2016-June/date.html
confirms that the most recent post is Fri Jun 3 00:56:14 CEST 2016.

Gabriel, it is a low-traffic list, so a quiet period does not confirm
that the list is down. Would you like to post a query, then we'll see.

Patrick, could you please confirm newer traffic? As a long-term
subscriber, I'd be irked by having been spontaneously dropped off.
There's then also be the archive to be fixed.

Erik


Re: need some help about organize message in mutt

2016-08-04 Thread Patrick Shanahan
* Gabriel Philippe  [08-04-16 09:25]:
> On Tue, Aug 2, 2016 at 1:00 PM, Erik Christiansen
>  wrote:
> > Subscribing to the procmail mailing list would help while learning.
> 
> Does it still exist? procmail.org is down for several months.
> 
> >From the manual page of procmail: "There exists a mailinglist for
> questions relating to any program in the procmail package:
>  for subscription requests.".
> Hoewever:
> 550 5.1.1 : Recipient address
> rejected: User unknown

I still receive mail from the procmail list, several in the last two
weeks, but few...
-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


Re: need some help about organize message in mutt

2016-08-04 Thread Gabriel Philippe
On Tue, Aug 2, 2016 at 1:00 PM, Erik Christiansen
 wrote:
> Subscribing to the procmail mailing list would help while learning.

Does it still exist? procmail.org is down for several months.

>From the manual page of procmail: "There exists a mailinglist for
questions relating to any program in the procmail package:
 for subscription requests.".
Hoewever:
550 5.1.1 : Recipient address
rejected: User unknown

-- 
Gabriel


Re: need some help about organize message in mutt

2016-08-04 Thread cs

On 04Aug2016 12:44, Yubin Ruan  wrote:

On Thu, Aug 04, 2016 at 10:38:49AM +1000, c...@zip.com.au wrote:

On 04Aug2016 07:52, Yubin Ruan  wrote:
>Fortunately, after a few googling and combining all those info I
>have gathered,
>I find something like this:
>
>push 
'~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy'

I would be inclined to replace the ";" with "" and the
"s" with "". Just to make it all clear, and to avoid
damage by any macro definition you might make. I tend to either
spell it all out with  or (for very short macros) to be
entirely keystrokes (I have a couple of macros for the "message"
view that are just bound to "q" and the same thing in the index view
i.e. "quit the message view and do what would happen in the index
view".

>I put this in my .muttrc, and every time I open mutt, it would automatically
>move all the messages which are `To: mutt-users@mutt.org` or `Cc:
>mutt-users@mutt.org` to the mutt-users folder. Although it does it remotely,
>which would slow thing down when the network connection is not so good,

You might be surprised. If all the work is being done by the imap
server and the messages are not being pulled down to mutt and pushed
back up things should be pretty fast even on a poor connection.


That trick did work, but there still exists some problems when I put more than
one `push` command in my .muttrc:
   push 
'~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy'
   push 
'~cmutt-...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-devy'
   push '~f'
   ...
   (just as an example)
It seem like that the `push` command would not block when the preceding one is
not finished, which result in that those tagged message would NOT be saved to
the appropriate folder. That means, for example, those mails that
belong to `mutt-users`
folder would now be saved to the `mutt-dev` folder, which is probably because
the second `push` take effect before the first one can finish and the first
 never get a chance to take effect.

any idea?


Two issues to be aware of:

 - the entire muttrc runs before the keyboard stream starts being processed, 
   and push just inserts text into the front of that stream. So the push 
   command does not act until the muttrc has been processed.


 - each push command pushes onto the _front_ of the keyboard stream

That second part is important: _after_ the above push commands your keyboard 
stream looks like this:


   ~f
   
~cmutt-...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-devy
   
~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy

because the last push command to execute as your:

   push '~f'

This means that your "~f" is the first thing to happen. Mutt 
_does_ wait for each command, but they aren't happening in the order you 
expected.


Cheers,
Cameron Simpson 


Re: need some help about organize message in mutt

2016-08-03 Thread Yubin Ruan
On Thu, Aug 04, 2016 at 10:38:49AM +1000, c...@zip.com.au wrote:
> On 04Aug2016 07:52, Yubin Ruan  wrote:
> >Fortunately, after a few googling and combining all those info I
> >have gathered,
> >I find something like this:
> >
> >push 
> >'~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy'
>
> I would be inclined to replace the ";" with "" and the
> "s" with "". Just to make it all clear, and to avoid
> damage by any macro definition you might make. I tend to either
> spell it all out with  or (for very short macros) to be
> entirely keystrokes (I have a couple of macros for the "message"
> view that are just bound to "q" and the same thing in the index view
> i.e. "quit the message view and do what would happen in the index
> view".
>
> >I put this in my .muttrc, and every time I open mutt, it would automatically
> >move all the messages which are `To: mutt-users@mutt.org` or `Cc:
> >mutt-users@mutt.org` to the mutt-users folder. Although it does it remotely,
> >which would slow thing down when the network connection is not so good,
>
> You might be surprised. If all the work is being done by the imap
> server and the messages are not being pulled down to mutt and pushed
> back up things should be pretty fast even on a poor connection.

That trick did work, but there still exists some problems when I put more than
one `push` command in my .muttrc:
push 
'~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy'
push 
'~cmutt-...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-devy'
push '~f'
...
(just as an example)
It seem like that the `push` command would not block when the preceding one is
not finished, which result in that those tagged message would NOT be saved to
the appropriate folder. That means, for example, those mails that
belong to `mutt-users`
folder would now be saved to the `mutt-dev` folder, which is probably because
the second `push` take effect before the first one can finish and the first
 never get a chance to take effect.

any idea?

regards,
Ruan

On Thu, Aug 4, 2016 at 8:38 AM,   wrote:
> On 04Aug2016 07:52, Yubin Ruan  wrote:
>>
>> Fortunately, after a few googling and combining all those info I have
>> gathered,
>> I find something like this:
>>
>> push
>> '~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy'
>
>
> I would be inclined to replace the ";" with "" and the "s" with
> "". Just to make it all clear, and to avoid damage by any
> macro definition you might make. I tend to either spell it all out with
>  or (for very short macros) to be entirely keystrokes (I have a couple
> of macros for the "message" view that are just bound to "q" and the same
> thing in the index view i.e. "quit the message view and do what would happen
> in the index view".
>
>> I put this in my .muttrc, and every time I open mutt, it would
>> automatically
>> move all the messages which are `To: mutt-users@mutt.org` or `Cc:
>> mutt-users@mutt.org` to the mutt-users folder. Although it does it
>> remotely,
>> which would slow thing down when the network connection is not so good,
>
>
> You might be surprised. If all the work is being done by the imap server and
> the messages are not being pulled down to mutt and pushed back up things
> should be pretty fast even on a poor connection.
>
>> I pretty
>> satisfied with this. Although something like procmail of offline-mail
>> would make
>> thing faster, that would make it much complicated for now, so I would
>> rather
>> settle down.
>
>
> Indeed. Get comfortable before making your life even more complex.
>
> Cheers,
> Cameron Simpson 


Re: need some help about organize message in mutt

2016-08-03 Thread cs

On 04Aug2016 07:52, Yubin Ruan  wrote:
Fortunately, after a few googling and combining all those info I have 
gathered,

I find something like this:

push 
'~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy'


I would be inclined to replace the ";" with "" and the "s" with 
"". Just to make it all clear, and to avoid damage by any macro 
definition you might make. I tend to either spell it all out with  or 
(for very short macros) to be entirely keystrokes (I have a couple of macros 
for the "message" view that are just bound to "q" and the same thing in the 
index view i.e. "quit the message view and do what would happen in the index 
view".



I put this in my .muttrc, and every time I open mutt, it would automatically
move all the messages which are `To: mutt-users@mutt.org` or `Cc:
mutt-users@mutt.org` to the mutt-users folder. Although it does it remotely,
which would slow thing down when the network connection is not so good,


You might be surprised. If all the work is being done by the imap server and 
the messages are not being pulled down to mutt and pushed back up things should 
be pretty fast even on a poor connection.



I pretty
satisfied with this. Although something like procmail of offline-mail would make
thing faster, that would make it much complicated for now, so I would rather
settle down.


Indeed. Get comfortable before making your life even more complex.

Cheers,
Cameron Simpson 


Re: need some help about organize message in mutt

2016-08-03 Thread Yubin Ruan
On Wed, Aug 03, 2016 at 03:03:17PM +1000, c...@zip.com.au wrote:
> On 02Aug2016 08:05, Yubin Ruan  wrote:

> >>If you want to be more precise, you can use a modifier such as:
> >>
> >> ~C mutt-users@mutt.org
> >>
> >>to match messages with that in the To or CC headers.
> >
> >I have tried that, but when I press that ~ key, mutt give me some "key is not
> >bound. Press ? for help" message.(when I say I press the ~ key, I mean I 
> >press
> >~ , which would give you a ~ when you do normal typing, otherwise it's
> >just a ` )
> 
> Ah. The string above is a pattern expression. It is only meaningful
> at the prompt for  or  or searching. So what I
> should have asked you to type was:
> 
>  T~C mutt-users@mutt.org
> 
> so that the "T" () opens the prompt requesting a
> pattern, and only _then_ do you type the pattern "~C
> mutt-users@mutt.org".
> 
> You might also want to experiment with "l" (), which
> restricts your view of the mailbox to just the messages matching a
> pattern. This will give you an easy way to experiment with patterns,
> and is also a handy way to locate particular messages in a large
> mailbox. Use the pattern "." to undo a "limit": that is a regexp for
> "any character", and effectively matches every message.

I have to say that `T~C mutt-users@mutt.org` have make my life a lot easier.
Thanks!

> 
> >That's weird. I have no idea why, but I guess maybe that's because of
> >my configuration setting, part of which I copy directly from other's blog:
> >
> >   set index_format='%-20.20L %4C [%Z] %{%b %d} %-15.15F (%?l?%4l&%4c?) %s'
> >   color index green  default ~N # new
> >   color index red default ~D# deleted
> >   color index brightmagenta default ~T  # tagged
> >   color index brightyellow default ~F   # flagged
> >   set pager_index_lines=10
> >   bind index,pager \Ck  sidebar-prev  #previous folder in sidebar
> >   bind index,pager \Cj  sidebar-next  #next folder in sidebar
> >   bind index,pager \CO  sidebar-open  #open selected folder in sidebar
> >   macro index  b'toggle 
> > sidebar_visible'
> >   macro index  \cb  'toggle 
> > sidebar_visible'
> >   bind index   ddisplay-message
> >   bind index   gg   first-entry
> >   bind index   Glast-entry
> >   bind index   hnoop
> >   bind index   lnoop
> >
> >that's all of my conf that are related to index view. Anything wrong ?
> 
> There's nothing wrong there, but I would feel unhappy about the "d"
> macro above. Normally "d" is bound to , so if you
> every open someone else's mutt, or open your own but bypassing the
> configuration above (which sometimes one wants to do), then "d" can
> easily lead to accidental deletion of messages.
> 
> Normally  will display a message, and i would advocate
> removing your "d" macro and just using . Safer all around.

yes, I think you are right. I'm kind of mixing all those stuff now...
 
> >>>   Can anyone tell me,
> >>>   ** How can I have that Thunderbird message filtering in mutt?(i.e., 
> >>> moving
> >>>   some messages from inbox to other mailbox according to the `To` field 
> >>> or `Cc`
> >>>   field)
> 
> The simplest way to do that would be as you imagined:
> 
>  - tag the messages you want to move, for example by typing:
> 
>  T~C mutt-users@mutt.org
> 
>  - move ("save" in mutt parlance) these messages to another folder.
> 
> The key "s" is bound to . Normally that operates on
> the current message. What you want is to operate on all the tagged
> messages. This is done by prefixing the command with ";" which is
> bound to . You can do this with many operations (copy,
> delete, etc). So type:
> 
>  ;s
> 
> meaning . This will prompt you for a folder name
> for the messages.
> 
> >
> >If there's some common practice I would really appreciate to hear some. 
> >Figuring
> >it out myself is kind of hard.
> 
> The practice varies very widely.
> 
> Many people use mutt to connect directly to IMAP servers such as GMail.
> 
> Alternatively, you arrange to collect your email from such servers
> (or your ISP's POP service, etc) and store it locally. Then use mutt
> to browse the local folders. Note here that mutt tends not to do the
> collecting, though it has pop and imap services and you _can_
> collect with mutt.
> 

Re: need some help about organize message in mutt

2016-08-02 Thread cs

On 02Aug2016 08:05, Yubin Ruan  wrote:

really appreciate your help.


If you want to be more precise, you can use a modifier such as:

 ~C mutt-users@mutt.org

to match messages with that in the To or CC headers.


I have tried that, but when I press that ~ key, mutt give me some "key is not
bound. Press ? for help" message.(when I say I press the ~ key, I mean I press
~ , which would give you a ~ when you do normal typing, otherwise it's
just a ` )


Ah. The string above is a pattern expression. It is only meaningful at the 
prompt for  or  or searching. So what I should have asked 
you to type was:


 T~C mutt-users@mutt.org

so that the "T" () opens the prompt requesting a pattern, and only 
_then_ do you type the pattern "~C mutt-users@mutt.org".


You might also want to experiment with "l" (), which restricts your view 
of the mailbox to just the messages matching a pattern. This will give you an 
easy way to experiment with patterns, and is also a handy way to locate 
particular messages in a large mailbox. Use the pattern "." to undo a "limit": 
that is a regexp for "any character", and effectively matches every message.



That's weird. I have no idea why, but I guess maybe that's because of
my configuration setting, part of which I copy directly from other's blog:

   set index_format='%-20.20L %4C [%Z] %{%b %d} %-15.15F (%?l?%4l&%4c?) %s'
   color index green  default ~N # new
   color index red default ~D# deleted
   color index brightmagenta default ~T  # tagged
   color index brightyellow default ~F   # flagged
   set pager_index_lines=10
   bind index,pager \Ck  sidebar-prev  #previous folder in sidebar
   bind index,pager \Cj  sidebar-next  #next folder in sidebar
   bind index,pager \CO  sidebar-open  #open selected folder in sidebar
   macro index  b'toggle sidebar_visible'
   macro index  \cb  'toggle sidebar_visible'
   bind index   ddisplay-message
   bind index   gg   first-entry
   bind index   Glast-entry
   bind index   hnoop
   bind index   lnoop

that's all of my conf that are related to index view. Anything wrong ?


There's nothing wrong there, but I would feel unhappy about the "d" macro 
above. Normally "d" is bound to , so if you every open someone 
else's mutt, or open your own but bypassing the configuration above (which 
sometimes one wants to do), then "d" can easily lead to accidental deletion of 
messages.


Normally  will display a message, and i would advocate removing your "d" 
macro and just using . Safer all around.



>   Can anyone tell me,
>   ** How can I have that Thunderbird message filtering in mutt?(i.e., moving
>   some messages from inbox to other mailbox according to the `To` field or 
`Cc`
>   field)


The simplest way to do that would be as you imagined:

 - tag the messages you want to move, for example by typing:

 T~C mutt-users@mutt.org

 - move ("save" in mutt parlance) these messages to another folder.

The key "s" is bound to . Normally that operates on the current 
message. What you want is to operate on all the tagged messages. This is done 
by prefixing the command with ";" which is bound to . You can do 
this with many operations (copy, delete, etc). So type:


 ;s

meaning . This will prompt you for a folder name for the 
messages.



>   ** Is those ~ in mutt's manual(~e, ~T, ~B, etc.) stand for the 
>   key?(I guess so because I have tried both `~T` and `T`, and only 
`T`
>   have some effect.) If that is, seriously, why can't the author just place
>   something like  or  in the manual? and what does the =, % prefix 
mean?

No, the "~" is a literal tilde character. It does _not_ mean
. The ~T, ~B etc operators are "pattern modifiers" for use in
expressions which match messages.  So:

 ~f c...@zip.com.au

would match any message from me ("c...@zip.com.au" in the From:
header). They are case insensitive: "~t" and "~T" do different
things;>


~f doesn't work either, because the ~ is not bound(as described above)


As discussed above, ~ only has meaning at a prompt asking for a pattern 
expression.  You need to type "T" or "l" first to get such a prompt.



Normal practice for mutt users is to file messages with a separate
program as they are collected. This works best with local storage:
we collect our email from the server with POP or IMAP and store in
local folders on our computers.  We can walk you through setting up
such an arrangement if you decide you want to go this way.


If there's some common practice I would really appreciate to hear some. Figuring
it out myself is kind of hard.


The practice varies very widely.

Many people use 

Re: need some help about organize message in mutt

2016-08-02 Thread Erik Christiansen
On 02.08.16 08:05, Yubin Ruan wrote:
? Attribution lost upthread:
> > Normal practice for mutt users is to file messages with a separate
> > program as they are collected. This works best with local storage:
> > we collect our email from the server with POP or IMAP and store in
> > local folders on our computers.  We can walk you through setting up
> > such an arrangement if you decide you want to go this way.
> 
> If there's some common practice I would really appreciate to hear some. 
> Figuring
> it out myself is kind of hard.

Hey, this is *nix. It's only when someone says "You're all individuals."
that any of is likely to pipe up from the back with "I'm not!". ;-)

Googling for "procmail howto" showed more help than an average
old-school user would normally need, first up.
But there is much procmail config guidance in the procmailrc manpage.
(And it's first line says: "For a quick start, see NOTES at the end of
the procmail(1) man page." That shows how it might be automatically
invoked.
There's also "man procmailex" for useful examples.
Subscribing to the procmail mailing list would help while learning.

While learning, it might also be an idea to use an initial copying
recipe to duplicate all incoming mail in a backup mailbox, since it is
possible to lose mails by writing a faulty delivery recipe. (Look for
"safety net" in "man procmailex".

The manpages seem to be included in the procmail .deb package - at least
I don't see a procmail-doc package to bother with.

Erik


Re: need some help about organize message in mutt

2016-08-02 Thread Erik Christiansen
On 01.08.16 10:42, Thomas Schneider wrote:
> Yubin:
> 
> > How can I have that Thunderbird message filtering in mutt?
> 
> I have been using procmail to filter mail into different mail boxes.
> Then I look at those boxes with mutt under a script that opens each
> one.  This allows me to categorize my junk mail and then move them to
> my main mail box if I want to keep one.

There's no need for any script. Once procmail has sorted incoming mail
into a bunch of mailboxes, e.g. one per mailing list, etc., then in
.muttrc, something like:

mailboxes +/family_u /var/spool/mail/erik +/avr_gcc_u +/vim_u +/mutt_u
mailboxes +/procmail_u +/todo +/cnc_linux_u +/luv-main +/binutils_u
mailboxes ~/postponed  # So it's accessible in the 'y' list.

Now mutt presents the highest priority mailbox which has new mail, and
'c' changes folder to the next highest with new mail, skipping any stale
ones in between.

I have some simple spam filtering, and should maybe add +/spam as the
last mailbox, as a reminder to look in there once in a blue moon for
false positives.

The stuff I want to keep goes into ~ 1200 categorised mailboxes.

Erik


Re: need some help about organize message in mutt

2016-08-01 Thread Yubin Ruan
really appreciate your help.

> If you want to be more precise, you can use a modifier such as:
> 
>  ~C mutt-users@mutt.org
> 
> to match messages with that in the To or CC headers.

I have tried that, but when I press that ~ key, mutt give me some "key is not
bound. Press ? for help" message.(when I say I press the ~ key, I mean I press
~ , which would give you a ~ when you do normal typing, otherwise it's
just a ` ) That's weird. I have no idea why, but I guess maybe that's because of
my configuration setting, part of which I copy directly from other's blog:

set index_format='%-20.20L %4C [%Z] %{%b %d} %-15.15F (%?l?%4l&%4c?) %s'
color index green  default ~N # new
color index red default ~D# deleted
color index brightmagenta default ~T  # tagged
color index brightyellow default ~F   # flagged
set pager_index_lines=10
bind index,pager \Ck  sidebar-prev  #previous folder in sidebar
bind index,pager \Cj  sidebar-next  #next folder in sidebar
bind index,pager \CO  sidebar-open  #open selected folder in sidebar
macro index  b'toggle 
sidebar_visible'
macro index  \cb  'toggle 
sidebar_visible'
bind index   ddisplay-message
bind index   gg   first-entry
bind index   Glast-entry
bind index   hnoop
bind index   lnoop
 
that's all of my conf that are related to index view. Anything wrong ?

> >   Can anyone tell me,
> >   ** How can I have that Thunderbird message filtering in mutt?(i.e., moving
> >   some messages from inbox to other mailbox according to the `To` field or 
> > `Cc`
> >   field)
> >   ** Is those ~ in mutt's manual(~e, ~T, ~B, etc.) stand for the 
> >   key?(I guess so because I have tried both `~T` and `T`, and only 
> > `T`
> >   have some effect.) If that is, seriously, why can't the author just place
> >   something like  or  in the manual? and what does the =, % 
> > prefix mean?
> 
> No, the "~" is a literal tilde character. It does _not_ mean
> . The ~T, ~B etc operators are "pattern modifiers" for use in
> expressions which match messages.  So:
> 
>  ~f c...@zip.com.au
>
> would match any message from me ("c...@zip.com.au" in the From:
> header). They are case insensitive: "~t" and "~T" do different
> things;> 

~f doesn't work either, because the ~ is not bound(as described above)

> Normal practice for mutt users is to file messages with a separate
> program as they are collected. This works best with local storage:
> we collect our email from the server with POP or IMAP and store in
> local folders on our computers.  We can walk you through setting up
> such an arrangement if you decide you want to go this way.

If there's some common practice I would really appreciate to hear some. Figuring
it out myself is kind of hard.

> If you're using GMail and wanting to keep your messages there I
> would recommend setting up filter rules in GMail itself: it is
> capable of autofiling new messages for you. The rules are a little
> crude, but they cover the common cases.

Does gmail really have that filter-move functionality? I have searched through
nearly all of gmail's setting, but all I can find is something that only let
you filter the inbox and get a clean view. It can't move the messages that have
been filtered out to other mailbox.
Or do I miss something?
 
> who is actually wearing a black t-shirt today
black t-shirt is cool, I like it and wear it every day :-)

regards,
Ruan



Re: need some help about organize message in mutt

2016-08-01 Thread cs

On 01Aug2016 21:18, Yubin Ruan  wrote:

   I think I must be a newbie in mutt-user community. So, hi all.


Hi, and welcome!


   I need some help here. I want to know how to organize all the message in 
gmail
inbox. I used to the Thunderbird email client. Frankly it's a pretty nice email
client, with a cool feature call `message-filter`. It can move some messages to
some mailbox according to the pattern you give it. For example, it can move all
the messages whose `To` field in header contains `mutt-users@mutt.org` to a
mailbox/folder call `mutt-user`. This can even automatically happed when I start
Thunderbird. This help me keep my inbox clean when I have subscribed to a lot of
mailing lists.


Yes, most of us do something similar.


   I know mutt can do pretty much the same things. But I don't know how to
exactly configure it. I try the instruction on the manual but thing just
doesn't work.
   For example, in the index mode, I press `T`, and then
`some-header-string`, trying to tagged all the message that are sent to
`mutt-users@mutt.org`. But that doesn't work. So bad. I try some others, can't
make it yet.


"T" (upper case "t" == T) is bound to the  command.  
Tagging is briefly described in the "Using Tags" section:


 http://www.mutt.org/doc/manual/#tags

With , the string you type at its prompt is a pattern, documented 
here:


 http://www.mutt.org/doc/manual/#patterns

If you just type a simple string such as mutt-users@mutt.org then that is 
considered a "simple search". These are described in the section above, under 
the table of modifiers. If you want to be more precise, you can use a modifier 
such as:


 ~C mutt-users@mutt.org

to match messages with that in the To or CC headers.

All this does is _tag_ the matching messages. You can then move them by issuing 
a  command, bound to "s". That normally works on the current 
message, but you can have it work on all the tagged messages by issuing the 
 command first, bound to ";". So typing this:


 ;s

says to mutt that it should save all of the tagged messages to a folder. You 
will be proompted for that folder name.



   Can anyone tell me,
   ** How can I have that Thunderbird message filtering in mutt?(i.e., moving
   some messages from inbox to other mailbox according to the `To` field or `Cc`
   field)
   ** Is those ~ in mutt's manual(~e, ~T, ~B, etc.) stand for the 
   key?(I guess so because I have tried both `~T` and `T`, and only 
`T`
   have some effect.) If that is, seriously, why can't the author just place
   something like  or  in the manual? and what does the =, % prefix 
mean?


No, the "~" is a literal tilde character. It does _not_ mean . The ~T, 
~B etc operators are "pattern modifiers" for use in expressions which match 
messages.  So:


 ~f c...@zip.com.au

would match any message from me ("c...@zip.com.au" in the From: header). They are 
case insensitive: "~t" and "~T" do different things; see the table of pattern 
modifiers here:


 http://www.mutt.org/doc/manual/#tab-patterns

You can write arbitrary Boolean expressions with this stuff. Broadly:

 ~ introduces a pattern modifier expression, often it will accept a regular 
 expression as its argument


 = a few modifers come with "=", for expressions which search on the server 
 (== the IMAP server); they accept a fixed string, not a regular expression.


 % modifers which match against groups. You can define groups of mail 
 % addresses in mutt, and ask for messages which involve those addresses.


While all this lets you search for and optionally move or copy or delete etc 
messages, authomatic message filing is usually _not_ done by mutt itself. (Al 
though you could by running a few commands automatically when mutt commences, 
but managing that gets tedious very quickly).


Normal practice for mutt users is to file messages with a separate program as 
they are collected. This works best with local storage: we collect our email 
from the server with POP or IMAP and store in local folders on our computers.  
We can walk you through setting up such an arrangement if you decide you want 
to go this way.


If you're using GMail and wanting to keep your messages there I would recommend 
setting up filter rules in GMail itself: it is capable of autofiling new 
messages for you. The rules are a little crude, but they cover the common 
cases.


Cheers,
Cameron Simpson  (who is actually wearing a black t-shirt 
today)


Re: need some help about organize message in mutt

2016-08-01 Thread Thomas Schneider
Yubin:

> How can I have that Thunderbird message filtering in mutt?

I have been using procmail to filter mail into different mail boxes.  Then I 
look at
those boxes with mutt under a script that opens each one.  This allows me to 
categorize
my junk mail and then move them to my main mail box if I want to keep one.

https://www.google.com/?gws_rd=ssl#q=procmail

Tom



need some help about organize message in mutt

2016-08-01 Thread Yubin Ruan
I think I must be a newbie in mutt-user community. So, hi all.
I need some help here. I want to know how to organize all the message in 
gmail
inbox. I used to the Thunderbird email client. Frankly it's a pretty nice email
client, with a cool feature call `message-filter`. It can move some messages to
some mailbox according to the pattern you give it. For example, it can move all
the messages whose `To` field in header contains `mutt-users@mutt.org` to a
mailbox/folder call `mutt-user`. This can even automatically happed when I start
Thunderbird. This help me keep my inbox clean when I have subscribed to a lot of
mailing lists.  But when my emails get overflow and my network connection get 
bad,
Thunderbird would crash. Yes, it suck. That's the reason why I switch to using 
Mutt.

I know mutt can do pretty much the same things. But I don't know how to
exactly configure it. I try the instruction on the manual but thing just
doesn't work.
For example, in the index mode, I press `T`, and then
`some-header-string`, trying to tagged all the message that are sent to
`mutt-users@mutt.org`. But that doesn't work. So bad. I try some others, can't
make it yet.
Can anyone tell me, 
** How can I have that Thunderbird message filtering in mutt?(i.e., moving
some messages from inbox to other mailbox according to the `To` field or 
`Cc`
field)
** Is those ~ in mutt's manual(~e, ~T, ~B, etc.) stand for the 
key?(I guess so because I have tried both `~T` and `T`, and only 
`T`
have some effect.) If that is, seriously, why can't the author just place
something like  or  in the manual? and what does the =, % prefix 
mean?

Thanks,
Ruan



Re: Changing the Help list of keybindings?

2015-02-04 Thread David Champion
* On 03 Feb 2015, Chris Bannister wrote: 
> On Mon, Feb 02, 2015 at 03:54:57PM -0500, Patrick Shanahan wrote:
> > * Joe M  [02-02-15 15:42]:
> > > 
> > > I am wondering if it is possible to change (add to) the list of
> > > keybindings that mutt shows in the bottom? For example, in the index
> > > menu, it shows me: q:Quit d:Del u:Undel s:Save m:Mail r:Reply  ?:Help
> > > 
> > 
> > Without programming, I don't believe, but you can see your defined keys
> > and an explanation of their usage in the "?:Help" menu.
> 
> Weird, Mine shows me:
> 
> d:Del  u:Undel  s:Save  m:Mail  r:Reply  g:Group  ?:Help
> 
> and it's along the top of the screen, not along the bottom.
> 
> So it seems as though some aspects are able to be changed.

As posted, it's not possible to change the items shown without patching
the code.  Chris's doesn't show q:Quit because he's unbound the Quit
function.  Mutt has a static list of things it tries to show, but that's
filtered by which of them is actually bound to a key (so that it can
show which key).

-- 
David Champion • d...@bikeshed.us


Re: Changing the Help list of keybindings?

2015-02-03 Thread Nathan Stratton Treadway
On Wed, Feb 04, 2015 at 16:16:59 +1300, Chris Bannister wrote:
> On Mon, Feb 02, 2015 at 03:54:57PM -0500, Patrick Shanahan wrote:
> > * Joe M  [02-02-15 15:42]:
> > > 
> > > I am wondering if it is possible to change (add to) the list of
> > > keybindings that mutt shows in the bottom? For example, in the index
> > > menu, it shows me: q:Quit d:Del u:Undel s:Save m:Mail r:Reply  ?:Help
> > > 
> > 
> > Without programming, I don't believe, but you can see your defined keys
> > and an explanation of their usage in the "?:Help" menu.
> 
> Weird, Mine shows me:
> 
> d:Del  u:Undel  s:Save  m:Mail  r:Reply  g:Group  ?:Help
> 
> and it's along the top of the screen, not along the bottom.

The "status_on_top" variable controls whether the status line appears at
the top or bottom of the screen, and the help line is put in the other
spot

The section of the manual that covers the "help" variable gives a little
description of what the help line shows (and as I read it seems to
indicate that it's not possible to configure the line manually).

Nathan


Re: Changing the Help list of keybindings?

2015-02-03 Thread Patrick Shanahan
* Chris Bannister  [02-03-15 22:19]:
> On Mon, Feb 02, 2015 at 03:54:57PM -0500, Patrick Shanahan wrote:
> > * Joe M  [02-02-15 15:42]:
> > > 
> > > I am wondering if it is possible to change (add to) the list of
> > > keybindings that mutt shows in the bottom? For example, in the index
> > > menu, it shows me: q:Quit d:Del u:Undel s:Save m:Mail r:Reply  ?:Help
> > > 
> > 
> > Without programming, I don't believe, but you can see your defined keys
> > and an explanation of their usage in the "?:Help" menu.
> 
> Weird, Mine shows me:
> 
> d:Del  u:Undel  s:Save  m:Mail  r:Reply  g:Group  ?:Help
> 
> and it's along the top of the screen, not along the bottom.
> 
> So it seems as though some aspects are able to be changed.

Yes, you can put it at the top or bottom via ~/.muttrc, but I don't
believe that was your question.
-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


Re: Changing the Help list of keybindings?

2015-02-03 Thread Chris Bannister
On Mon, Feb 02, 2015 at 03:54:57PM -0500, Patrick Shanahan wrote:
> * Joe M  [02-02-15 15:42]:
> > 
> > I am wondering if it is possible to change (add to) the list of
> > keybindings that mutt shows in the bottom? For example, in the index
> > menu, it shows me: q:Quit d:Del u:Undel s:Save m:Mail r:Reply  ?:Help
> > 
> 
> Without programming, I don't believe, but you can see your defined keys
> and an explanation of their usage in the "?:Help" menu.

Weird, Mine shows me:

d:Del  u:Undel  s:Save  m:Mail  r:Reply  g:Group  ?:Help

and it's along the top of the screen, not along the bottom.

So it seems as though some aspects are able to be changed.

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Re: Changing the Help list of keybindings?

2015-02-02 Thread Patrick Shanahan
* Joe M  [02-02-15 15:42]:
> 
> I am wondering if it is possible to change (add to) the list of
> keybindings that mutt shows in the bottom? For example, in the index
> menu, it shows me: q:Quit d:Del u:Undel s:Save m:Mail r:Reply  ?:Help
> 

Without programming, I don't believe, but you can see your defined keys
and an explanation of their usage in the "?:Help" menu.
-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://linuxcounter.net


Changing the Help list of keybindings?

2015-02-02 Thread Joe M
Hello,

I am wondering if it is possible to change (add to) the list of
keybindings that mutt shows in the bottom? For example, in the index
menu, it shows me: q:Quit d:Del u:Undel s:Save m:Mail r:Reply  ?:Help

Thanks
Joe


Re: Need help with coloring the indicator line

2014-07-17 Thread Paul E Condon
On 20140716_0918+0200, Suvayu Ali wrote:
> Hi Paul,
> 
> On Tue, Jul 15, 2014 at 07:48:34PM -0600, Paul E Condon wrote:
> > I'm not sure of the correct but by the indicator line
> > I mean the black horizontal bar that is covers one entry
> > in the table of entries in the index display. It is 
> > intended, I think, to hilight a slngle selected email
> > but with my current .muttrc , it just makes it impossible
> > to read. How do I fix this?
> 
> I think you have the name correct.  You can configure the colours using
> the colour command.  I use something like this in my muttrc:
> 
>   color indicator brightyellow red
> 
> Hope this helps,
> 
> -- 
> Suvayu
 
Thanks, it did help.

-- 
Paul E Condon   
pecon...@mesanetworks.net



Re: Need help with coloring the indicator line

2014-07-16 Thread Suvayu Ali
Hi Paul,

On Tue, Jul 15, 2014 at 07:48:34PM -0600, Paul E Condon wrote:
> I'm not sure of the correct but by the indicator line
> I mean the black horizontal bar that is covers one entry
> in the table of entries in the index display. It is 
> intended, I think, to hilight a slngle selected email
> but with my current .muttrc , it just makes it impossible
> to read. How do I fix this?

I think you have the name correct.  You can configure the colours using
the colour command.  I use something like this in my muttrc:

  color indicator brightyellow red

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.


Need help with coloring the indicator line

2014-07-15 Thread Paul E Condon
I'm not sure of the correct but by the indicator line
I mean the black horizontal bar that is covers one entry
in the table of entries in the index display. It is 
intended, I think, to hilight a slngle selected email
but with my current .muttrc , it just makes it impossible
to read. How do I fix this?

Thanks
-- 
Paul E Condon   
pecon...@mesanetworks.net



Re: I how to customize the help line on top

2014-04-20 Thread Gary Johnson
On 2014-04-20, michael kaiser wrote:
> On 08:42 Sat 19 Apr , Gary Johnson wrote:
> > On 2014-04-19, Maurice McCarthy wrote:
> > 
> > >  On 18/04/2014, michael kaiser wrote:
> > > > Hallo all
> > > >
> > > > My mutt display a help line with any important keys.
> > > > Can I customize this line with my own favorite key-bindings?
> > 
> > >  Yes you can. See the Mutt manual. In mutt press F1 or see
> > >  http://www.mutt.org/doc/manual.txt and search for "key bindings".
> > > 
> > >  You have to  use the bind command in ~/.muttrc or in Mutt running. You
> > >  have to restart Mutt to see the changes.
> > 
> > The question was not whether one can customize key bindings but
> > whether those key bindings can be displayed in the top line.
> > 
> > I'm pretty sure but not positive that that can't be done.
> > 
> > Regards,
> > Gary
> > 
> 
> I use mutt more than one imap account.
> I use macros F2 F3 ... to switch between this accounts.
> I want display "F2 ACCOUNT_JOB" "F3-ACCOUNT_PRIVAT".
> I need a small recall so see what key is what.
> The standard keys are not so important.

If all you need is an occasional reminder of which key is for which
account, typing ? will show the help menu for the current screen.
The help menu includes user-defined bindings and macros.

The only other way I can think of to display a custom line on the
screen is to use the status line and the 'status_format' variable.
Fitting your function key operations on that line could be a tight
squeeze, though, unless you use a wide terminal.

Note that I'm replying to the list as well so that others can see
and comment on your request and my reply.

Regards,
Gary



Re: I how to customize the help line on top

2014-04-20 Thread Maurice McCarthy
On 20/04/2014, Chris Bannister  wrote:
>>
>> bind index x quit
>> bind index q help
>>
>
> Unfortunately, that is still not what is being asked. :)  For example,
> could you put the 'compose mail' command in the menu bar and show the
> binding?
>

OK you got me. I found this in the source code for curs_main.c (not
that I understand source code mind)

static const struct mapping_t IndexHelp[] = {
  { N_("Quit"),  OP_QUIT },
  { N_("Del"),   OP_DELETE },
  { N_("Undel"), OP_UNDELETE },
  { N_("Save"),  OP_SAVE },
  { N_("Mail"),  OP_MAIL },
  { N_("Reply"), OP_REPLY },
  { N_("Group"), OP_GROUP_REPLY },
  { N_("Help"),  OP_HELP },
  { NULL,0 }
};

which is clearly something to do with it but if you have to change
source code then you'd have to recompile also. I've not found a way to
do, say,

bind index L list-reply

it just does _not work. I'll have a scratch around anyhow and see if I
find anything.

Mo


Re: I how to customize the help line on top

2014-04-20 Thread Chris Bannister
On Sun, Apr 20, 2014 at 10:48:02AM +0100, Maurice McCarthy wrote:
> OK I did an experiment and it worked. When you open mutt it shows the
> index view and that displays the default bindings that Michael Kaiser
> asked about. If we change the default bindings in /etc/Muttrc or
> ~/.muttrc then the top line should alter as requested.
> 
> I only have access to a Windows 7 pc at the moment so I got a copy of
> win32mutt (i.e. mutt-1.4) and put these two commands at the bottom of
> /etc/Muttrc
> 
> bind index x quit
> bind index q help
> 
> Now on launching mutt the top of line of the display shows:
> x:Quit d:Del 
> 
> The first bind command does not work on its own as that leaves q still
> functioning correctly. Now I feel like a smart-alec.

Unfortunately, that is still not what is being asked. :)  For example,
could you put the 'compose mail' command in the menu bar and show the
binding?

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Re: I how to customize the help line on top

2014-04-20 Thread Maurice McCarthy
OK I did an experiment and it worked. When you open mutt it shows the
index view and that displays the default bindings that Michael Kaiser
asked about. If we change the default bindings in /etc/Muttrc or
~/.muttrc then the top line should alter as requested.

I only have access to a Windows 7 pc at the moment so I got a copy of
win32mutt (i.e. mutt-1.4) and put these two commands at the bottom of
/etc/Muttrc

bind index x quit
bind index q help

Now on launching mutt the top of line of the display shows:
x:Quit d:Del 

The first bind command does not work on its own as that leaves q still
functioning correctly. Now I feel like a smart-alec.

M


Re: I how to customize the help line on top

2014-04-20 Thread Maurice McCarthy
Yeah,  you are right, thanks. I was like reverse MIdas yesterday.
Everything I touched turned to shit. The Lab Tech said she'd never
heard me swear before.

M

On 19/04/2014, Gary Johnson  wrote:

>
> The question was not whether one can customize key bindings but
> whether those key bindings can be displayed in the top line.
>
> I'm pretty sure but not positive that that can't be done.
>
> Regards,
> Gary
>
>


Re: I how to customize the help line on top

2014-04-19 Thread Igor Sosa Mayor
Gary Johnson  writes:
> The question was not whether one can customize key bindings but
> whether those key bindings can be displayed in the top line.
>
> I'm pretty sure but not positive that that can't be done.

this is also my impression... but I'm curious whether some experts have
maybe a solution for this...

-- 
:: Igor Sosa Mayor :: joseleopoldo1...@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/  ::
:: jabberid: rogorido  ::::



Re: I how to customize the help line on top

2014-04-19 Thread Gary Johnson
On 2014-04-19, Maurice McCarthy wrote:

>  On 18/04/2014, michael kaiser wrote:
> > Hallo all
> >
> > My mutt display a help line with any important keys.
> > Can I customize this line with my own favorite key-bindings?

>  Yes you can. See the Mutt manual. In mutt press F1 or see
>  http://www.mutt.org/doc/manual.txt and search for "key bindings".
> 
>  You have to  use the bind command in ~/.muttrc or in Mutt running. You
>  have to restart Mutt to see the changes.

The question was not whether one can customize key bindings but
whether those key bindings can be displayed in the top line.

I'm pretty sure but not positive that that can't be done.

Regards,
Gary



Re: I how to customize the help line on top

2014-04-19 Thread Maurice McCarthy
 Yes you can. See the Mutt manual. In mutt press F1 or see
 http://www.mutt.org/doc/manual.txt and search for "key bindings".

 You have to  use the bind command in ~/.muttrc or in Mutt running. You
 have to restart Mutt to see the changes.

 Good Luck
 Maurice


 On 18/04/2014, michael kaiser  wrote:
> Hallo all
>
> My mutt display a help line with any important keys.
> Can I customize this line with my own favorite key-bindings?
>
> Michael
>
>


I how to customize the help line on top

2014-04-18 Thread michael kaiser
Hallo all

My mutt display a help line with any important keys.
Can I customize this line with my own favorite key-bindings?

Michael


Re: help to debug mutt "sasl" problem with isp

2013-12-05 Thread Mick
On Friday 06 Dec 2013 06:01:05 M. Fioretti wrote:
> Greetings,
> 
> I adminiser a friend's Linux home computer, so I set cron jobs on it
> send me a weekly status report with info like whether disk space >80%,
> etc.
> 
> Everything worked perfectly until a few days ago, when the friend's
> isp stopped letting mutt send mail. I would need your help to diagnose
> the problem because obviously the ISP changed something, but from the
> mutt messages and/or their documentation I can't figure out what.
> 
> (the ISP can't be changed and asking their helpdesk is pointless,
> the're mostly still at the "Linux? We don't support that version of
> Windows" stage)
> 
> here is what happens:
> 
> the cron job runs mutt as:
> 
> mutt -F $RCFILE -s 'status report from friend' mfiore...@nexaima.net <
> /tmp/status_report
> 
> with the RCFILE below
> 
> last week it started to fail with something like "sasl auth
> refused". I checked the isp "set up your mail client" pages and now
> they say to use out.alice.it for outgoing mail, and port 587.
> 
> When I was there last week, I tried different smtp_url values with all
> the different combinations I could imagine of:
> 
> adding :587 and / or  final slash to the host
> adding the password after surname
> smtps instead of smtp
> using port 465 as I read one should do with gmail
> 
> those that are syntactically correct for mutt either:
> 
> - fail with sasl auth refused,
> - no error/warning but no mail delivered
> - I get an "Alarm clock" at the prompt, when I run mutt as above, but
>   again no email delivered
> 
> so I need either mutt to tell me more, or pointers to other ways to
> understand what is happening exactly and how to fix
> 
> tia,
>   Marco
> 
> smtp_url="smtp://name.surn...@out.alice.it"

Shouldn't this be:

set smtp_url = "smtp://name.surn...@out.alice.it:587"

> set smtp_pass="thepassword"
> set realname="friend"
> set from="name.surn...@alice.it"
> set envelope_from = yes
> set copy = yes
> set record = /tmp/mutt_send_report.`/bin/date +%Y.%m`
> set postponed = /tmp/mutt_postponed
> #unset confirmappend
> unset use_domain
> set hostname = alice.it

You can increase debugging by launching mutt with -d # , where "#" = 1-5.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


help to debug mutt "sasl" problem with isp

2013-12-05 Thread M. Fioretti
Greetings,

I adminiser a friend's Linux home computer, so I set cron jobs on it
send me a weekly status report with info like whether disk space >80%,
etc.

Everything worked perfectly until a few days ago, when the friend's
isp stopped letting mutt send mail. I would need your help to diagnose
the problem because obviously the ISP changed something, but from the
mutt messages and/or their documentation I can't figure out what.

(the ISP can't be changed and asking their helpdesk is pointless,
the're mostly still at the "Linux? We don't support that version of
Windows" stage)

here is what happens:

the cron job runs mutt as:

mutt -F $RCFILE -s 'status report from friend' mfiore...@nexaima.net < 
/tmp/status_report

with the RCFILE below

last week it started to fail with something like "sasl auth
refused". I checked the isp "set up your mail client" pages and now
they say to use out.alice.it for outgoing mail, and port 587.

When I was there last week, I tried different smtp_url values with all
the different combinations I could imagine of:

adding :587 and / or  final slash to the host
adding the password after surname
smtps instead of smtp
using port 465 as I read one should do with gmail

those that are syntactically correct for mutt either:

- fail with sasl auth refused,
- no error/warning but no mail delivered
- I get an "Alarm clock" at the prompt, when I run mutt as above, but
  again no email delivered

so I need either mutt to tell me more, or pointers to other ways to
understand what is happening exactly and how to fix

tia,
Marco

smtp_url="smtp://name.surn...@out.alice.it"
set smtp_pass="thepassword"
set realname="friend"
set from="name.surn...@alice.it"
set envelope_from = yes
set copy = yes
set record = /tmp/mutt_send_report.`/bin/date +%Y.%m`
set postponed = /tmp/mutt_postponed
#unset confirmappend
unset use_domain
set hostname = alice.it


Re: Help with mutt - sending mail with body as html with attachments

2013-10-08 Thread P. Mazart
Hello again,

> Maybe you can set a custom header like “x-change-to-html”, and apply a
> hook running an  macro if this header is present?
> Sounds more native to me. 

Maybe this is even easier:
mutt -e 'set content_type="text/html"' -s 'Subject of your msg' 
spamreceipi...@server.gov -a attachment.pdf < message.html

Regards,
P.M.


Re: Help with mutt - sending mail with body as html with attachments

2013-10-08 Thread P. Mazart
Hello Cary,

> 1. Mail whose content is html - I can do this by specify -e "my_hdr
> Content-Type: text/html", and formatting the message as a pure html
> file, e.g. no extra headers.

I’m not entirely sure but I feel that it’s not too ideal 
to set the Content-Type via a my_hdr setting.

Maybe you can set a custom header like “x-change-to-html”, and apply a
hook running an  macro if this header is present?
Sounds more native to me. 

Regards,
P.M.



Help with mutt - sending mail with body as html with attachments

2013-10-08 Thread Cary Lewis
I am trying to use mutt to send emails with the following characteristics:

1. Mail whose content is html - I can do this by specify -e "my_hdr
Content-Type: text/html", and formatting the message as a pure html
file, e.g. no extra headers.

2.  Mail whose content is html, but must all support attachments.

I also need be able to send emails from the command line.

There is a further constraint that I have to use mull v. 1.2.5.1i

It does not seem possible to use mutt to achieve this. If I specify
the -e "my_hdr ..." and the -a option within the same email, the
ultimate header received in the email at the recipient contains

Content-Type: text/html

which isn't correct, mutt should have used:

Content-Type: multipart/mixed; boundary="45Z9DzgjV8m4Oswq"

If I don't specify the -e, then the section with the message, which is
html, is formatted as this:

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

If I try to invoke mutt like this:

-e "my_hdr Content-Type: text/html" \
-e "my_hdr Mime-Version: 1.0" \
-e "my_hdr Content-Type: multipart/mixed; boundary=\"IS0zKkzwUGydFO0o\"" \
-e "my_hdr Content-Disposition: inline" \

mutt throws an error

Error in command line: boundary=IS0zKkzwUGydFO0o: unknown commandS

If I try formatting a complete email and use the -H option with mutt,
mutt strips out the multipart/mixed boundary line. Why?

So, is it possible to specify the Content-Type: header inside a
multipart mime email with mutt?

Thanks for any help.


Re: isn't doing what I expect, help please

2013-01-02 Thread Jamie Paul Griffin
* Michael Elkins  [2012-12-31 15:10:29 +]:

> On Mon, Dec 31, 2012 at 09:04:21AM +, Jamie Paul Griffin wrote:
> >I use something very similar: I read the Maildirs directly on my mx
> >server using mutt but use imap from my Mac to the server also using mutt
> >and ssh tunnel; however, I do use procmail in conjunction with Dovecot
> >lda which delivers to and creates Maildirs if they don't exist.
> 
> Just FYI, procmail can create the maildirs itself as well:
> 
>   If  the  mailbox  is  specified  to be an MH folder or maildir folder, 
> procmail will create the necessary directories if they don't
>   exist, rather than treat the mailbox as a non-existent filename.  When 
> procmail is delivering to directories, you can specify  mul‐
>   tiple directories to deliver to (procmail will do so utilising 
> hardlinks).
> 

Yes this is what I do, in conjunction with dovecot lda (since I recently
installed the imap server).

An excerpt from my .procmailrc:


SHELL=/bin/sh
PATH=$HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
MAILDIR=$HOME/.maildir
PMDIR=$HOME/.procmail
LOGFILE=$HOME/.procmail/log
DELIVER=/usr/local/libexec/dovecot/deliver
ORGMAIL=$HOME/.maildir/
DEFAULT=$HOME/.maildir/

:0
* ^Sender:.*owner-mutt-us...@mutt.org
| $DELIVER -m mutt

:0
* ^List-Id:.*beginners.perl.org
| $DELIVER -m perl

With a configuration setting in Dovecot to automatically create
Maildirs/Mailboxes if they don't already exit. I get mailboxes with a
'.' prepended to them - as I pointed out earlier, this can be changed
using the LAYOUT=fs setting in Dovecot. 

Certain muttrc variables have be set to accommodate this layout.

set folder=$MAIL
set mask=.
...

ksh ~/.profile:
...

export MAIL='$HOME/.maildir/'

Sorry that some of this has already been suggested in the thread,
thought I'd contribute my configuration settings in more detail for
clarity. 

I hope that helps in some way. Jamie


-- 
Primary Key: 4096R/1D31DC38 2011-12-03
Key Fingerprint: A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38


Re: isn't doing what I expect, help please

2013-01-02 Thread Cameron Simpson
On 02Jan2013 07:23, Chris Green  wrote:
| On Wed, Jan 02, 2013 at 10:57:03AM +1100, Cameron Simpson wrote:
| > The weird names may be Chris trying to work with something
| > else, like Dovecot which by default has a fairly horrible filesystem
| > naming scheme for maildirs.
|
| Yes, the trouble is though that I expect different programs to work the
| same.  I tend to access my mail in different ways with different
| programs at different times.  The only format which all programs seem to
| 'play nicely' together with is mbox.

And earlier:
| Yes, about once a year I switch to maildir because of all its
| 'advantages' and then, after a few days I switch back again because of
| its *disadvantages*!  :-) (for me anyway)  :-
| 
| It doesn't use *real* directories, just long names with . instead of
| /.  This means that it's messy/difficult to move mail directories
| around manually (which I do quite frequently).

This bit is _entirely_ an artifact of the other apps. My maildirs are
just plain directories. And I do have a hierachy, though not maildirs
inside other maildirs, only maildirs inside ordinary subdirs.

| The gobbledegook filenames it uses mean that any manual access to
| mail files is fraught with difficulties and using grep is just
| confusing.

Again, I've not been driven to these evil names.

| Not every mail program deals with maildir in the same way (in
| particular some use real directories and others use the . in names
| described above) so if I try and access the hierarchy with other
| programs they don't always play nicely.

Could you enumerate some of these programs for us?
There may be workarounds.

Cheers,
-- 
Cameron Simpson 

Dick Cavett:  "Do you consider yourself a disciplined guy?
   Do you get up every day and `go to work'?"
Jimi Hendrix: "Well, yeah.  I try to get up every day."


Re: isn't doing what I expect, help please

2013-01-01 Thread Chris Green
On Wed, Jan 02, 2013 at 10:57:03AM +1100, Cameron Simpson wrote:
> On 31Dec2012 09:04, Jamie Paul Griffin  wrote:
> | * Cameron Simpson  [2012-12-31 10:34:45 +1100]:
> | > On 30Dec2012 12:11, Chris Green  wrote:
> | > | My mail is initially delivered by SMTP (to a postfix server running
> | > | locally) and then filtered by a python script at the moment.  Thus, if
> | > | I switch to maildir just now it's the Python libraries which create
> | > | the maildirs.
> | > 
> | > Surely then the naming scheme is under your control?
> | > Like you, I have my own filing program.
> [...]
> | I'd be interested to know more about the python methods you guys use
> | though. The Maildirs are created in a normal way though, I've not known
> | or seen delivery programs create Maildirs with the odd naming schemes
> | Chris has described.
> 
> I would expect the maildir naming to be totally under Chris' control.
> Mine is. The weird names may be Chris trying to work with something
> else, like Dovecot which by default has a fairly horrible filesystem
> naming scheme for maildirs.
> 
Yes, the trouble is though that I expect different programs to work the
same.  I tend to access my mail in different ways with different
programs at different times.  The only format which all programs seem to
'play nicely' together with is mbox.

-- 
Chris Green


Re: isn't doing what I expect, help please

2013-01-01 Thread Cameron Simpson
On 31Dec2012 09:04, Jamie Paul Griffin  wrote:
| * Cameron Simpson  [2012-12-31 10:34:45 +1100]:
| > On 30Dec2012 12:11, Chris Green  wrote:
| > | My mail is initially delivered by SMTP (to a postfix server running
| > | locally) and then filtered by a python script at the moment.  Thus, if
| > | I switch to maildir just now it's the Python libraries which create
| > | the maildirs.
| > 
| > Surely then the naming scheme is under your control?
| > Like you, I have my own filing program.
[...]
| I'd be interested to know more about the python methods you guys use
| though. The Maildirs are created in a normal way though, I've not known
| or seen delivery programs create Maildirs with the odd naming schemes
| Chris has described.

I would expect the maildir naming to be totally under Chris' control.
Mine is. The weird names may be Chris trying to work with something
else, like Dovecot which by default has a fairly horrible filesystem
naming scheme for maildirs.

As pointed out elsewhere, telling dovecot to use the "LAYOUT=fs" scheme
improves this.

Regarding filtering tools, my own is mailfiler. Man pages:

  Invocation:
https://bitbucket.org/cameron_simpson/css/src/tip/man/mailfiler.1.pod
  Rule syntax:
https://bitbucket.org/cameron_simpson/css/src/tip/man/mailfiler.5.pod

The source is up there too.

I run it in a screen session thus:

  mailfiler monitor -d 1 ~/mail/spool ~/mail/spool-in ~/mail/spool-out 
~/mail/spool-xref ~/mail/spool-spam-subj

to watch a bunch of spool directories for incoming email.

It polls each in sequence regularly, so an arriving nonspam message
gets completely processed almost immediately.

It watches the rules files for updates, so I don't need to restart it if
I change the rules. Because it runs as a daemon it doesn't need to
parse/compile the rules for every new message, unlike procmail.

If I change the rules and want to test them, all I have to do is copy
a test message into =spool or =spool-in to watch mailfiler process it
again. This is surprisingly handy.

New mail is dropped into =spool by procmail.

The mailfiler rules for =spool trim some spam and pass the rest to
=spool-in.

The rules for =spool-in pass things out to various folders for mailing lists
and so forth. Particular items get forwarded to an external account monitored
by my iphone - monitoring alerts, email from particular people, etc. 

My muttrc has record=+spool-out. Mailfiler watches that too and
processes sent messages:

  < env
  out,me,spool-xref,"|cs-aliases-add-email known" . .

That copies anything to =me (my "priority" mailbox) so I have complete
threads there, to =out (my "real" record dir), =spool-xref for
crossfiling, and records email addresses in the "known" group for anyone
I email, thus whitelisting them.

Cheers,
-- 
Cameron Simpson 

We're blowing dog-whistles in a city full of cats.
- overhead by WIRED at the Intelligent Printing conference Oct2006


Re: isn't doing what I expect, help please

2012-12-31 Thread Michael Elkins

On Mon, Dec 31, 2012 at 09:04:21AM +, Jamie Paul Griffin wrote:

I use something very similar: I read the Maildirs directly on my mx
server using mutt but use imap from my Mac to the server also using mutt
and ssh tunnel; however, I do use procmail in conjunction with Dovecot
lda which delivers to and creates Maildirs if they don't exist.


Just FYI, procmail can create the maildirs itself as well:

  If  the  mailbox  is  specified  to be an MH folder or maildir folder, 
procmail will create the necessary directories if they don't
  exist, rather than treat the mailbox as a non-existent filename.  When 
procmail is delivering to directories, you can specify  mul‐
  tiple directories to deliver to (procmail will do so utilising hardlinks).


Re: isn't doing what I expect, help please

2012-12-31 Thread Jamie Paul Griffin
* Cameron Simpson  [2012-12-31 10:34:45 +1100]:

> On 30Dec2012 12:11, Chris Green  wrote:
> | My mail is initially delivered by SMTP (to a postfix server running
> | locally) and then filtered by a python script at the moment.  Thus, if
> | I switch to maildir just now it's the Python libraries which create
> | the maildirs.
> 
> Surely then the naming scheme is under your control?
> 
> Like you, I have my own filing program.
> 
> | However my issue is more with MUAs which don't play
> | nicely together using the same maildirs (and also utilities for
> | manipulating maildirs as they're so painful to manage 'by hand').
> 
> Could you enumerate some of these? It sounds like we've a quorum of
> Maildir hotheads (myself included) who must have encountered many of
> your issues and devised workarounds.
> 
> Personally I use mutt to access maildirs directly and direct other MUAs to
> use IMAP, and let dovecot do the filesystem access.

I use something very similar: I read the Maildirs directly on my mx
server using mutt but use imap from my Mac to the server also using mutt
and ssh tunnel; however, I do use procmail in conjunction with Dovecot
lda which delivers to and creates Maildirs if they don't exist. 

I'd be interested to know more about the python methods you guys use
though. The Maildirs are created in a normal way though, I've not known
or seen delivery programs create Maildirs with the odd naming schemes
Chris has described.

Jamie

-- 
Primary Key: 4096R/1D31DC38 2011-12-03
Key Fingerprint: A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38


Re: isn't doing what I expect, help please

2012-12-30 Thread Cameron Simpson
On 30Dec2012 12:11, Chris Green  wrote:
| My mail is initially delivered by SMTP (to a postfix server running
| locally) and then filtered by a python script at the moment.  Thus, if
| I switch to maildir just now it's the Python libraries which create
| the maildirs.

Surely then the naming scheme is under your control?

Like you, I have my own filing program.

| However my issue is more with MUAs which don't play
| nicely together using the same maildirs (and also utilities for
| manipulating maildirs as they're so painful to manage 'by hand').

Could you enumerate some of these? It sounds like we've a quorum of
Maildir hotheads (myself included) who must have encountered many of
your issues and devised workarounds.

Personally I use mutt to access maildirs directly and direct other MUAs to
use IMAP, and let dovecot do the filesystem access.

Cheers,
-- 

A Newbie: I was not asking the question to start any flames. [...] Nobody
has to get to the low levels of argument and be rude to each other.
Paul Tsai :
Oh yes we do, grasshopper.  It's a requisite for rec.moto.  One must
transcend the infinity of illussions before getting the real techno whiz
answers to questions of such profundity as yours.
John Stafford :
No, he's right. After reading r.m. for a couple of years, I feel capable
of being rude to ANYONE at ANY level of argument. In fact the higher they
come, the harder they fall.


Re: isn't doing what I expect, help please

2012-12-30 Thread Derek Martin
On Sun, Dec 30, 2012 at 12:11:22PM +, Chris Green wrote:
> My mail is initially delivered by SMTP (to a postfix server running
> locally) and then filtered by a python script at the moment.  Thus, if
> I switch to maildir just now it's the Python libraries which create
> the maildirs.  

It's unclear why they would use this '.' format.  For instance, if you
were using procmail (which I recall you do not like, for some reason),
you simply would give it a rule like this:

:0
# make this as complicated as needed to match your mail specifically
* mutt-users 
Folders/mutt-users/

Note the trailing slash.  This is what tells procmail to use maildir
format, and if it does so it creates real directories.  The heirarchy
would look like:

 $MAILDIR/Folders/mutt-users
 $MAILDIR/Folders/mutt-users/cur
 $MAILDIR/Folders/mutt-users/new
 $MAILDIR/Folders/mutt-users/old

[MAILDIR is the variable procmail uses to determine where to put your
mail... it has nothing to do with Maildir format.]

> However my issue is more with MUAs which don't play
> nicely together using the same maildirs (and also utilities for
> manipulating maildirs as they're so painful to manage 'by hand').

I'm not aware of any utilities that can't deal with that organization,
though of course that doesn't preclude the possibility.

-- 
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.



pgpw1IyjoV4Fu.pgp
Description: PGP signature


Re: isn't doing what I expect, help please

2012-12-30 Thread Andre Klärner
On Sun, Dec 30, 2012 at 12:11:22PM +, Chris Green wrote:
> My mail is initially delivered by SMTP (to a postfix server running
> locally) and then filtered by a python script at the moment.  Thus, if
> I switch to maildir just now it's the Python libraries which create
> the maildirs.  However my issue is more with MUAs which don't play
> nicely together using the same maildirs (and also utilities for
> manipulating maildirs as they're so painful to manage 'by hand').
> 

Hi Chris,

I use a quite similiar setup, where an exim4 delivers the mail to my INBOX
directly, and a .forward file in exim-filters style delivers it to the
folders. So each and every folder-writing software in my case uses the full
directory name as I present it to it. So this is for example my mutt-rule:

if $header_Sender: contains "mutt.org" then
save "Maildir/Archiv/Mailinglisten/mutt-users@mutt.org/"
endif

As you can see I use the / literally, so it gets saved to folders as it
should. Redirecting everything into this structure from the default maildir
structure took me nearly a day, but it was worth it. 

For accessing my mailbox by a tool that I am not sure of if they leave the
structure untouched I simply use dovecot's imap. Dovecot itself can handly
the filesystem-type mailbox with ease, and for Thunderbird or Evolution
this is enough. (as a small warning: Evolution tends to rearrange the
filesystem-maildir into the .-layouted maildir without warning.)

BTW: I just finished my script to scan a big Maildir-based mailbox for all
subfolders and/or folders with unread (~O) mail. The usual find-based
method proved non-performant when there are mailboxes with 3000+ mails..
( http://git.ak-online.be/?p=mutt.git;a=blob;f=.mutt/mailboxes.pl )

Regards,
Andre

-- 
Andre Klärner


smime.p7s
Description: S/MIME cryptographic signature


Re: isn't doing what I expect, help please

2012-12-30 Thread Jamie Paul Griffin
* Chris Green  [2012-12-30 12:11:22 +]:

> On Sun, Dec 30, 2012 at 11:59:11AM +, Jamie Paul Griffin wrote:
> > 
> > These weird Maildirs you describe, are they created by an imap server?
> > If so what imap server software are you using?
> > 
> My mail is initially delivered by SMTP (to a postfix server running
> locally) and then filtered by a python script at the moment.  Thus, if
> I switch to maildir just now it's the Python libraries which create
> the maildirs.  However my issue is more with MUAs which don't play
> nicely together using the same maildirs (and also utilities for
> manipulating maildirs as they're so painful to manage 'by hand').
> 

Ah I see. I was just curious as to why your Maildirs were/are created
like that. I recently installed Dovecot just because I want to access
the mail from other machine I have at home, and it does create Maildirs
with a . prepended, which is Maildir++ format I believe. But this can be
changed quite easily with Dovecot imap server software by specifying 
LAYOUT=fs where the $mail_location setting is in the config file. Self
explanatory but makes the Maildir layout nicer for some MUA software.

As you're using your own python processing software I'm not sure why
your Maildirs would be set-out like that.

Jamie.

-- 
Primary Key: 4096R/1D31DC38 2011-12-03
Key Fingerprint: A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38


Re: isn't doing what I expect, help please

2012-12-30 Thread Chris Green
On Sun, Dec 30, 2012 at 11:59:11AM +, Jamie Paul Griffin wrote:
> * Chris Green  [2012-12-30 11:43:01 +]:
> 
> > On Sat, Dec 29, 2012 at 11:11:06PM -0200, Ivan Sichmann Freitas wrote:
> > > >I want to *avoid* all this complexity, I simply want a command which
> > > >will scan through all my incoming mail mailboxes and take me to the ones
> > > >which have messages marked N in them.  OK, it'll be a bit slower than
> > > >the (default) way that 'c' works but it will not be dependent on
> > > >operating system quirks which may or may not change the access times in
> > > >unwanted ways.
> > > 
> > > Have you consideres storing your emails in maildir format? I think it
> > > will be easier (even faster) for you to do what you want.
> > > 
> > Yes, about once a year I switch to maildir because of all its
> > 'advantages' and then, after a few days I switch back again because of
> > its *disadvantages*!  :-) (for me anyway)  :-
> > 
> > It doesn't use *real* directories, just long names with . instead of
> > /.  This means that it's messy/difficult to move mail directories
> > around manually (which I do quite frequently).
> > 
> > The gobbledegook filenames it uses mean that any manual access to
> > mail files is fraught with difficulties and using grep is just
> > confusing.
> > 
> > Not every mail program deals with maildir in the same way (in
> > particular some use real directories and others use the . in names
> > described above) so if I try and access the hierarchy with other
> > programs they don't always play nicely.
> 
> These weird Maildirs you describe, are they created by an imap server?
> If so what imap server software are you using?
> 
My mail is initially delivered by SMTP (to a postfix server running
locally) and then filtered by a python script at the moment.  Thus, if
I switch to maildir just now it's the Python libraries which create
the maildirs.  However my issue is more with MUAs which don't play
nicely together using the same maildirs (and also utilities for
manipulating maildirs as they're so painful to manage 'by hand').

-- 
Chris Green


Re: isn't doing what I expect, help please

2012-12-30 Thread Jamie Paul Griffin
* Chris Green  [2012-12-30 11:43:01 +]:

> On Sat, Dec 29, 2012 at 11:11:06PM -0200, Ivan Sichmann Freitas wrote:
> > >I want to *avoid* all this complexity, I simply want a command which
> > >will scan through all my incoming mail mailboxes and take me to the ones
> > >which have messages marked N in them.  OK, it'll be a bit slower than
> > >the (default) way that 'c' works but it will not be dependent on
> > >operating system quirks which may or may not change the access times in
> > >unwanted ways.
> > 
> > Have you consideres storing your emails in maildir format? I think it
> > will be easier (even faster) for you to do what you want.
> > 
> Yes, about once a year I switch to maildir because of all its
> 'advantages' and then, after a few days I switch back again because of
> its *disadvantages*!  :-) (for me anyway)  :-
> 
> It doesn't use *real* directories, just long names with . instead of
> /.  This means that it's messy/difficult to move mail directories
> around manually (which I do quite frequently).
> 
> The gobbledegook filenames it uses mean that any manual access to
> mail files is fraught with difficulties and using grep is just
> confusing.
> 
> Not every mail program deals with maildir in the same way (in
> particular some use real directories and others use the . in names
> described above) so if I try and access the hierarchy with other
> programs they don't always play nicely.

These weird Maildirs you describe, are they created by an imap server?
If so what imap server software are you using?

Jamie


-- 
Primary Key: 4096R/1D31DC38 2011-12-03
Key Fingerprint: A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38


Re: isn't doing what I expect, help please

2012-12-30 Thread Chris Green
On Sat, Dec 29, 2012 at 11:11:06PM -0200, Ivan Sichmann Freitas wrote:
> >I want to *avoid* all this complexity, I simply want a command which
> >will scan through all my incoming mail mailboxes and take me to the ones
> >which have messages marked N in them.  OK, it'll be a bit slower than
> >the (default) way that 'c' works but it will not be dependent on
> >operating system quirks which may or may not change the access times in
> >unwanted ways.
> 
> Have you consideres storing your emails in maildir format? I think it
> will be easier (even faster) for you to do what you want.
> 
Yes, about once a year I switch to maildir because of all its
'advantages' and then, after a few days I switch back again because of
its *disadvantages*!  :-) (for me anyway)  :-

It doesn't use *real* directories, just long names with . instead of
/.  This means that it's messy/difficult to move mail directories
around manually (which I do quite frequently).

The gobbledegook filenames it uses mean that any manual access to
mail files is fraught with difficulties and using grep is just
confusing.

Not every mail program deals with maildir in the same way (in
particular some use real directories and others use the . in names
described above) so if I try and access the hierarchy with other
programs they don't always play nicely.



-- 
Chris Green


Re: isn't doing what I expect, help please

2012-12-29 Thread Ivan Sichmann Freitas

I want to *avoid* all this complexity, I simply want a command which
will scan through all my incoming mail mailboxes and take me to the ones
which have messages marked N in them.  OK, it'll be a bit slower than
the (default) way that 'c' works but it will not be dependent on
operating system quirks which may or may not change the access times in
unwanted ways.


Have you consideres storing your emails in maildir format? I think it
will be easier (even faster) for you to do what you want.

--
Ivan Sichmann Freitas
GNU/Linux user #509059
SDF Arpa Member http://isf.sdf.org/about.html


pgpog0pUnXWOv.pgp
Description: PGP signature


Re: isn't doing what I expect, help please

2012-12-26 Thread Chris Green
On Tue, Dec 25, 2012 at 02:08:44PM +1100, Cameron Simpson wrote:
> On 24Dec2012 17:37, Chris Green  wrote:
> | I have the following settings in my muttrc file:-
> [...]
> | set mbox_type=mbox
> [...]
> |  but the next-unread-mailbox command is *not* taking me to mailboxes
> | with unread mail.  If I navigate manually to these mailboxes there are
> | messages flagged with N.  So what's wrong?  Why isn't next-unread-mailbox
> | finding the new mail?
> | 
> | These are mailboxes listed in the 'mailboxes' command in my muttrc.
> | 
> | It's as if next-unread-mailbox is first doing the same sort of check
> | that 'c' does and *then* looking for N messages.  In my case 'c' won't
> | find new mail because access times have been changed by overnight
> | backups etc., next-unread-mailbox did seem to work yesterday (before the
> | backups ran).
> 
> To detect new mail in a "mbox" format file (a single file with lots of
> messages inside) efficiently, _without_ having ever examined the file
> before, the usual check is mtime > atime i.e. that a message has been
> appended to the file since the file was last read (implicitly by a mail
> reader).
> 
Yes, I *know* this.


> Backups routinely update the atime, because they read the file.
> So now atime > mtime.
> 
Exactly!


> If new mail arrived in a particular mbox since the backup, it should
> work for that mbox. (Can you test that?)
> 
> There's doco on this here:
> 
>   http://www.mutt.org/doc/devel/manual.html#new-mail
> 
> Note particularly the $check_mbox_size mode, which lets mutt notice file
> size changes that happen while mutt is active.
> 
I want to *avoid* all this complexity, I simply want a command which
will scan through all my incoming mail mailboxes and take me to the ones
which have messages marked N in them.  OK, it'll be a bit slower than
the (default) way that 'c' works but it will not be dependent on
operating system quirks which may or may not change the access times in
unwanted ways.

Surely this isn't too much to want?

I thought it was what next-unread-mailbox does but it would appear not.

-- 
Chris Green


Re: isn't doing what I expect, help please

2012-12-24 Thread Cameron Simpson
On 24Dec2012 17:37, Chris Green  wrote:
| I have the following settings in my muttrc file:-
[...]
| set mbox_type=mbox
[...]
|  but the next-unread-mailbox command is *not* taking me to mailboxes
| with unread mail.  If I navigate manually to these mailboxes there are
| messages flagged with N.  So what's wrong?  Why isn't next-unread-mailbox
| finding the new mail?
| 
| These are mailboxes listed in the 'mailboxes' command in my muttrc.
| 
| It's as if next-unread-mailbox is first doing the same sort of check
| that 'c' does and *then* looking for N messages.  In my case 'c' won't
| find new mail because access times have been changed by overnight
| backups etc., next-unread-mailbox did seem to work yesterday (before the
| backups ran).

To detect new mail in a "mbox" format file (a single file with lots of
messages inside) efficiently, _without_ having ever examined the file
before, the usual check is mtime > atime i.e. that a message has been
appended to the file since the file was last read (implicitly by a mail
reader).

Backups routinely update the atime, because they read the file.
So now atime > mtime.

If new mail arrived in a particular mbox since the backup, it should
work for that mbox. (Can you test that?)

There's doco on this here:

  http://www.mutt.org/doc/devel/manual.html#new-mail

Note particularly the $check_mbox_size mode, which lets mutt notice file
size changes that happen while mutt is active.

Cheers,
-- 
Cameron Simpson 

Think positively, act positively, and never leave fingerprints.
- Robert Sneddon


isn't doing what I expect, help please

2012-12-24 Thread Chris Green
I have the following settings in my muttrc file:-

set alias_file=~/.mutt/aliases
set arrow_cursor
set assumed_charset="iso-8859-1"
set confirmappend=no
set delete=yes
set editor=~/.mutt/bin/vimutt
set folder=~/Mail/folder
set folder_format="%N %-32.32f %d %6s"
set index_format="%3C %Z %{%d-%b-%y} %-15.15L (%?l?%4l&%4c?) %s"
set mail_check_recent=no
set mark_old=no
set mbox=~/Mail
set mbox_type=mbox
set nomove
set nomarkers
set query_command="getEvoAddress.py %s"
set record=~/Mail/Tm/sentmail
set reply_to=ask-yes
set rfc2047_parameters=yes
set save_empty=no
set signature=~/.sig
set spoolfile=~/Mail/In/inbox
set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? 
Old:%o?%?d? De>
set status_on_top=yes
set timeout=15

I think the only really relevant ones to this problem are:-

set mail_check_recent=no
set mark_old=no


 but the next-unread-mailbox command is *not* taking me to mailboxes
with unread mail.  If I navigate manually to these mailboxes there are
messages flagged with N.  So what's wrong?  Why isn't next-unread-mailbox
finding the new mail?

These are mailboxes listed in the 'mailboxes' command in my muttrc.

It's as if next-unread-mailbox is first doing the same sort of check
that 'c' does and *then* looking for N messages.  In my case 'c' won't
find new mail because access times have been changed by overnight
backups etc., next-unread-mailbox did seem to work yesterday (before the
backups ran).

-- 
Chris Green


Re: New user tagline and signature help

2012-11-26 Thread Chris Willard
Hello Rado,

Thanks. I am currently testing it.

Chris

On Mon, 26 Nov 2012, Rado Q wrote:

[snip (8 lines)]> 
> 'fortune'
> 

-- 
Chris Willard
ch...@meliser.co.uk


Re: New user tagline and signature help

2012-11-26 Thread Rado Q
=- Chris Willard wrote on Mon 26.Nov'12 at 14:27:36 + -=

> I'm a new mutt user and would like to use random taglines and
> signatures.
> 
> I have worked out how to use send-hooks to change the signatures
> but would like some advice on what scripts/programs are best for
> creating the signatures.

'fortune'

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.


New user tagline and signature help

2012-11-26 Thread Chris Willard
Hello All,

I'm a new mutt user and would like to use random taglines and
signatures.

I have worked out how to use send-hooks to change the signatures but
would like some advice on what scripts/programs are best for creating
the signatures.

Are HTag or signify any good as I have found these via google?

Regards,

Chris

-- 
Chris Willard
ch...@meliser.co.uk


Re: Utility to help building a list of mailboxes on the fly

2012-03-27 Thread Christian Ebert
* Dmitry Marakasov on Monday, March 26, 2012 at 21:12:24 +0400
> I have mutt set up to generate a list of mailboxes on the startup
> automatically (in a way similar to what is written under `Building
> a list of "mailboxes" on the fly' of http://wiki.mutt.org/?ConfigTricks).
> This is really convenient as I have many mailboxes which are created
> automatically with procmail, however with time it becomes uncomfortably
> slow, as find(1) has to stat()'s each file it encounters, and that
> includes all the mail message files, while in my case there're 250k
> of them. -maxdepth option of find won't help either, as I have
> maildirs on a different levels of filesystem hierarchy.

Not if you play around with find's -prune option:

mailboxes `$SHELL -c "\`find ~/Maildir -type d \( -name cur -o -name tmp -o 
-name new -execdir pwd \; \) -prune \`"`

which can be further simplified if your find provides -printf.

> To fix that, I've written a simple utility which I'd like to announce.
> The utility traverses a directory hierarchy and prints names of
> mailboxes (maildirs) it finds in mutt-compatible format. Unlike
> find(1) method documented in the wiki it does not descend into
> maildirs themselves, thus is a lot faster.
> 
>  Invocation:
> $ findmaildirs ~/.mail
> +inbox +archives/foo +archives/bar +maillists/freebsd/ports
> +maillists/freebsd/announce +maillists/lkml ...
> 
>  Using in mutt:
> mailboxes `findmaildirs ~/.mail`
> 
>  GitHub project page:
> https://github.com/AMDmi3/findmaildirs
> 
>  FreeBSD port:
> http://www.freshports.org/mail/findmaildirs
> 
>  OpenSUSE build service page with some RPMs:
> https://build.opensuse.org/package/show?package=findmaildirs&project=home%3AAMDmi3

-- 
Python Mutt utilities --->> https://bitbucket.org/blacktrash/muttils


Utility to help building a list of mailboxes on the fly

2012-03-26 Thread Dmitry Marakasov
Hi!

I have mutt set up to generate a list of mailboxes on the startup
automatically (in a way similar to what is written under `Building
a list of "mailboxes" on the fly' of http://wiki.mutt.org/?ConfigTricks).
This is really convenient as I have many mailboxes which are created
automatically with procmail, however with time it becomes uncomfortably
slow, as find(1) has to stat()'s each file it encounters, and that
includes all the mail message files, while in my case there're 250k
of them. -maxdepth option of find won't help either, as I have
maildirs on a different levels of filesystem hierarchy.

To fix that, I've written a simple utility which I'd like to announce.
The utility traverses a directory hierarchy and prints names of
mailboxes (maildirs) it finds in mutt-compatible format. Unlike
find(1) method documented in the wiki it does not descend into
maildirs themselves, thus is a lot faster.

  Invocation:
$ findmaildirs ~/.mail
+inbox +archives/foo +archives/bar +maillists/freebsd/ports
+maillists/freebsd/announce +maillists/lkml ...

  Using in mutt:
mailboxes `findmaildirs ~/.mail`

  GitHub project page:
https://github.com/AMDmi3/findmaildirs

  FreeBSD port:
http://www.freshports.org/mail/findmaildirs

  OpenSUSE build service page with some RPMs:
https://build.opensuse.org/package/show?package=findmaildirs&project=home%3AAMDmi3

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amd...@amdmi3.ru  ..:  jabber: amd...@jabber.ruhttp://www.amdmi3.ru


  1   2   3   4   5   6   7   8   >