Search the web
Sign In
New User? Sign Up
gbuffy · GBuffy Tool Discussion
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
still having trouble using this on a with courier imap server   Message List  
Reply | Forward Message #102 of 231 |
Re: still having trouble using this on a with courier imap server

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



Tue Oct 7, 2003 2:22 pm

ksuquix
Online Now Online Now
Send Email Send Email

Forward
Message #102 of 231 |
Expand Messages Author Sort by Date

Hello, I have been trying to get gbuffy to work from time to time (off, and on) against my courier imap server, but the boxes always show up with zero mail in...
Net Nut
netnut404
Offline Send Email
Jul 21, 2003
9:18 pm

... I'm using Courier with this setup: { mailboxes = ( { type = imap; title = inbox; path = inbox; command = "xterm -e mutt -f =INBOX"; server = imapmail; port...
Bill Moseley
whmoseley
Offline Send Email
Jul 21, 2003
9:56 pm

Hmm.. Well thanks for the post, but I get the same results.. I am running this on a redhat 8.0 machine (but have had the same results on several redhat...
Grant Stephenson
grant@...
Send Email
Jul 22, 2003
7:12 pm

... Sometimes watching the output of strace will give clues. For example: $ strace -p 966 -e trace=read,write -s 100 write(4, "a51472 STATUS...
Bill Moseley
whmoseley
Offline Send Email
Jul 22, 2003
7:32 pm

Well with that strace command "strace gbuffy -e trace=read,write -s 100" I get screens and screens of data... And to clarify I wouldn't say it does not work...
Grant Stephenson
grant@...
Send Email
Jul 23, 2003
6:29 pm

so what version of courier imap do you have? the one I have that is not working with gbuffy is courier-imap-ldap-2.1.1.20030902-1.9 ... running ... binaries.....
netnut404
Offline Send Email
Sep 12, 2003
5:48 am

... Well, here's my Debian Stable packages. A bit behind the current Courier version. moseley@mardy:~$ dpkg -l | grep courier ii courier-authda 0.37.3-2.3...
moseley@...
whmoseley
Offline Send Email
Sep 12, 2003
5:59 am

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...
netnut404
Offline Send Email
Sep 12, 2003
6:00 am

... printf() and gdb are the path to enlightenment, I'm afraid. -- Bill Moseley moseley@......
moseley@...
whmoseley
Offline Send Email
Sep 12, 2003
6:14 am

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...
Brandon Long
blong42
Offline Send Email
Sep 12, 2003
5:12 pm

ok, what option should be used for enableing debug ? I don't see it in the configure script....
netnut404
Offline Send Email
Sep 13, 2003
2:00 am

Just define DEBUG in the config.h file Brandon ... -- "I see. So the T1000 is a lesbian." -- Newob Det, ASC http://www.fiction.net/blong/...
Brandon Long
blong42
Offline Send Email
Sep 13, 2003
6:44 am

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....
netnut404
Offline Send Email
Sep 13, 2003
7:05 am

yeah, that's a known issue, just delete that call to g_print. Brandon ... -- "If you're falling off a cliff, you might as well try to fly. You've got nothing...
Brandon Long
blong42
Offline Send Email
Sep 13, 2003
10:59 am

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...
netnut404
Offline Send Email
Sep 14, 2003
6:07 am

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...
netnut404
Offline Send Email
Sep 14, 2003
6:28 am

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) ...
netnut404
Offline Send Email
Sep 14, 2003
6:33 am

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...
ksuquix
Online Now Send Email
Sep 26, 2003
8:43 pm

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...
Net Nut
netnut404
Offline Send Email
Oct 6, 2003
10:12 pm

gbuffy is looking for message marked as "RECENT". When you connect and look at headers, then the "RECENT" flag is removed with courier. ... +++ imap.c Tue...
Don Eisele
ksuquix
Online Now Send Email
Oct 7, 2003
2:22 pm

That patched imap.c works great! Thanks a lot.. I can finally use gbuffy!!! :) So my next question is, is there a way to make gbuffy play sounds when mail ...
Net Nut
netnut404
Offline Send Email
Oct 8, 2003
5:44 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help