Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: new_mails count wrong #1578

Open
pescepalla opened this issue Jul 2, 2023 · 2 comments
Open

[Bug]: new_mails count wrong #1578

pescepalla opened this issue Jul 2, 2023 · 2 comments
Labels
bug Bug report or bug fix PR mail Issue or PR related to mail status capabilities text Issue or PR related to `conky.text` variables triage Issue that hasn't been verified

Comments

@pescepalla
Copy link

What happened?

Conky reports a wrong number of new_mails.

Screenshot_2023-07-02_10-18-41

As per screenshot, the object new_mails counts 1 new mail when the spool has 2 old mails.

Version

1.18.1_pre

Which OS/distro are you seeing the problem on?

Arch Linux

Conky config

-- Conky, a system monitor https://github.com/brndnmtthws/conky
-- For more on Lua, see:
-- https://www.lua.org/pil/contents.html

conky.config = {
    alignment = 'top_right',
    background = true,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'black',
    default_shade_color = 'black',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = true,
    extra_newline = false,
    font = 'DroidSansM Nerd Font Mono:size=10',
    gap_x = 30,
    gap_y = 50,
    maximum_width = 300,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = true,
    own_window = true,
    own_window_argb_visual = true,
    own_window_class = 'Conky',
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_type = 'desktop',
    own_window_transparent = true,
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    update_interval = 5,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
}

conky.text = [[
${color orange} System [$color$nodename_short${color orange}] $hr
$color${time %A, %B %e}$alignr${color grey}Uptime:$color $uptime_short
${color grey}Disk space: $alignr$color${fs_used /} ${color grey}/$color ${fs_size /}
${color grey}Updates: $color${execi 60 cat ~/.cache/updatecount} ${color grey}[$color${execi 60 date -r ~/.cache/updatecount "+%x %R"}${color grey}]${alignr}Logs: $color${new_mails /var/spool/mail/alessandro}

${color orange} MPD [$color$mpd_status${color orange}] $hr
$if_mpd_playing${scroll 32 1 $color$mpd_smart}$alignr$color$mpd_percent ${color grey}%
$endif
${color orange} Wifi [$color${wireless_essid wlan0}${color orange}] $hr
${if_up wlan0}${color grey}Quality: $color${wireless_link_qual_perc wlan0} ${color grey}%$alignr${color grey}Local IP: $color${addr wlan0}
${color grey}Up: $color${upspeed wlan0} $alignr${color grey}Down: $color ${downspeed wlan0}
${color grey}Public IP: $color${execi 601 cat ~/.cache/pubip}
$endif
${color orange} Todo [$color${execi 61 todo.sh -Pp ls | grep -v "^x" | head -n -3 | wc -l}${color orange}] $hr
$color${execi 61 todo.sh -Pp ls | grep -v "^x" | cut -c 14- | head -n -3 | head -n 10 }

${color orange} Load [$color${loadavg}${color orange}] $hr
${color grey}Name$alignr PID   CPU%$color
${top name 1}$alignr${top pid 1} ${top cpu 1}
${top name 2}$alignr${top pid 2} ${top cpu 2}
${top name 3}$alignr${top pid 3} ${top cpu 3}
${top name 4}$alignr${top pid 4} ${top cpu 4}
]]

Stack trace

No response

Relevant log output

No response

@pescepalla pescepalla added bug Bug report or bug fix PR triage Issue that hasn't been verified labels Jul 2, 2023
@Meetverma
Copy link

Hey would like to work on it can you provide me with the issue details ?

@pescepalla
Copy link
Author

I have since stopped using conky, sorry.

@Caellian Caellian added text Issue or PR related to `conky.text` variables mail Issue or PR related to mail status capabilities labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report or bug fix PR mail Issue or PR related to mail status capabilities text Issue or PR related to `conky.text` variables triage Issue that hasn't been verified
Projects
None yet
Development

No branches or pull requests

3 participants