gbuffy is looking for message marked as "RECENT".
When you connect and look at headers, then the "RECENT" flag is removed
with courier.
This patch gets you closer to what you want, probably:
--- imap.c+ Tue Oct 7 08:54:23 2003
+++ imap.c Tue Oct 7 08:54:06 2003
@@ -525,7 +525,7 @@
* think we want that, so use UNSEEN instead */
/* Go back to using RECENT, as it shouldn't be updated on EXAMINE */
imap_make_sequence (seq, sizeof (seq));
- snprintf (buf, sizeof (buf), "%s STATUS %s (MESSAGES RECENT)\r\n", seq,
+ snprintf (buf, sizeof (buf), "%s STATUS %s (MESSAGES UNSEEN)\r\n", seq,
ibox->path);
msocket_write (conn, buf);
@@ -560,7 +560,7 @@
ibox->num_messages = atoi (s);
}
}
- else if (strncmp ("RECENT", s, 6) == 0)
+ else if (strncmp ("UNSEEN", s, 6) == 0)
{
s = imap_next_word (s);
if (isdigit (*s))
The only problem with that is that i've found that mail readers are acting
somewhat differently than I had gotten from using /var/mail/foo mbox
format.
With /var/mail/foo mbox format, you had Status headers that were written
into the messages. The interesting ones were:
No status: New
Status: O Old
Status: R Read
Now what you have is:
RECENT (which seems almost useless in courier unless you only use one instance
of one mail client period)
SEEN/UNSEEN (which corresponds to Read messages)
Mutt, which I use as a mailreader appears to me to recognize when it
opens that "RECENT" messages are new, and anything that isn't marked
as seen, but isn't "RECENT" is Old.
However, this is for initial connection. Only one "client" can do this
at once. I haven't figured out any way that gbuffy can even reasonably
tell the difference between these.
On Mon, Oct 06, 2003 at 03:11:39PM -0700, Net Nut did say:
>So, this works in that the box actually shows a number other than zero now,
>but I have noticed the minute I access on of the maildirs to see what mail
>is in there (even if I never open any mail itmes) the mailcount jumps to 0
>from whatever it was at (which was acurate untill I looked in the folder).
>
>Any idea what causes this?
>
>
>
>-----Original Message-----
>From: ksuquix [mailto:quixote@...]
>Sent: Friday, September 26, 2003 1:43 PM
>To: gbuffy@yahoogroups.com
>Subject: Re: still having trouble using this on a with courier imap server
>
>
>I just had this problem too.
>
>What I did to solve the problem was instead of this:
> path = INBOX;
>use this:
> path = "\"INBOX\"";
>
>(In the gui, put double quotes around inbox)
>
>When the status is coming back from courier, it is putting quotes around the
>inbox name, which gbuffy isn't parsing.
>
>--- In gbuffy@yahoogroups.com, NetNut404 <netnut404@u...> wrote:
>> more info...
>>
>> after sending a new mail to myself.. it says this in the debug log..
>>
>>
>> msocket_read_line_d():* STATUS "inbox" (MESSAGES 102 RECENT 0)
>> msocket_read_line_d():a0004 OK STATUS Completed. msocket_write():a0005
>> STATUS inbox (MESSAGES RECENT)^M
>> msocket_read_line_d():* STATUS "inbox" (MESSAGES 103 RECENT 1)
>> msocket_read_line_d():a0005 OK STATUS Completed. msocket_write():a0006
>> STATUS inbox (MESSAGES RECENT)^M
>> msocket_read_line_d():* STATUS "inbox" (MESSAGES 103 RECENT 1)
>>
>> yet the number stays the same in gbuffy
>>
>>
>>
>> NetNut404 writes:
>>
>> > Oops I spoke too soon it did eventually write to the log after
>leaving it
>> > running for a while..
>> >
>> > it said
>> > cat .gbuffydebug
>> > msocket_read_line_d():* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN
>NAMESPACE
>> > THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS]
>> > Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc.
>See COPYING
>> > for distribution information.
>> > msocket_write():a0000 LOGIN "dauser" "password"
>> > msocket_read_line_d():a0000 OK LOGIN Ok. msocket_write():a0001
>> > STATUS inbox (MESSAGES RECENT)
>> > msocket_read_line_d():* STATUS "inbox" (MESSAGES 102 RECENT 0)
>> > msocket_read_line_d():a0001 OK STATUS Completed.
>> > msocket_write():a0002 STATUS inbox (MESSAGES RECENT)
>> > msocket_read_line_d():* STATUS "inbox" (MESSAGES 102 RECENT 0)
>> > msocket_read_line_d():a0002 OK STATUS Completed.
>> >
>> > so why does it always show 0 ?
>> >
>> >
>> >
>> > NetNut404 writes:
>> >
>> >> ok, that workd fo compiling, and now it took the -d 5 and said
>> >>
>> >> "-I- Debugging at level 5"
>> >>
>> >> but the debug file which was created remains 0 bytes even after
>putting in
>> >> the username and password both incorrectly, and correctly..
>> >>
>> >> ls -la .gbuffydebug
>> >> -rw-rw-r-- 1 dauser dauser 0 Sep 13 23:00
>.gbuffydebug
>> >>
>> >> pointers?
>> >>
>> >>
>> >> Brandon Long writes:
>> >>
>> >>> yeah, that's a known issue, just delete that call to g_print.
>> >>>
>> >>> Brandon
>> >>>
>> >>> On 09/13/03 NetNut404 uttered the following other thing:
>> >>>> Hmm but when I do that it no longer compiles.. I get
>> >>>>
>> >>>> make
>> >>>> gcc -g -O2 -I. `/usr/bin/gtk-config --cflags` -c -o
>config.o config.c
>> >>>> gcc -g -O2 -I. `/usr/bin/gtk-config --cflags` -c -o count.o
>count.c
>> >>>> gcc -g -O2 -I. `/usr/bin/gtk-config --cflags` -c -o from.o
>from.c
>> >>>> gcc -g -O2 -I. `/usr/bin/gtk-config --cflags` -c -o gbconfig.o
>> >>>> gbconfig.c
>> >>>> gcc -g -O2 -I. `/usr/bin/gtk-config --cflags` -c -o
>gbuffy.o gbuffy.c
>> >>>> gbuffy.c: In function `main':
>> >>>> gbuffy.c:858: `width' undeclared (first use in this function)
>> >>>> gbuffy.c:858: (Each undeclared identifier is reported only once
>> >>>> gbuffy.c:858: for each function it appears in.)
>> >>>> gbuffy.c:858: `height' undeclared (first use in this function)
>> >>>> gbuffy.c:858: `horizontal' undeclared (first use in this
>> >>>> function)
>> >>>> gbuffy.c:858: `vertical' undeclared (first use in this function)
>> >>>> make: *** [gbuffy.o] Error 1
>> >>>>
>> >>>>
>> >>>> which looks to be this line
>> >>>>
>> >>>>
>> >>>> g_print("Will set:\nWidth: %d\nHeight: %d\nXOFF:
>%d:%d\nYOFF: %d:%d\n",
>> >>>> > width, height, horizontal.sign, horizontal.value,
>vertical.sign,
>> >>>> vertical.value);
>> >>>>
>> >>>> this is in
>http://www.fiction.net/blong/programs/gbuffy/gbuffy-0.2.5.tar.gz
>> >>>>
>> >>>> it also errors in
>> >>>>
>http://www.fiction.net/blong/programs/gbuffy/gbuffy-0.2.4.tar.gz at the
>> >>>> same place (which is a different line # )
>> >>>>
>> >>>> pointers?
>> >>>>
>> >>>>
>> >>>>
>> >>>> Brandon Long writes:
>> >>>>
>> >>>> > Just define DEBUG in the config.h file
>> >>>> >
>> >>>> > Brandon
>> >>>> >
>> >>>> > On 09/12/03 NetNut404 uttered the following other thing:
>> >>>> >> ok, what option should be used for enableing debug ? I don't
>> >>>> >> see it in the configure script.
>> >>>> >>
>> >>>> >> Brandon Long writes:
>> >>>> >>
>> >>>> >> > If you compile with debug enabled, ./gbuffy -d 5 should
>log the entire
>> >>>> >> > imap traffic to ~/.gbuffydebug, and then you should see
>what command its
>> >>>> >> > issuing to see whats in the folder, and what the response
>is from the
>> >>>> >> > imap server.
>> >>>> >> >
>> >>>> >> > Brandon
>> >>>> >> >
>> >>>> >> > On 09/11/03 moseley@h... uttered the following other thing:
>> >>>> >> >> On Fri, Sep 12, 2003 at 06:00:06AM -0000, netnut404 wrote:
>> >>>> >> >> > oops meant to say I have
>> >>>> >> >> >
>> >>>> >> >> > courier-imap-2.1.1.20030902-1.9
>> >>>> >> >> >
>> >>>> >> >> > (same thing) I can't figure why for the life of me it
>does not work..
>> >>>> >> >> > the passowrds work, and it authenticates, but it always
>shows 0 not
>> >>>> >> >> > sure why.
>> >>>> >> >>
>> >>>> >> >> printf() and gdb are the path to enlightenment, I'm afraid.
>> >>>> >> >>
>> >>>> >> >
>> >>>> >> > --
>> >>>> >> > "After two years and two kids, he realizes that hooking
>up with an
>> >>>> >> > unstable meth freak cum slut wasn't the ace decision it
>seemed to be
>> >>>> >> > in his candy coated dreams."
>> >>>> >> >
>http://www.plastic.com/article.html?sid=02/06/04/13303253#30
>> >>>> >>
>> >>>> >>
>> >>>> >>
>> >>>> >>
>----------------------------------------------------------------
>> >>>> >> | grant@s... http://www.stephenson.cc |
>> >>>> >>
>----------------------------------------------------------------
>> >>>> >> | My pgp key is available @ http://www.grant.stephenson.cc/pgp
>> >>>> >> | |
>> >>>> >>
>----------------------------------------------------------------
>> >>>> >>
>> >>>> >>
>> >>>> >>
>> >>>> >>
>> >>>> >>
>> >>>> >> Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
>> >>>> >>
>> >>>> >
>> >>>> > --
>> >>>> > "I see. So the T1000 is a lesbian." -- Newob Det, ASC
>> >>>> >
>http://www.fiction.net/blong/
>> >>>> >
>> >>>> > ------------------------ Yahoo! Groups Sponsor
>---------------------~-->
>> >>>> > Upgrade to 128-Bit SSL Security!
>> >>>> > http://us.click.yahoo.com/p7cEmB/s7qGAA/yigFAA/W4wwlB/TM
>> >>>> >
>---------------------------------------------------------------------~->
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> > Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
>> >>>> >
>> >>>> >
>> >>>>
>> >>>>
>> >>>>
>> >>>> ----------------------------------------------------------------
>> >>>> | grant@s... http://www.stephenson.cc |
>> >>>> ----------------------------------------------------------------
>> >>>> | My pgp key is available @ http://www.grant.stephenson.cc/pgp |
>> >>>>
>----------------------------------------------------------------
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
>> >>>>
>> >>>
>> >>> --
>> >>> "If you're falling off a cliff, you might as well try to fly.
> You've
>> >>> got nothing to lose." -- Delenn
>> >>>
>http://www.fiction.net/blong/
>> >>>
>> >>> ------------------------ Yahoo! Groups Sponsor
>
>> >>>
>> >>>
>> >>>
>> >>> Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >> ----------------------------------------------------------------
>> >> | grant@s... http://www.stephenson.cc |
>> >> ----------------------------------------------------------------
>> >> | My pgp key is available @ http://www.grant.stephenson.cc/pgp |
>> >> ----------------------------------------------------------------
>> >>
>> >>
>> >> ------------------------ Yahoo! Groups Sponsor
>---------------------~-->
>> >> Upgrade to 128-Bit SSL Security!
>> >> http://us.click.yahoo.com/p7cEmB/s7qGAA/yigFAA/W4wwlB/TM
>> >>
>---------------------------------------------------------------------~->
>> >>
>> >>
>> >>
>> >> Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
>> >>
>> >>
>> >
>> >
>> >
>> > ----------------------------------------------------------------
>> > | grant@s... http://www.stephenson.cc |
>> > ----------------------------------------------------------------
>> > | My pgp key is available @ http://www.grant.stephenson.cc/pgp |
>> > ----------------------------------------------------------------
>> >
>> >
>> > ------------------------ Yahoo! Groups Sponsor
>---------------------~-->
>> > Upgrade to 128-Bit SSL Security!
>> > http://us.click.yahoo.com/p7cEmB/s7qGAA/yigFAA/W4wwlB/TM
>> >
>---------------------------------------------------------------------~->
>> >
>> >
>> >
>> > Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
>> >
>> >
>>
>>
>>
>> ----------------------------------------------------------------
>> | grant@s... http://www.stephenson.cc |
>> ----------------------------------------------------------------
>> | My pgp key is available @ http://www.grant.stephenson.cc/pgp |
>> ----------------------------------------------------------------
>
>
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
--
Don Quixote -- quixote@... http://toysmakeuspowerful.com
"I ought not to let my mind wander, as it's too small to go off by itself"
WebSune Card search engine: http://toysmakeuspowerful.com/search
Card auctions: http://imperialblock.com
Surplus/Vintage Gaming stuff: http://toysmakeuspowerful.com/store