bugThe nmh Mail Handling System - Bugs: bug #23553, backslash in commented lines in...

 
 

bug #23553: backslash in commented lines in alias file is interpreted

Submitted by:  None
Submitted on:  Thu 12 Jun 2008 01:45:04 PM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalStatus: Wont Fix
Assigned to: NoneOpen/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 02 Jul 2012 12:28:03 AM UTC, comment #1:

This is unfortunate, but it is a result of the implementation of nmh's vfgets() function. That function is used by other callers that expect this behavior. Rather than trying to change it, I documented this behavior in the mh-format man page and etc/MailAliases, commit d31c931415a6e2515bc42ddd08829894625c4273.

David Levine <levine>
Project Member
Thu 12 Jun 2008 01:45:04 PM UTC, original submission:

Hello,

just stumbled on the following issue (nmh-1.3).

Consider the following stretch of the alias file:

[...]
;; commented-alias:someone@some.host \
valid-alias:myfriend@his.host
[...]

The commented line ends with a backslash. Now, if I say:

ali valid-alias

then I find that valid-alias is not expanded (and sending
mail to valid-alias fails).

If I change the alias file to:

[...]
;; commented-alias:someone@some.host \

valid-alias:myfriend@his.host
[...]

or I delete the backslash:

[...]
;; commented-alias:someone@some.host
valid-alias:myfriend@his.host
[...]

then all works as expected.

I.e., for what I seem to understand, the backslash IS
interpreted even if it's on a commented line.

Is this to be expected? I was thinking that a commented
line could contain anything (including a backslash), but
apparently this is not so.

I find this with nmh-1.3 and did not test whether previous
versions display the same behavior.

I'm not sure that this is a bug or is simply my
misunderstanding mh-alias(5)'s contents: apologies if the
second is true.

ciao
gabriele

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by levine (Posted a comment)
  • -unavailable- added by balducci
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 02 Jul 2012 12:28:03 AM UTClevineStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Thu 12 Jun 2008 02:04:29 PM UTCbalducciCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1