Coder Social home page Coder Social logo

Local hostname in Message-ID about alot HOT 4 CLOSED

sthesing avatar sthesing commented on August 20, 2024
Local hostname in Message-ID

from alot.

Comments (4)

lucc avatar lucc commented on August 20, 2024 1

@kbingham you can follow the above arguments and make a PR to change the default if the setting is not present in the config file. I will close this as @sthesing said but you can still pursue this if you want.

@sthesing the spec file is not specific to python, it is specific to the config parsing library we are using. It is used to validate the config file. The file extension is arbitrary, the syntax is the same as for the config file (similar as you can write json specs in json).

from alot.

lucc avatar lucc commented on August 20, 2024

I understand the general idea and I think you can open a PR to change the message ID to include the sending email address after the random string. I do not see a reason why the change you describe should be problematic. In the best case it can conceal your hostname (some additional information that might otherwise not be present in the mail).

technical sidenotes:

I can however not observe the format of the message ID you describe: my IDs end in @localhost even though hostname tells me my computer is called differently. But in my /etc/hosts I have

127.0.0.1 localhost
::1 localhost

No idea why your computer generates this message ID. I did not yet check the code.


I also read the RFC differently. I think you refer to this sentence:

The uniqueness of the message identifier is guaranteed by the host which generates it.

But how can one host guarantee uniqueness across all messages that are generated globally? That is theoretically impossible, so I understand this as "the uniqueness (among all messages generated by this host) of the message identifier ...".

You are of course right that appending the host name only helps to generate uniqueness if every computer has a unique hostname. And this is not true for personal computers today.

I would however argue that the uniqueness is only needed in a practical sense and the current scheme is as effective as the proposed.

from alot.

sthesing avatar sthesing commented on August 20, 2024

I understand the general idea and I think you can open a PR

I fear my Python skills aren't sufficient to do just that. I did have a look at the code, though and found the following:

There is also the file defaults/alot.rc.spec. I have no idea what *.spec files do. As I said, my Python is limited.

The message_id_domain attribute made me aware of something that I had overlooked in the user guide and that's a perfect workaround.

Workaround

In your alot config file add

message_id_domain = example.com 

to your settings for each account, replace example.com as needed.

Sorry I overlooked that. As far as I'm concerned as a user, this issue can be closed.

from alot.

kbingham avatar kbingham commented on August 20, 2024

Aha, the message_id_domain is something I'd missed to and wanted to stop my hostname being included in my outgoing mails.

Couldn't this could be generated from the domain name of the outgoing FROM: header though?

from alot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.