date column -> last received-from
- From: Kacper Wysocki <kacperw online no>
- To: balsa-list <balsa-list gnome org>
- Subject: date column -> last received-from
- Date: Fri, 16 Apr 2004 18:08:16 -0400
Hi all,
some time ago I posted on this list trying to determine a good way to
change the 'Date' column to represent the time the message was
received, as opposed to sent- I would be far less vulnerable to date
forgery this way. Subject came up lately and I want to revisit this.
Here's the answer I got from Pawel back when:
>> one could write some elaborate procmail script that parses the email
>> for the last recieved header, extracts the date and overwrites the
>> date header accordingly, but it'd be great if I didn't have to
>> reinvent the wheel, right?
>
> It is much easier than that: one can just follow the way "Size"
> column is switched between displaying message size in lines and in
> bytes. Track balsa_app.line_length usage through the code.
Sadly, I was never able to do the above. Back then I was none too
familiar with C, now I'm just none too familiar with the glibs.
Here's what I found, though:
in balsa-index.c lines 395 and onwards the date column gets rendered
in balsa-message.c lines 1196 and 1197 of function display_headers_real ,
the date header string gets set. My guess is that I need to change what
sets the date here to a function that parses the last received header
the way I described above. But if Pawel's comment is any indication,
there is an easier way to do this, maybe by changing
balsa_app.date_string.
I would be deeply thankful to anyone who would take their time to look
at this, and maybe explain to a coding newbie (that would be me) what's
going on.
btw, balsa stability has noticeably improved. Is this a incidental or
was there an effort 'behind the scenes'? Heh, bugs don't fix
themselves, so I bet it was the latter. Good job people, your efforts
are appreciated!
-Kacper
PGP signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]