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 година
Jonas Dujava
8e35e474c5
Fix usages of mail/mails
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
преди 1 година
Jonas Dujava
43eceb5536
Fix notifications for mails with multiline subject
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
преди 1 година
ivan-boikov
f8ffab3a11
No mailsync with locked GPG key in non-interactive shells
преди 2 години
appeasementPolitik
532332b8df
Fix notify-send not coming through
преди 2 години
Luke Smith
d3300a478d
simplification of decoding, show help on noopt
преди 3 години
Luke Smith
48ac83c07f
bring back ugly but functional cmds to get subject
fix #910
преди 3 години
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 години
Luke Smith
f0ae1de9e1
mail notifications back, close #907 , fix #095
use MAILSYNC_MUTE variable, and non-silly
commands to derive $from and $subject
преди 3 години
Luke Smith
6e44eb5056
stupid fix and cli feedback
преди 3 години
Luke Smith
2a60bfb6d9
simplify mailsync, remove silly option passing
преди 3 години
AlexBocken
ab82cf359f
read-in env vars properly if dependent on XDG Standard
преди 3 години
Junicchi
bfa70c5242
read xorg displays from unix-domain socket if pgrep returns null
преди 3 години
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 години
Karel Křemel
05b8300422
parse pop config only when file exists
преди 3 години
Luke Smith
607b44e221
leftover from bugtesting
преди 3 години
Luke Smith
c3f4ab8db0
better muting, suppress no mpop config, tabbing
преди 3 години
Parin Jasoliya
f723938a73
Add Support for POP3 Notification
преди 3 години
Wayne Reeves
d2a5d06d43
forgot escape on | to get variable; case condition s/no/mute/
преди 3 години
Wayne Reeves
b7f2bc0ff1
check for MAILSYNC_MUTE
преди 3 години
Luke Smith
30c1c0d2ae
fix #785 since cron now silent
преди 3 години
Luke Smith
caf2681891
remove bashism
преди 3 години
jw
367c10ec3f
Silence mailsync, so cron doesn't spam e-mails on every update
преди 3 години
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 години
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 години
Luke Smith
5ae4758790
mailsync manual per debian requirements
преди 4 години
Matthew McCulley
8e81135f8b
Checks $HOME/.confg/zsh/.zshenv for Env variables
преди 4 години
Luke Smith
418565eb94
minor tweaks
преди 4 години
Luke Smith
bd0075898a
hardcode mailbox names. don't remake shortcuts.
преди 4 години
Luke Smith
c88994e730
decrease gnuisms
преди 4 години
Luke Smith
8d177222d6
don't show message info anymore
преди 4 години
Luke Smith
f845e11fe2
fix #745 , avoid incompatibility
преди 4 години
Horea Christian
5971fadec8
Check both new and cur dirs for notification
Also better formattin
преди 4 години
Kr1ss
b0452a39d5
remove `pidof -s` flag
Ref:
b9a95a055a (commitcomment-52203708)
преди 4 години
Kr1ss
b9a95a055a
patch mailsync on macOS; fixes #725
The macOS version of `pidof` doesn't implement the `-s` flag.
преди 4 години
Luke Smith
36788d9c43
don't readlink for soystemd on mac
преди 4 години
Luke Smith
243fca2b9c
don't state mail number if small
преди 5 години
Luke Smith
80f10e6e7d
give individual notifications only if < 5
in accordance with #694
преди 5 години
Luke Smith
de58c98693
no msg
преди 5 години
Luke Smith
b9b3f7f685
zshenv checked for variables. fix #677
преди 5 години
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 години
Clément DOUIN
0ff14fee55
fix notifications on Xwayland
преди 5 години
Luke Smith
978cd4eb98
for zdotdir changes; close #639
преди 5 години
Aaron Friesen
c3aa6733f2
Fix duplicate mailsync notifications
преди 5 години
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 години
dgrisham
b11dcf53dc
mailsync: Check whether XDG_CONFIG_HOME is defined before defaulting to $HOME/.config for mutt dir
преди 5 години
Luke Smith
b56686aae5
fix notification duplication
преди 5 години
Luke Smith
913c877448
detect all Xorgs #fixes #607
преди 5 години
Luke Smith
564c529f8e
curl redirects and times out
преди 5 години
Luke Smith
aa4fb999eb
systemd fix, check for variables with whitespace
преди 5 години