Re: How does Balsa store new messages?



Hi,

On 2001.07.15 07:08 Timothy Ang wrote:
> 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?
> 
After taking the scenic route through Balsa code, eventually it winds ub in
libbalsa_fetch_pop_mail_direct(). POP mail is retrieved and appended to the
system mail spool. From there on in, it's treated like locally delivered (by
an MTA) mail.
That's a design flaw, I think, because there's no point in being able to
desgnate a folder to be the inbox if there's not way to have mail delivered
into that folder when it's remote.
It should, I guess, be spooled into a temp file, encapsulated into a mutt
message and written using libmutt functions. That would work for both local
and remote inboxes.

> I have dived into the function,
> void check_new_messages_cb(GtkWidget * widget, gpointer data),
> in src/main-window.c,
> 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?

No, the function to check new emails is posted to the tree.

Regards,

Melanie




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