# $Id$
+2007-02-14
+ * Include missing mboxscan.h in conky.h.
+ * Fixed signedness warnings in conky.c.
+
2007-02-11
* Added buffer_text_size option to change the size of the buffer for
things like $exec, $tail, et cetera
config file (default is 16384 bytes)
+ text_buffer_size bytes
+ Size of the standard text buffer (default is 1280 bytes).
+
+
maximum_width pixels
Maximum width of window
cpu (cpuN)
CPU usage in percents. For SMP machines, the CPU number can be
- provided as an argument. ${cpu 0} is the total usage, and ${cpu
- X} (X >= 1) are individual CPUs.
+ provided as an argument. ${cpu cpu0} is the total usage, and
+ ${cpu cpuX} (X >= 1) are individual CPUs.
cpubar (cpu number) (height),(width)
also new_mails.
+ mboxscan (-n number of messages to print) (-fw from width) (-sw subject
+ width) mbox
+ Print a summary of recent messages in an mbox format mailbox.
+ mbox parameter is the filename of the mailbox (can be encapsu-
+ lated using '"', ie. ${mboxscan -n 10 "/home/brenden/some box"}
+
+
mem Amount of memory in use
(default is 16384 bytes)
.TP
+\fB\*(T<\fBtext_buffer_size\fR\*(T>\fR \*(T<\fBbytes\fR\*(T>
+Size of the standard text buffer (default is 1280 bytes).
+
+.TP
\fB\*(T<\fBmaximum_width\fR\*(T>\fR \*(T<\fBpixels\fR\*(T>
Maximum width of window
.TP
\fB\*(T<\fBcpu\fR\*(T>\fR \*(T<\fB(cpuN)\fR\*(T>
-CPU usage in percents. For SMP machines, the CPU number can be provided as an argument. ${cpu 0} is the total usage, and ${cpu X} (X >= 1) are individual CPUs.
+CPU usage in percents. For SMP machines, the CPU number can be provided as an argument. ${cpu cpu0} is the total usage, and ${cpu cpuX} (X >= 1) are individual CPUs.
.TP
\fB\*(T<\fBcpubar\fR\*(T>\fR \*(T<\fB(cpu number) (height),(width)\fR\*(T>
Mail count in mail spool. You can use program like fetchmail to get mails from some server using your favourite protocol. See also new_mails.
.TP
+\fB\*(T<\fBmboxscan\fR\*(T>\fR \*(T<\fB(\-n number of messages to print) (\-fw from width) (\-sw subject width) mbox\fR\*(T>
+Print a summary of recent messages in an mbox format mailbox. mbox parameter is the filename of the mailbox (can be encapsulated using '"', ie. ${mboxscan -n 10 "/home/brenden/some box"}
+
+.TP
\fB\*(T<\fBmem\fR\*(T>\fR
Amount of memory in use
}
/* Make sure bsize is at least 1 byte smaller than
* the buffer max size. */
- if(bsize > text_buffer_size*20 - 1) {
+ if(bsize > (long)((text_buffer_size*20) - 1)) {
fseek(fp, bsize - text_buffer_size*20 - 1, SEEK_CUR);
bsize = text_buffer_size*20 - 1;
}
obj->data.tail.readlines = iter;
/* Make sure nl is at least 1 byte smaller than
* the buffer max size. */
- if(nl > text_buffer_size*20 - 1) {
+ if(nl > (long)((text_buffer_size*20) - 1)) {
nl = text_buffer_size*20 - 1;
}
nl = fread(obj->data.tail.buffer, 1, nl, fp);
#include <xmmsclient/xmmsclient.h>
#endif
+#include "mboxscan.h"
#include "timed_thread.h"
#define TOP_CPU 1