close
Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#117 closed bug (fixed)

no From: header in mail - > empty from field

Reported by: AmigaPhil Owned by:
Priority: low Milestone: YAM 2.6p1
Component: user interface Version: 2.6
Severity: minor Keywords:
Cc: OS Platform:
Blocked By: Blocking:
Release Notes:

Description (last modified by damato)

I received a mail with no From: field today. This resulted in a empty from field in YAM.

I suggest that in case a mail has no From: field, YAM tries to parse the name and address from the Sender: field (if available).

Attachments (1)

MyMail.lha (4.3 KB) - added by AmigaPhil 5 years ago.
Mail with no From:

Download all attachments as: .zip

Change History (18)

comment:1 Changed 5 years ago by damato

  • Component changed from stable build to undefined

comment:2 follow-ups: Changed 5 years ago by tboeckel

Would you please provide this mail as an attachment?

comment:3 Changed 5 years ago by damato

  • Status changed from new to pending
  • Type changed from enhancement to bug

Changing this into a bug report as an empty From: field should definitly not lead to an empty "Sender" column in the listview.

Also changing status to pending to signal the user that he should reply within 14 days as otherwise this ticket will be automatically closed.

comment:4 Changed 5 years ago by damato

  • Cc yamos-svn@… removed

comment:5 in reply to: ↑ 2 Changed 5 years ago by AmigaPhil@…

  • Status changed from pending to new

Replying to thboeckel:

Would you please provide this mail as an attachment?

Attachment not accepted: the tracker plugin does not support moderated attachment.
I'll send it to you by mail.

comment:6 follow-up: Changed 5 years ago by damato

  • Status changed from new to pending

You can submit an attachment as soon as you register yourself an account here in our new development site. Please do that as it helps us a lot to keep up with bug reports and reduce the number of private mails floating around. So simply go to http://trac.yam.ch/register and register yourself an account.

comment:7 in reply to: ↑ 6 ; follow-up: Changed 5 years ago by anonymous

Replying to damato:

You can submit an attachment as soon as you register yourself an account here in our new development site. Please do that as it helps us a lot to keep up with bug reports and reduce the number of private mails floating around. So simply go to http://trac.yam.ch/register and register yourself an account.

Trying to reply to #2 produce an error (but the comment was posted anyway):
Trac detected an internal error:
AttributeError: 'int' object has no attribute 'id'

I had an eye on the registration form, but FireFox complain that the certificate is not secure (and ask me if I want to make an exception. Can I really accept to trust a certificate that is not authenticated, even if a priori I trust the one that comes from yam.ch ?)

comment:8 in reply to: ↑ 7 ; follow-up: Changed 5 years ago by damato

Replying to anonymous:

I had an eye on the registration form, but FireFox complain that the certificate is not secure (and ask me if I want to make an exception. Can I really accept to trust a certificate that is not authenticated, even if a priori I trust the one that comes from yam.ch ?)

Yes of course you can as we simply don't have the money for a public SSL certificate that would please your browser per default. But it is safe to accept that as the current SSL certification is from my own server. So don't worry.

comment:9 in reply to: ↑ 8 Changed 5 years ago by anonymous

Replying to damato:

Yes of course you can as we simply don't have the money for a public SSL certificate that would please your browser per default. But it is safe to accept that as the current SSL certification is from my own server. So don't worry.

Done.
But now, when I'm logged in, I have the following error:
Trac detected an internal error:
SMTPRecipientsRefused: {u'AmigaPhil@…': (553, '5.3.0 <AmigaPhil@yam.ch>... No such user here')}

comment:10 follow-up: Changed 5 years ago by damato

  • Reporter changed from AmigaPhil@… to AmigaPhil

comment:11 in reply to: ↑ 10 ; follow-up: Changed 5 years ago by AmigaPhil

  • Status changed from pending to new

Replying to damato:

Ok, it works now.

Changed 5 years ago by AmigaPhil

Mail with no From:

comment:12 in reply to: ↑ 11 Changed 5 years ago by damato

Replying to AmigaPhil:

Ok, it works now.

Ok, then please try to attach the mail here to this report.

comment:13 in reply to: ↑ 2 Changed 5 years ago by AmigaPhil

Replying to thboeckel:

Would you please provide this mail as an attachment?

Here it is.
(I was not sure if text attachment would be shown on the web, exposing the email addresses, so I packed the mobox file with lha.)

comment:14 follow-up: Changed 5 years ago by damato

  • Component changed from undefined to user interface
  • Milestone set to YAM 2.7
  • Priority changed from undecided to low
  • Status changed from new to accepted

Ok, I verified the problem. And indeed, in case a mail does not have any From: header the corresponding list column also doesn't show anything. In that case something like "(no sender)" should be shown instead. Also the following questions have to be answered:

  1. Is there another header entry (e.g. Sender:) usable for that?
  2. What does the RFC says about something like that, is "Sender:" really the way to go?
  3. How does e.g. Thunderbird treat that situation?

In addition the preselection window also doesn't show any sender address so if a fix is done it should address the problem in the preselection window as well.

But as this problem occurrs very rarely I'll set the priority of the ticket to low.

comment:15 in reply to: ↑ 14 Changed 5 years ago by AmigaPhil

Replying to damato:

  1. Is there another header entry (e.g. Sender:) usable for that?

From: Sender: and Reply-To: are the originator fields defined in RFC 2822.

  • From is required and must appear once in a mail header.
  • Sender is optional, but required when From has multiple addresses
  • Reply-To is optional
  1. What does the RFC says about something like that, is "Sender:" really the way to go?

AFAIK, there is no RFC about how to resolve a missing From in a badly formatted message.

  1. How does e.g. Thunderbird treat that situation?

Don't know about Thunderbird, but Thor falls back to Sender (maybe also Reply-To) when From is missing.

comment:16 Changed 4 years ago by tboeckel

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [4674]) * YAM_MAf.c: in case a mail contains no From: header line YAM now tries to

construct a valid sender from a possible Sender: header line. This might not
be perfect, but it is better than no name at all. This closes #117.

comment:17 Changed 4 years ago by damato

  • Description modified (diff)
  • Milestone changed from YAM 2.7 to YAM 2.6p1

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber

  • Philippe Duchenne(Reporter, Participant)