diff options
Diffstat (limited to '')
-rw-r--r-- | .config/mutt/accounts/1-gmx_rbo.muttrc | 2 | ||||
-rw-r--r-- | .config/mutt/accounts/2-gmx_shop.muttrc | 2 | ||||
-rw-r--r-- | .config/mutt/accounts/3-gmail_br.muttrc | 2 | ||||
-rw-r--r-- | .config/mutt/accounts/4-gmail_oon.muttrc | 2 | ||||
-rwxr-xr-x | .local/bin/fetch_mail | 34 | ||||
-rwxr-xr-x | .local/bin/ndate | 2 |
6 files changed, 23 insertions, 21 deletions
diff --git a/.config/mutt/accounts/1-gmx_rbo.muttrc b/.config/mutt/accounts/1-gmx_rbo.muttrc index 2c99094..7c8f018 100644 --- a/.config/mutt/accounts/1-gmx_rbo.muttrc +++ b/.config/mutt/accounts/1-gmx_rbo.muttrc @@ -25,7 +25,7 @@ named-mailboxes \ " inbox" =INBOX \ " sent" =Sent \ " draft" =Drafts \ - " junk" =Spam \ + " junk" =Spam \ " trash" =Trash \ " keep" =Keep diff --git a/.config/mutt/accounts/2-gmx_shop.muttrc b/.config/mutt/accounts/2-gmx_shop.muttrc index abb951b..7000213 100644 --- a/.config/mutt/accounts/2-gmx_shop.muttrc +++ b/.config/mutt/accounts/2-gmx_shop.muttrc @@ -25,7 +25,7 @@ named-mailboxes \ " inbox" =INBOX \ " sent" =Sent \ " draft" =Drafts \ - " junk" =Spam \ + " junk" =Spam \ " trash" =Trash macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" diff --git a/.config/mutt/accounts/3-gmail_br.muttrc b/.config/mutt/accounts/3-gmail_br.muttrc index 18d1da4..2cbb149 100644 --- a/.config/mutt/accounts/3-gmail_br.muttrc +++ b/.config/mutt/accounts/3-gmail_br.muttrc @@ -25,7 +25,7 @@ named-mailboxes \ " inbox" =INBOX \ " sent" "=[Gmail]/Sent Mail" \ " draft" =[Gmail]/Drafts \ - " junk" =[Gmail]/Spam \ + " junk" =[Gmail]/Spam \ " trash" =[Gmail]/Trash \ " keep" =Keep diff --git a/.config/mutt/accounts/4-gmail_oon.muttrc b/.config/mutt/accounts/4-gmail_oon.muttrc index 4f398a5..26cf9c2 100644 --- a/.config/mutt/accounts/4-gmail_oon.muttrc +++ b/.config/mutt/accounts/4-gmail_oon.muttrc @@ -25,7 +25,7 @@ named-mailboxes \ " inbox" =INBOX \ " sent" "=[Gmail]/Sent Mail" \ " draft" =[Gmail]/Drafts \ - " junk" =[Gmail]/Spam \ + " junk" =[Gmail]/Spam \ " trash" =[Gmail]/Trash \ " keep" =Keep diff --git a/.local/bin/fetch_mail b/.local/bin/fetch_mail index 2002ce3..0c743ec 100755 --- a/.local/bin/fetch_mail +++ b/.local/bin/fetch_mail @@ -26,7 +26,10 @@ sub get_new_mail my $ret; system('killall mbsync >/dev/null 2>&1'); - system('mbsync', $acc); + $ret = system('mbsync', 'qwe'); + if ($ret != 0) { + notify(" $acc: failed to sync mails"); + } return; } @@ -56,6 +59,20 @@ sub count_new_mails sub fetch_thread { + return; +} + +sub fetch_mail +{ + $ENV{'MAIL'} = $HOME . '/.local/share/mail'; + $ENV{'GNUPGHOME'} = $HOME . '/.local/share/gnupg'; + $ENV{'PASSWORD_STORE_DIR'} = $HOME . '/.local/share/pass'; + my $maildir = $ENV{'MAIL'} . '/'; + # my $notify_str = " new mails\n"; + + # test gpg + my @accs = get_all_accounts(); + foreach (@accs) { my $pre_count = -1; my $mc_file = MC_FILE_PATH . $_; my $fh; @@ -79,21 +96,6 @@ sub fetch_thread seek($fh, 0, 0); print $fh "$post_count"; close($fh); - return; -} - -sub fetch_mail -{ - $ENV{'MAIL'} = $HOME . '/.local/share/mail'; - $ENV{'GNUPGHOME'} = $HOME . '/.local/share/gnupg'; - $ENV{'PASSWORD_STORE_DIR'} = $HOME . '/.local/share/pass'; - my $maildir = $ENV{'MAIL'} . '/'; - # my $notify_str = " new mails\n"; - my $og_length = length($notify_str); - - # test gpg - my @accs = get_all_accounts(); - foreach (@accs) { } # notify($notify_str) if (length($notify_str) > $og_length); return; diff --git a/.local/bin/ndate b/.local/bin/ndate index 372d0cd..460cf1d 100755 --- a/.local/bin/ndate +++ b/.local/bin/ndate @@ -11,4 +11,4 @@ # == ================ # ===================== -exec herbe "$(date '+%H:%M | %a, %d %b %Y')" +exec herbe " $(date '+%H:%M | %a, %d %b %Y')" |