[unixbhas...@gmail.com: Notify-send pop up for specific mails]

2021-02-11 Thread Bhaskar Chowdhury

- Forwarded message from Bhaskar Chowdhury  -

 Kindly throw some light.

Date: Fri, 12 Feb 2021 09:41:28 +0530
From: Bhaskar Chowdhury 
To: ke...@8t8.us
Subject: Notify-send pop up for specific mails

Hey Kevin,

I was wondering and hovering through the manual pages ,it failed to come to
eyes, so asking you ..

I have a line like this in my muttrc :

  set new_mail_command="notify-send --icon='/home/bhaskar/Pictures/neomutt.png'
  \
1 'New Emails' '%n new messages, %u unread.' &"


The problem it pops up for every new mail arrive. All I need to know about
when I am in the TO or CC field or received mail from some specific
individuals, then only the notify send pop up.

Any clue? I saw some rexexes but couldn't figure out how to apply them.
More over is there any "in-built" way of getting that??

Thanks,
Bhaskar



- End forwarded message -


signature.asc
Description: PGP signature


Dead url, returning 404 in wiki under configlist/Configs

2021-02-12 Thread Bhaskar Chowdhury


Hey,

Please take out the dead url from the Configlist page under Configs

Specifically here : https://gitlab.com/muttmua/mutt/-/wikis/ConfigList

And this is the url has to be removed, if the author is not updated that:

http://svn.df7cb.de/dotfiles/cb/.mutt/ - Myon's muttrc

Thanks,
Bhaskar


signature.asc
Description: PGP signature


UserPages dead url ..the first one the page

2021-02-12 Thread Bhaskar Chowdhury


Whoops! stumbled on it again ...

On this page :   https://gitlab.com/muttmua/mutt/-/wikis/UserPages

The url: http://mutt.justpickone.org/ -- David T-G

While clicking on the url Showing:

 "Error resolving “mutt.justpickone.org”: Name or service not known"

 I think it is not maintained anymore.

 Thanks,
 Bhaskar


signature.asc
Description: PGP signature


Re: [unixbhas...@gmail.com: Notify-send pop up for specific mails]

2021-02-13 Thread Bhaskar Chowdhury

On 07:40 Sat 13 Feb 2021, Cameron Simpson wrote:

On 12Feb2021 09:36, Kevin J. McCarthy  wrote:

On Fri, Feb 12, 2021 at 09:59:38AM +0530, Bhaskar Chowdhury wrote:

The problem it pops up for every new mail arrive. [...]

For more sophisticated notification, you'll need to use another tool.


For xample, my own new mail desktop notifications happen from my mail
filer, not from mutt. This has the advantage that they still happen when
mutt is closed (if you can call that an advantage).


How?? Show us...share with the people ..


Cheers,
Cameron Simpson 


signature.asc
Description: PGP signature


Re: [unixbhas...@gmail.com: Notify-send pop up for specific mails]

2021-02-13 Thread Bhaskar Chowdhury

On 11:24 Sun 14 Feb 2021, Cameron Simpson wrote:

On 13Feb2021 19:29, Bhaskar Chowdhury  wrote:

On 07:40 Sat 13 Feb 2021, Cameron Simpson wrote:

On 12Feb2021 09:36, Kevin J. McCarthy  wrote:

On Fri, Feb 12, 2021 at 09:59:38AM +0530, Bhaskar Chowdhury wrote:

The problem it pops up for every new mail arrive. [...]

For more sophisticated notification, you'll need to use another tool.


For xample, my own new mail desktop notifications happen from my mail
filer, not from mutt. This has the advantage that they still happen when
mutt is closed (if you can call that an advantage).


How?? Show us...share with the people ..


Ok

I collect my email with getmail, deliver to my local "+spool" mail
folder, a Maildir (~/mail/spool).

I filter my messages using mailfer:

   https://pypi.org/project/cs.app.mailfiler/

which monitors multiple Maildirs for new messages, and files them
according to per-folder rules.

So it watches spool, spool-in, spool-out, spool-to-phone etc. "spool"
winnows some spam and lets the rest through to spool-in. spool-in files
to my inbox, various mailing list folders etc. Anything not matched
lands in +UNKNOWN. It is mostly spam.  spool-out is what mutt's $record
is set to - mutt saves sent mail there and mailfiler refiles it.
spool-to-phone just has a rule to forward to my phone's email account.

So, alerts.

Mailfiler rules are usually quite simple, like this:

   !me  Work  from:(ALERT)

which says to match messages from addresses in the group "alert" and do
2 things:

- "me" save a copy in my +me folder, my "priority inbox"
- "!" run the $ALERT command with the message and save a copy to the
 targets named in $ALERT_TARGETS

They're set like this:

   ALERT=alert
   ALERT_TARGETS="F,spool-to-phone"

So $ALERT runs my "alert" command, a script. Details below.
$ALERT_TARGETS says:

- "F" (F)lag the message (same as mutt's (F)lag command) so that it is
 highlighted in mutt's index
- "spool-to-phone" save a copy in my +spool-to-phone folder, which
 mailfiler also monitors (its rules say forward a copy to my phone's
 email account)

The desktop popup comes from my "alert"r script:

   https://hg.sr.ht/~cameron-simpson/css/browse/bin/alert?rev=tip

That will issue alerts to a variety of places depending on envvars and
options particularly my dlog (a timestamped text log I use for reviewing
things, since my invoicing system is a ghastly hack held together with
string) and to the desktop.


Thanks!

.but depending too much of other software makes it fragile and prone to
error and least to say it is complex.

Ordinary mortals(i.e me) who has less technical bend of mind, will run away
from this.

I do understand simplicity can not achieved without by digging and getting into 
the rabbit
hole...again but...how many are willing(including me, I am an truest sense lazy
person) ...

Anyway, your manipulation to get the simple task done very commanding ,alas!
If I could follow.

Not to deny, I do fall on fetchmail , procmail et al along with mutt(the love
for something do wonder) , but more to it ...nope...


The "desktop alert" part of that script is in the $to_desktop
if-statement at the bottom. Presently I'm on a Mac and use the
"terminal-notifier" command to issue a normal Mac Notification popup.
I'd be using whatever Linux desktop notification command line were
suitable were I on Linux.


notify-send is the "lightest" and "efficient" way of doing it on Linux.


I presume there _is_ a standard way to issue a popup alert on Linux
systems these days? I used to just always run a permanent very short
full-width terminal across the top of the screen tailing a log file
myself, crude but effective. The same terminal also accepted commands if
you typed them.

Anyway, that is how this is hooked into my email.

Suggestions for current Linux or other UNIX desktop popup command line
tools welcomed.

As mentioned use notify-send.




Finally, I don't have the ability to create something native(think of it as
excuse not to put effort,if you like :) ) OR we don't want mutt to be convoluted
with some "airy-fairy" stuff.

I am happy with it's limitation(partly because of my lack of understanding and
as mentioned ability to extends it,being using it for long time though).



Cheers,
Cameron Simpson 


signature.asc
Description: PGP signature


Re: Resolved!![unixbhas...@gmail.com: Notify-send pop up for specific mails]

2021-02-17 Thread Bhaskar Chowdhury

On 09:36 Fri 12 Feb 2021, Kevin J. McCarthy wrote:

On Fri, Feb 12, 2021 at 09:59:38AM +0530, Bhaskar Chowdhury wrote:

The problem it pops up for every new mail arrive. All I need to know
about when I am in the TO or CC field or received mail from some
specific individuals, then only the notify send pop up.

Any clue? I saw some rexexes but couldn't figure out how to apply them.
More over is there any "in-built" way of getting that??


No, $new_mail_command doesn't provide anything sophisticated.  It
operates at the same time as $beep_new - running when Mutt detects new
mail in the open mailbox or any of the monitored mailboxes.

For more sophisticated notification, you'll need to use another tool.



Well, after bit internet searching I have stumbled upon on this page and it
solved what I was looking for.

http://enricorossi.org/blog/2016/mail_notify_with_procmail/

...I do have mutt+fetchmail+procmail setup..just take the essence out of
those..

Thanks,
Bhaskar

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





signature.asc
Description: PGP signature


How to create local label and enlist/see them

2021-09-17 Thread Bhaskar Chowdhury

 Well, I am trying to figure out ,how it could be done . As the subject line
 said , I need to create specific label on certain message and later wanted to
 view them in pager . Probably if I wish , selecting one of them and see those
 specific label mails.(Not sure though is this something "l" or "limiting" 
features does?)

 Okay, IIRC , I plucked out some code ..from where I can't remember though
 ...but it is like this :


 # labels
index y "set editor=\"~/bin/editlabel append\"\n\
 \
 set editor=vim\n" "Append label"
 pager y "set editor=\"~/bin/editlabel append\"\n\
 \
 set editor=vim\n" "Append label"
 index Y "set editor=\"~/bin/editlabel menu\"\n\
\
set editor=vim\n" "Edit labels"
 pager Y "set editor=\"~/bin/editlabel menu\"\n\
\
set editor=vim\n" "Edit labels"
 index \Cy "~y " "Limit view to label"


Okay, the thing is SHIFT-y is predefined in mutt to append/edit/delete labels. 
I can only see ,while pressing Shift-y, that prompt me
at the bottom "Edit Label: ...now, if I put some text there and enter it says "Label 
created" but how to see those label???

Well, are you confused yet?? If you not ,good news ...if yes, do let me know 
...so I can clarify the confused part.

Thanks,
Bhaskar



signature.asc
Description: PGP signature


Re: How to create local label and enlist/see them

2021-09-18 Thread Bhaskar Chowdhury

On 11:08 Sat 18 Sep 2021, Marcus C. Gottwald wrote:


Bhaskar Chowdhury wrote (Sat 2021-Sep-18 10:05:57 +0530):


... if I put some text there and enter it says "Label created" but how to 
see those label???


I modified "index_format" to show the label string at the right-hand
edge of each line.

The default value for index_format is:
%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s

My .muttrc sets an extended version:
  set index_format="%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s%* %?y? %y?"

If a message's label string is non-empty, it will be shown prepended
with five spaces and right-aligned, overwriting a long subject.

Cheers, Marcus

--
  Marcus C. Gottwald  ��  @mcg:cheers.de


Thanks, let me give it a shot.

~ Bhaskar


signature.asc
Description: PGP signature


Re: How to create local label and enlist/see them

2021-09-18 Thread Bhaskar Chowdhury

On 09:56 Sat 18 Sep 2021, Jean Louis wrote:

* Bhaskar Chowdhury  [2021-09-18 07:31]:

 Well, I am trying to figure out ,how it could be done . As the subject line
 said , I need to create specific label on certain message and later wanted to
 view them in pager . Probably if I wish , selecting one of them and see those
 specific label mails.(Not sure though is this something "l" or
 "limiting" features does?)


I use "Y" to edit label in Mutt, which is for a new header added and
looks as following:

X-Label: MY-LABEL

Then if I do search like by using "/" I would enter: "~y MY-LABEL" to
find the next message, or I could limit the view to "MY-LABEL" labeled
messages by using "l" and "~y MY-LABEL", that is how you find those
messages.


--
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/


Okay, let me try the search like you. Thanks.

~Bhaskar


signature.asc
Description: PGP signature


Re: Search program that can find an E-Mail with an exact Date: match

2021-11-30 Thread Bhaskar Chowdhury


Well, you might give it a shot a program called "Notmuch" or "Mu"
...both are mail indexer and search . Importantly , they have 
machanism

to integrate with most of the editors.

Thanks,
Bhaskar

Chris Green  writes:

I'm looking for a way to find (and display) an E-Mail when I 
know the

exact value of the Date: header.

The 'usual' search programs such as Mairix can't do this as they 
all
expect a date range and also expect it to be at least a day 
long.


I've also tried grepmail but that seems not to be able to search
maildir E-Mails.

Is there anything out there that can do this?

I can grep for the E-Mail but then I'm left with the issue of
extracting the body/text which is what I actually want.  Can I 
'pipe'

the mailbox (found by grep) into mutt and then get the output on
stdout, that's what I'd need.


signature.asc
Description: PGP signature


Re: [OT] fetchmail replacement supporting Oauth

2022-05-02 Thread Bhaskar Chowdhury
Will Yardley  writes:

> On Sun, May 01, 2022 at 02:17:40PM -0400, Ed Blackman wrote:
>> 
>> Google seems serious about disabling app passwords for good this time
>> in favor of Oauth.
>
> Any links / docs / background on this?
>
> w

Probably this : https://getmail6.org  


signature.asc
Description: PGP signature


Re: filter on date

2023-06-02 Thread Bhaskar Chowdhury

On 10:09 Fri 02 Jun 2023, steve wrote:

Hi,

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

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

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

Also tried

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

How could I do?



How about running it on every month end, so you don't have to run it like for
whole year(that was you were trying, right?)

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

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

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


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

--
Thanks,
Bhaskar

"Here's looking at you kid"-- Casablanca
https://about.me/unixbhaskar


signature.asc
Description: PGP signature