Re: How does Balsa store new messages?



Em Dom, 15 Jul 2001 06:08:36 Timothy Ang escreveu:
> Hi!
> 
> Can anyone please tell me how Balsa writes new messages in the inbox file
> after the button "Check" is clicked? Or the processes that Balsa does after
> retrieving new messages from the Post Office using Pop3?
> 

* fetch pop
* path a) direct b) procmail c) filters

a: inbox is open, messages are copies into it (libbalsa/pop3.c 
libbalsa_fetch_pop_mail_direct)

b: procmail is invoked, messages are piped into it (libbalsa/pop3.c
libbalsa_fetch_pop_mail_filter)

c: doesn't exist

> I have dived into the function,
> void check_new_messages_cb(GtkWidget * widget, gpointer data),
> in src/main-window.c,

in a threaded balsa it goes to check_messages_thread() from there. 
pop3 is checked with check_mailbox_list() and imap/local mail is checked with
the
notify backend in libmutt.
skiping a bit, you get to libbalsa/mailbox_pop3.c and
libbalsa_mailbox_pop3_check

> to discover what Balsa does after the user clicked the button "Checked".
> Unfortunately, it seems to me that Balsa posts the new messages right into
> the tree. Am I looking at the right function? If not, which function is
> writing new messages content in the inbox file physically on the hard disk?
> 

that would be via the "sync" and "commit" functions in libbalsa that in turn
call their
libmutt counterparts


-- 
Carlos Morgado - chbm(at)chbm(dot)nu - http://chbm.nu/ -- gpgkey: 0x1FC57F0A 
http://wwwkeys.pgp.net/ FP:0A27 35D3 C448 3641 0573 6876 2A37 4BB2 1FC5 7F0A
Shaw's Principle:
        Build a system that even a fool can use, and only a fool will
want to use it.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]