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.