Yaroslav Chvanov
824feedc68
fix(mailsync): delimit notification text from flags
Fixes text being interpreted as flags when it starts with a dash.
Try sending yourself a letter with subject starting with '-'.
E.g. if subject is '-10%' fixes error:
> Unknown option -10%
1 rok temu
Jonas Dujava
8e35e474c5
Fix usages of mail/mails
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
1 rok temu
Jonas Dujava
43eceb5536
Fix notifications for mails with multiline subject
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
1 rok temu
ivan-boikov
f8ffab3a11
No mailsync with locked GPG key in non-interactive shells
2 lat temu
appeasementPolitik
532332b8df
Fix notify-send not coming through
2 lat temu
Luke Smith
d3300a478d
simplification of decoding, show help on noopt
3 lat temu
Luke Smith
48ac83c07f
bring back ugly but functional cmds to get subject
fix #910
3 lat temu
shane.xb.qian
7de48da554
fix: displays fallback of default looks should be ':0'
// solution: changed from '0:' to ':0'
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
3 lat temu
Luke Smith
f0ae1de9e1
mail notifications back, close #907 , fix #095
use MAILSYNC_MUTE variable, and non-silly
commands to derive $from and $subject
3 lat temu
Luke Smith
6e44eb5056
stupid fix and cli feedback
3 lat temu
Luke Smith
2a60bfb6d9
simplify mailsync, remove silly option passing
3 lat temu
AlexBocken
ab82cf359f
read-in env vars properly if dependent on XDG Standard
3 lat temu
Junicchi
bfa70c5242
read xorg displays from unix-domain socket if pgrep returns null
3 lat temu
shane.xb.qian
f6b5806af9
fix: make o and O macro work and really sync multiple/individual accounts
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
3 lat temu
Karel Křemel
05b8300422
parse pop config only when file exists
3 lat temu
Luke Smith
607b44e221
leftover from bugtesting
3 lat temu
Luke Smith
c3f4ab8db0
better muting, suppress no mpop config, tabbing
3 lat temu
Parin Jasoliya
f723938a73
Add Support for POP3 Notification
3 lat temu
Wayne Reeves
d2a5d06d43
forgot escape on | to get variable; case condition s/no/mute/
3 lat temu
Wayne Reeves
b7f2bc0ff1
check for MAILSYNC_MUTE
3 lat temu
Luke Smith
30c1c0d2ae
fix #785 since cron now silent
3 lat temu
Luke Smith
caf2681891
remove bashism
3 lat temu
jw
367c10ec3f
Silence mailsync, so cron doesn't spam e-mails on every update
3 lat temu
f380cedric
3a2f4a55fa
Fix: find & case-insensitive filesystem
On case-insensitive filesystem,
`inbox` and `Inbox` are the same path.
Running `find Inbox inbox [expr]` will print twice the same information.
Use shell glob instead:
`find` will descend into path `inbox`,
ignoring letter cases, only once.
Fix #828 .
3 lat temu
Kr1ss
f2014408b9
fix notifications when the Xorg process is just X
To close #845 :
I added the `-x` flag to prevent the regex from matching on _every_ pro-
cess name containing an `X`.
Because I'm not entirely sure about portability (does every `pgrep` va-
riant support that flag), I didn't push this directly.
So what do you think @LukeSmithxyz ?
3 lat temu
Luke Smith
5ae4758790
mailsync manual per debian requirements
4 lat temu
Matthew McCulley
8e81135f8b
Checks $HOME/.confg/zsh/.zshenv for Env variables
4 lat temu
Luke Smith
418565eb94
minor tweaks
4 lat temu
Luke Smith
bd0075898a
hardcode mailbox names. don't remake shortcuts.
4 lat temu
Luke Smith
c88994e730
decrease gnuisms
4 lat temu
Luke Smith
8d177222d6
don't show message info anymore
4 lat temu
Luke Smith
f845e11fe2
fix #745 , avoid incompatibility
4 lat temu
Horea Christian
5971fadec8
Check both new and cur dirs for notification
Also better formattin
4 lat temu
Kr1ss
b0452a39d5
remove `pidof -s` flag
Ref:
b9a95a055a (commitcomment-52203708)
4 lat temu
Kr1ss
b9a95a055a
patch mailsync on macOS; fixes #725
The macOS version of `pidof` doesn't implement the `-s` flag.
4 lat temu
Luke Smith
36788d9c43
don't readlink for soystemd on mac
4 lat temu
Luke Smith
243fca2b9c
don't state mail number if small
5 lat temu
Luke Smith
80f10e6e7d
give individual notifications only if < 5
in accordance with #694
5 lat temu
Luke Smith
de58c98693
no msg
5 lat temu
Luke Smith
b9b3f7f685
zshenv checked for variables. fix #677
5 lat temu
Kr1ss
747af1cccb
mailsync/notify-send: provide a default `$DISPLAY`
A user reports notifications not working on their setup because there is
no display id contained in the `ps`/`pgrep` output concerning the Xorg
process.
This commit checks if there's a display server running at all, and if so
it sends notifications even if there's no display id.
Resolves https://github.com/LukeSmithxyz/mutt-wizard/issues/661
5 lat temu
Clément DOUIN
0ff14fee55
fix notifications on Xwayland
5 lat temu
Luke Smith
978cd4eb98
for zdotdir changes; close #639
5 lat temu
Aaron Friesen
c3aa6733f2
Fix duplicate mailsync notifications
5 lat temu
Francesco Minnocci
718e586f4a
mailsync: Check for ZDOTDIR when looking for environmental variables
inside .zprofile and .zshrc.
~/.profile is not necessarily present when using zsh for login and
setting $ZDOTDIR in ~/.zshenv
5 lat temu
dgrisham
b11dcf53dc
mailsync: Check whether XDG_CONFIG_HOME is defined before defaulting to $HOME/.config for mutt dir
5 lat temu
Luke Smith
b56686aae5
fix notification duplication
5 lat temu
Luke Smith
913c877448
detect all Xorgs #fixes #607
5 lat temu
Luke Smith
564c529f8e
curl redirects and times out
5 lat temu
Luke Smith
aa4fb999eb
systemd fix, check for variables with whitespace
5 lat temu