IRC log for #maemo-ssu on 20151003

10:24.17*** join/#maemo-ssu infobot (ibot@69-58-76-73.ut.vivintwireless.net)
10:24.17*** topic/#maemo-ssu is Maemo Community Seamless Software Update "CSSU" channel, http://wiki.maemo.org/Community_SSU | Known bugs: http://j.mp/communityssu-bugs | Channel logs: http://mg.pov.lt/maemo-ssu-irclog/ | Sources: https://github.com/community-ssu | Latest version: Testing(2015-04-11): 21.2011.38-1Tmaemo11; Stable(2014-09-03): 21.2011.38-1Smaemo7
10:24.17*** mode/#maemo-ssu [+v infobot] by ChanServ
10:33.49*** join/#maemo-ssu futpib (~futpib@176.104.194.78)
11:18.30*** join/#maemo-ssu arcean (~arcean@nat1-3.finemedia.pl)
12:31.14*** join/#maemo-ssu infobot (ibot@69-58-76-73.ut.vivintwireless.net)
12:31.14*** topic/#maemo-ssu is Maemo Community Seamless Software Update "CSSU" channel, http://wiki.maemo.org/Community_SSU | Known bugs: http://j.mp/communityssu-bugs | Channel logs: http://mg.pov.lt/maemo-ssu-irclog/ | Sources: https://github.com/community-ssu | Latest version: Testing(2015-04-11): 21.2011.38-1Tmaemo11; Stable(2014-09-03): 21.2011.38-1Smaemo7
12:31.14*** mode/#maemo-ssu [+v infobot] by ChanServ
12:52.38*** join/#maemo-ssu jon_y (~enforcer@2001:e68:4074:444c:e01f:8e6d:cdca:d0e5)
12:57.53*** join/#maemo-ssu xes (~xes@unaffiliated/xes)
13:19.32*** join/#maemo-ssu sparetire_ (~sparetire@unaffiliated/sparetire)
14:43.32*** join/#maemo-ssu sailus (~sailus@nblzone-211-213.nblnetworks.fi)
18:21.02freemangordonPali: do we have a git tree of PR1.3 modest?
18:21.14Palifreemangordon: yes
18:21.19Paliit should be on github
18:21.19freemangordonwhere?
18:21.26freemangordona branch?
18:21.35PaliPR1.3
18:21.53freemangordonNokia PR 1.3
18:22.13freemangordonthe modest in there, modest-3.4.8+0m5
18:22.28Paligit://github.com/community-ssu/modest.git PR1.3
18:23.06freemangordonthanks
18:25.39freemangordonPali: I think we're hitting https://github.com/community-ssu/modest/commit/bbcd5ff40725eba5d4435163497ed44e8a5e5920 in cssu
18:26.15PaliI wrote more time here on IRC that we are missing lot of commits from PR1.3 branch in master
18:26.37Paliso it is really possible that you hit another bug "fixed in PR1.3"
18:26.38freemangordonyeah, I know
18:26.44freemangordonthat one http://talk.maemo.org/showthread.php?p=1483681
18:26.52freemangordonwill try to fix it
18:27.29PaliI think I posted some pastebin link here with all missing commits
18:27.48Palisome semi-automatic shell script which use some git magic
18:40.53freemangordonhmm, that commit is already merged(albeit with a different sha id)
18:41.01freemangordonit must be something else then
19:52.01*** join/#maemo-ssu LauRoman (~LauRoman@5-14-15-167.residential.rdsnet.ro)
20:30.54freemangordonPali: ping
20:46.35Palipong
21:03.10freemangordonPali: I think I found what the problem in modest is, but I am not sure how to solve it.
21:03.24freemangordonI lack mime-fu :)
21:04.42freemangordonPali: https://github.com/community-ssu/modest/blob/master/src/widgets/modest-attachments-view.c#L168
21:05.14freemangordonfor some reason modest checks for "multipart/alternative"
21:05.46freemangordonand if so, the code on https://github.com/community-ssu/modest/blob/master/src/widgets/modest-attachments-view.c#L223 is not executed
21:06.13freemangordonif I set is_alternate to be false, the missing attachments appear
21:06.34freemangordonwhat I can't get is why this check is needed
21:08.17freemangordonthat code was introduced by commit  354a038d69d6b9ac42b49e6c6d3751f7978c4adb ([PATCH] Show digest attachments (and other non body text parts) in attachments view)
21:09.52freemangordonhttps://garage.maemo.org/plugins/ggit/browse.php/?p=modest;a=patch;h=354a038d69d6b9ac42b49e6c6d3751f7978c4adb
21:20.37Palifreemangordon: MIME email contains (mathematical) tree
21:20.45Palieach node contains email data
21:21.33Paliand if node is marked as "multipart/alternative" then it means that all subnodes are equivalent, just represent same data in different encodings or formats
21:21.49Palie.g. text/plain and text/html
21:22.20Paliif node is marked as "multipart/mixed" or other multipart/ then its subnodes contains data
21:22.27freemangordonPali: but that is not the case(in that mail), as text part contains no attachments, while html part contains
21:23.10Paliand if missing attachment is only under some subnode of multipart/alternative node, that it could be hidden
21:23.31freemangordonsee http://pastebin.com/wUgr8tkB
21:24.17freemangordonthunderbird shows the attachments, modest does not
21:24.20Palifreemangordon: I will run my MIME tree parser on that email
21:24.34freemangordonwait, it is the header only
21:24.51freemangordoni'll forward it to you
21:24.58Palinope, this contains also body
21:25.11Palibody of email start after blank line
21:25.32Palibut please send me it as plain text attachment
21:25.42Paliso I can inspect original plain text file
21:25.49freemangordonyep, sure
21:26.10PaliI think I know where is problem
21:26.23Palibut rather I would recheck it on original email
21:26.26Palifirst
21:27.03freemangordonoh, so modest prefers the "text" part and ignores the "html" part?
21:28.46freemangordonPali: mail sent
21:28.51Paligot it
21:32.36Palifreemangordon: ok, it is as I expected
21:33.11freemangordonhmm?
21:33.12PaliMIME email is tree and data (text, attachments, ..) are stored only in leafs
21:33.29freemangordonso?
21:33.38Paliroot node is marked as alternative, which means that root subnodes are equivalent
21:33.44freemangordonsure
21:33.51Paliand that pdf attachment is only in one leaf
21:33.57freemangordonyes
21:34.14Paliand thats all, if you interpret that email in other way, then you miss attachment
21:34.34freemangordonbut, shouldn't we show the attachments no matter in which node are they?
21:34.37Palicorrect view of that email is also to hide attachment
21:34.46Palifreemangordon, no
21:34.51freemangordonhmm
21:35.28freemangordonwell, that pdf is marked as inline as well, so what you say makes sense
21:36.02freemangordonPali: so "freemangordon: oh, so modest prefers the "text" part and ignores the "html" part?" is what happens?
21:36.03Paliif some node is marked as multipart/alternative it does not matter which subnode you choose for rendering/viewing
21:36.19Palifreemangordon: I think that modest prefer html
21:36.25Palibut maybe it is not truth
21:37.02Palifreemangordon: it does not matter if pdf is marked as inline or as attachment
21:37.06freemangordonby the look of it, it prefers the text part
21:37.06Paliin both cases it is same
21:37.25freemangordonyeah, got that
21:37.36PaliI know that lot of multipart/alternative emails with html and text parts, modest shown me html version
21:37.50freemangordonmaybe it depends which one comes first
21:37.54Palibut important note is also that in email parts are ordered
21:38.19Paliand I think that RFC say something that first is more preferred as second and etc...
21:38.27Palino idea if some client respect this order
21:38.41Paliand also client is free to choose format which support
21:38.49freemangordonthe first node is preferred over the second?
21:39.22PaliI think RFC say something like that in case that client does not have some other preferences
21:39.31freemangordonhmm, ok
21:39.47PaliI think that thunderbird prefer html
21:39.53Paliand then plain text
21:39.59Palimy KMail prefer plain text
21:40.06freemangordonit seems thunderbird shows both :)
21:41.19freemangordonas I see both "Hallo someone ,some text anotherone " and "anotherone" in bold
21:41.51freemangordonwhich doesn;t make sense either
21:42.10freemangordonPali: do you see the attachments in your KMail?
21:42.27PaliI see Einladung.pdf
21:42.44Paliand image002.png
21:42.53*** join/#maemo-ssu LinuxCode (~LinuxCode@ipservice-092-209-088-205.092.209.pools.vodafone-ip.de)
21:43.03freemangordonwell, then there is still a problem in modest it seems
21:43.12freemangordonas in modest there are no attachments
21:43.22Palifreemangordon: this is how my MIME tree parser see that email: http://pastebin.com/ra0i1Kf0
21:43.53Paliand my MIME viewver does not see PDF file
21:44.12freemangordonassuming KMail prefers the text node, I see no way for it to show 2 attachments
21:44.54*** join/#maemo-ssu LinuxCode (~LinuxCode@ipservice-092-209-088-205.092.209.pools.vodafone-ip.de)
21:45.15Palikmail has heurstic
21:45.38Paliand show this PDF because it does not see it in text subpart
21:45.59Palibut according to RFCs is correct way also to ignore that PDF part
21:46.12Palimy MIME viewer did it too
21:46.22freemangordonwell then , "but, shouldn't we show the attachments no matter in which node are they?" :)
21:46.33Paliapparently not
21:46.40freemangordonseems KMail does it
21:46.50freemangordonas does Thunderbird
21:47.09*** join/#maemo-ssu LinuxCode_away (~LinuxCode@ipservice-092-209-088-205.092.209.pools.vodafone-ip.de)
21:47.10freemangordonI won;t argue if it is RFC violation or not
21:47.14Paliit has some heurstic which could work sometimes, but they can damage (=show wrongly) correctly formatted emails
21:47.54Palibasically there is no difference between attachment or text part
21:48.04PaliI mean PDF or textfile
21:48.10freemangordonPali: yes, I understand
21:48.39Paliyou are free to compose email which is multipart/alternative and has two subnodes:
21:48.48Pali1) is final plain/text
21:49.00freemangordonPali: http://pastebin.com/xTMCdntw - that one makes modest show the attachments
21:49.10freemangordonjust FYI
21:49.15Pali2) is multipart/mixed (which means that has subnodes) and contains 3 additional html nodes
21:49.47freemangordonand I guess the client is free to choose which one to show
21:49.53Paliand if you run html2text on every 3 html nodes, join them together and put into 1) final plain/text
21:50.05Palithat you get normal email message
21:50.33Palibut which contains 4 nodes... 1 vs 1+1+1
21:50.55Paliand you cannot exchange them, you must show either first or another 3
21:51.01freemangordonI understand that.
21:51.11Paliand same it is with PDF files
21:51.31Palithat email which you sent me is just example of wrongly generated MIME email
21:52.16Paliand yes, client is free which alternative part will show
21:52.29Paligeneraly it chose that one which can render better :-)
21:53.03Palie.g. terminal text email clients (like mutt) prefer plain/text parts, because it can show just monospaced text :-)
21:53.39freemangordonI guess modest chooses whichever comes first
21:53.47Paliprobably
21:54.33freemangordonPali: what about showing the alternative part as an attachment?
21:54.50freemangordonas email attachment that is
21:55.02Paliif this bug is assigned to me, I would close it "as not a bug"
21:55.13freemangordonno, it is not assignet to you
21:55.17freemangordon*assigned
21:55.19Palishowing all other alternative parts as attachment is wrong idea
21:55.38Palinow maybe every email contains two alternative parts: text and html
21:55.44freemangordonyeah
21:55.53Paliso basically it show lot of useless attachments...
21:56.02freemangordonso, the same mail formatted correctly, should be:
21:56.03Palibetter option would be to switch between alternatives
21:56.13Palibutton for switching
21:56.24freemangordonhmm
21:56.25Palikmail as it: switch between text and html
21:56.38freemangordonI am not sure I can implement stuff like that in modest
21:57.29PaliI know it is hard, but probably only one acceptable solution... as adding heuristic in any way could damage correct emails
21:57.39freemangordonyeah
21:57.46Paliand attachment button for alternative parts just show lot of useless attachments
22:00.28freemangordonok, I'll post a link to our discussion on thet TMO thread
22:00.37freemangordonWONTFIX :)
22:04.25Paliyes, wontfix is also from my side... it is hard work and just for one incorrectly generated email

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.